vpn-server/Dockerfile
Thomas Bartelmess 3b91dffda9 Added IPv6 support (#20)
And target Ubuntu 16.04 base image
2016-07-31 23:47:35 +08:00

18 lines
513 B
Docker

FROM ubuntu:16.04
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y upgrade \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install strongswan iptables uuid-runtime ndppd openssl \
&& rm -rf /var/lib/apt/lists/* # cache busted 20160406.1
RUN rm /etc/ipsec.secrets
ADD ./etc/* /etc/
ADD ./bin/* /usr/bin/
VOLUME /etc
# http://blogs.technet.com/b/rrasblog/archive/2006/06/14/which-ports-to-unblock-for-vpn-traffic-to-pass-through.aspx
EXPOSE 500/udp 4500/udp
CMD /usr/bin/start-vpn