mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-27 12:22:42 +02:00
update
This commit is contained in:
parent
e1c8eb764e
commit
cd04fa0337
@ -5,19 +5,17 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
MAINTAINER kev<noreply@datageek.info>
|
MAINTAINER kev<noreply@datageek.info>
|
||||||
|
|
||||||
RUN apk add -U iptables \
|
RUN apk add -U iptables ppp pptpd \
|
||||||
ppp \
|
|
||||||
pptpd \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
RUN echo "username * password *" >> /etc/ppp/chap-secrets \
|
COPY pptpd.conf /etc/
|
||||||
&& echo "localip 10.10.10.1" >> /etc/pptpd.conf \
|
COPY chap-secrets /etc/ppp/
|
||||||
&& echo "remoteip 10.10.10.2-254" >> /etc/pptpd.conf \
|
COPY options.pptp /etc/ppp/
|
||||||
&& echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options \
|
|
||||||
&& echo "ms-dns 8.8.4.4" >> /etc/ppp/pptpd-options
|
|
||||||
|
|
||||||
EXPOSE 1723
|
EXPOSE 1723
|
||||||
|
|
||||||
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
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.
|
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:
|
You must open the following ports:
|
||||||
|
|
||||||
- To allow PPTP tunnel maintenance traffic, open `1723/tcp`.
|
- To allow PPTP tunnel maintenance traffic, open `1723/tcp`.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
pptp:
|
pptpd:
|
||||||
image: vimagick/pptp:latest
|
image: vimagick/pptpd
|
||||||
ports:
|
ports:
|
||||||
- "1723:1723"
|
- "1723:1723"
|
||||||
volumes:
|
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