1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/pptpd
2015-06-28 17:15:49 +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 17:15:49 +08:00
Dockerfile.debian update 2015-06-28 17:15:49 +08:00
pptpd-options update 2015-06-28 16:39:01 +08:00
pptpd.conf update 2015-06-28 11:42:35 +08:00
README.md update 2015-06-28 17:15:49 +08:00

pptpd

The Point-to-Point Tunneling Protocol is a method for implementing virtual private networks. PPTP uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets.

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

server

$ modprobe nf_conntrack_pptp nf_nat_pptp
$ docker-compose up -d

You need to config firewall:

  • To let PPTP tunnel maintenance traffic, allow port 1723/tcp.
  • To let PPTP tunneled data to pass through router, allow proto gre.
  • Set net.ipv4.ip_forward=1
  • Set DEFAULT_FORWARD_POLICY=ACCEPT