1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-04 10:34:49 +02:00
dockerfiles/pptpd/README.md

43 lines
746 B
Markdown
Raw Normal View History

2015-06-27 12:32:24 +02:00
pptpd
=====
2015-06-27 13:33:27 +02:00
## docker-compose.yml
```
pptpd:
image: vimagick/pptpd
volumes:
2015-06-28 04:39:46 +02:00
- ./pptpd.conf:/etc/pptpd.conf
2015-06-28 05:12:07 +02:00
- ./pptpd-options:/etc/ppp/pptpd-options
2015-06-27 13:33:27 +02:00
- ./chap-secrets:/etc/ppp/chap-secrets
privileged: true
restart: always
2015-06-28 08:48:50 +02:00
#net: host
2015-06-27 13:33:27 +02:00
```
2015-06-28 05:12:07 +02:00
## server
```
$ docker-compose up -d
```
2015-06-28 07:18:17 +02:00
> WARNING: YOU NEED TO REBOOT IF CONTAINER RESTARTED.
2015-06-27 12:32:24 +02:00
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`.
2015-06-28 08:48:50 +02:00
## 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
```