1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/pptpd
2015-06-28 11:12:07 +08:00
..
chap-secrets add pptpd 2015-06-27 18:32:24 +08:00
docker-compose.yml update 2015-06-28 10:39:46 +08:00
Dockerfile updat 2015-06-28 11:12:07 +08:00
pptpd-options updat 2015-06-28 11:12:07 +08:00
pptpd.conf updat 2015-06-28 11:12:07 +08:00
README.md updat 2015-06-28 11:12:07 +08:00

pptpd

This is still a work in progress, a successful connection has not been made.

docker-compose.yml

pptpd:
  image: vimagick/pptpd
  volumes:
    - ./pptpd.conf:/etc/pptpd.conf
    - ./pptpd-options:/etc/ppp/pptpd-options
    - ./chap-secrets:/etc/ppp/chap-secrets
  net: host
  privileged: true
  restart: always

server

$ 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:

  • To allow PPTP tunnel maintenance traffic, open 1723/tcp.
  • To allow PPTP tunneled data to pass through router, open Protocol 47.