2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-04 03:54:55 +01:00

add pptpd

This commit is contained in:
kev
2015-06-27 18:32:24 +08:00
parent d993e7ddad
commit e1c8eb764e
6 changed files with 33 additions and 25 deletions

23
pptpd/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
#
# Dockerfile for pptpd
#
FROM alpine
MAINTAINER kev<noreply@datageek.info>
RUN apk add -U iptables \
ppp \
pptpd \
&& rm -rf /var/cache/apk/*
RUN echo "username * password *" >> /etc/ppp/chap-secrets \
&& echo "localip 10.10.10.1" >> /etc/pptpd.conf \
&& echo "remoteip 10.10.10.2-254" >> /etc/pptpd.conf \
&& echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options \
&& echo "ms-dns 8.8.4.4" >> /etc/ppp/pptpd-options
EXPOSE 1723
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
&& pptpd --fg --logwtmp