diff --git a/pptpd/Dockerfile b/pptpd/Dockerfile index 86ba84d..b9d36e7 100644 --- a/pptpd/Dockerfile +++ b/pptpd/Dockerfile @@ -1,8 +1,6 @@ # # Dockerfile for pptpd # -# WARNING: I ONLY WORKS IN NET:HOST MODE -# FROM debian:jessie MAINTAINER kev @@ -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 diff --git a/pptpd/README.md b/pptpd/README.md index f394104..a7792a0 100644 --- a/pptpd/README.md +++ b/pptpd/README.md @@ -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: diff --git a/pptpd/pptpd-options b/pptpd/pptpd-options index a55dcd9..ca75c38 100644 --- a/pptpd/pptpd-options +++ b/pptpd/pptpd-options @@ -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