1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-08-10 22:31:28 +02: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

10
pptpd/README.md Normal file
View File

@@ -0,0 +1,10 @@
pptpd
=====
This is still a work in progress, a successful connection has not been made.
You must open the following ports:
- To allow PPTP tunnel maintenance traffic, open `1723/tcp`.
- To allow PPTP tunneled data to pass through router, open `Protocol 47`.

4
pptpd/chap-secrets Normal file
View File

@@ -0,0 +1,4 @@
# Secrets for authentication using CHAP
# client server secret IP addresses
username * password *

8
pptpd/docker-compose.yml Normal file
View File

@@ -0,0 +1,8 @@
pptp:
image: vimagick/pptp:latest
ports:
- "1723:1723"
volumes:
- ./chap-secrets:/etc/ppp/chap-secrets
privileged: true
restart: always