1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:07:04 +02:00
dockerfiles/pptp/Dockerfile

22 lines
472 B
Docker
Raw Normal View History

2015-05-03 14:41:42 +02:00
#
# Dockerfile for VPN (PPTP)
#
2015-05-03 15:57:07 +02:00
FROM ubuntu:14.04
2015-05-03 14:41:42 +02:00
MAINTAINER kev<noreply@datageek.info>
RUN apt-get update && \
apt-get install -y iptables pptpd && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
2015-05-03 15:57:07 +02:00
RUN echo "localip 10.99.99.1" >> /etc/pptpd.conf && \
echo "remoteip 10.99.99.100-200" >> /etc/pptpd.conf && \
echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options
2015-05-03 14:41:42 +02:00
EXPOSE 1723
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && \
pptpd --fg