1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/pptpd/README.md

35 lines
868 B
Markdown
Raw Normal View History

2015-06-27 10:32:24 +00:00
pptpd
=====
2015-06-28 09:14:56 +00:00
[![](https://badge.imagelayers.io/vimagick/pptpd:latest.svg)](https://imagelayers.io/?images=vimagick/pptpd:latest)
2015-06-28 07:25:12 +00:00
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.
2015-06-27 11:33:27 +00:00
## docker-compose.yml
```
pptpd:
image: vimagick/pptpd
volumes:
2015-06-28 02:39:46 +00:00
- ./pptpd.conf:/etc/pptpd.conf
2015-06-28 03:12:07 +00:00
- ./pptpd-options:/etc/ppp/pptpd-options
2015-06-27 11:33:27 +00:00
- ./chap-secrets:/etc/ppp/chap-secrets
privileged: true
restart: always
```
2015-06-28 03:12:07 +00:00
## server
```
2015-06-28 07:25:12 +00:00
$ modprobe nf_conntrack_pptp nf_nat_pptp
2015-06-28 03:12:07 +00:00
$ docker-compose up -d
```
2015-06-28 07:25:12 +00:00
You need to config firewall:
2015-06-28 06:48:50 +00:00
2015-06-28 07:25:12 +00:00
- 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`