1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00
dockerfiles/pptpd
2015-06-28 14:48:50 +08:00
..
chap-secrets add pptpd 2015-06-27 18:32:24 +08:00
docker-compose.yml update 2015-06-28 12:36:09 +08:00
Dockerfile update 2015-06-28 12:36:09 +08:00
pptpd-options update 2015-06-28 11:53:23 +08:00
pptpd.conf update 2015-06-28 11:42:35 +08:00
README.md udpate 2015-06-28 14:48:50 +08:00

pptpd

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
  privileged: true
  restart: always
  #net: host

server

$ docker-compose up -d

WARNING: YOU NEED TO REBOOT IF CONTAINER RESTARTED.

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.

firewall

If you use net: host for networking:

$ vim /etc/defautl/ufw
# DEFAULT_FORWARD_POLICY="ACCEPT"
$ ufw reload
$ ufw allow 1723
$ iptables -t nat -A POSTROUTING -s 192.168.127.0/24 -j MASQUERADE