mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update
This commit is contained in:
parent
2addd13eef
commit
a6318a3242
@ -1,8 +1,6 @@
|
||||
#
|
||||
# Dockerfile for pptpd
|
||||
#
|
||||
# WARNING: I ONLY WORKS IN NET:HOST MODE
|
||||
#
|
||||
|
||||
FROM debian:jessie
|
||||
MAINTAINER kev<noreply@datageek.info>
|
||||
@ -15,4 +13,5 @@ COPY pptpd.conf /etc/
|
||||
COPY chap-secrets /etc/ppp/
|
||||
COPY pptpd-options /etc/ppp/
|
||||
|
||||
CMD ["pptpd", "--fg"]
|
||||
CMD iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE \
|
||||
&& pptpd --fg
|
||||
|
@ -13,7 +13,6 @@ pptpd:
|
||||
- ./pptpd.conf:/etc/pptpd.conf
|
||||
- ./pptpd-options:/etc/ppp/pptpd-options
|
||||
- ./chap-secrets:/etc/ppp/chap-secrets
|
||||
net: host
|
||||
privileged: true
|
||||
restart: always
|
||||
```
|
||||
@ -22,9 +21,6 @@ pptpd:
|
||||
|
||||
```
|
||||
$ docker-compose up -d
|
||||
$ iptables -t filter -I INPUT -p tcp --dport 1723 -j ACCEPT
|
||||
$ iptables -t filter -I INPUT -p 47 -j ACCEPT
|
||||
$ iptables -t nat -I POSTROUTING -s 192.168.127.0/24 -j MASQUERADE
|
||||
```
|
||||
|
||||
You must open the following ports:
|
||||
|
@ -1,9 +1,9 @@
|
||||
name pptpd
|
||||
refuse-pap
|
||||
refuse-chap
|
||||
refuse-mschap
|
||||
require-mschap-v2
|
||||
require-mppe-128
|
||||
#refuse-pap
|
||||
#refuse-chap
|
||||
#refuse-mschap
|
||||
#require-mschap-v2
|
||||
#require-mppe-128
|
||||
proxyarp
|
||||
nodefaultroute
|
||||
lock
|
||||
|
Loading…
Reference in New Issue
Block a user