Ubuntu Pastebin

Paste from dooferlad at Wed, 4 Feb 2015 10:35:59 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:14.04
MAINTAINER james.tunnicliffe@canonical.com
RUN apt-get update
RUN apt-get install -y curl openssh-server ufw
RUN useradd -m ubuntu
RUN echo ubuntu:12qwaszx | chpasswd

# TODO UFW rules
RUN ufw enable
RUN ufw default deny outgoing
RUN ufw allow out 22
RUN ufw allow in 22
RUN ufw allow out 17070
RUN ufw allow in 17070
RUN ufw allow out 67/udp
RUN ufw allow in 67/udp
RUN ufw allow out 3128/tcp
RUN ufw allow in 3128/tcp
RUN ufw allow out 53/udp
# expose ports
Download as text