1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-04-25 12:14:46 +02:00
This commit is contained in:
kev 2015-06-27 19:33:27 +08:00
parent e1c8eb764e
commit cd04fa0337
5 changed files with 34 additions and 11 deletions

View File

@ -5,19 +5,17 @@
FROM alpine
MAINTAINER kev<noreply@datageek.info>
RUN apk add -U iptables \
ppp \
pptpd \
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
COPY pptpd.conf /etc/
COPY chap-secrets /etc/ppp/
COPY options.pptp /etc/ppp/
EXPOSE 1723
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
&& pptpd --fg --logwtmp
&& syslogd \
&& pptpd \
&& tail -f /var/log/messages

View File

@ -3,6 +3,19 @@ pptpd
This is still a work in progress, a successful connection has not been made.
## docker-compose.yml
```
pptpd:
image: vimagick/pptpd
ports:
- "1723:1723"
volumes:
- ./chap-secrets:/etc/ppp/chap-secrets
privileged: true
restart: always
```
You must open the following ports:
- To allow PPTP tunnel maintenance traffic, open `1723/tcp`.

View File

@ -1,5 +1,5 @@
pptp:
image: vimagick/pptp:latest
pptpd:
image: vimagick/pptpd
ports:
- "1723:1723"
volumes:

7
pptpd/options.pptp Normal file
View File

@ -0,0 +1,7 @@
lock
auth
+chap
name datageek
proxyarp
ms-dns 8.8.8.8
ms-dns 8.8.4.4

5
pptpd/pptpd.conf Normal file
View File

@ -0,0 +1,5 @@
speed 115200
option /etc/ppp/options.pptp
localip 192.168.0.1
remoteip 192.168.1.100-199
pidfile /var/run/pptpd.pid