mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-25 12:14:46 +02:00
update
This commit is contained in:
parent
e1c8eb764e
commit
cd04fa0337
@ -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
|
||||
|
||||
|
@ -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`.
|
||||
|
@ -1,5 +1,5 @@
|
||||
pptp:
|
||||
image: vimagick/pptp:latest
|
||||
pptpd:
|
||||
image: vimagick/pptpd
|
||||
ports:
|
||||
- "1723:1723"
|
||||
volumes:
|
||||
|
7
pptpd/options.pptp
Normal file
7
pptpd/options.pptp
Normal 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
5
pptpd/pptpd.conf
Normal 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
|
Loading…
x
Reference in New Issue
Block a user