mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
udpate
This commit is contained in:
@@ -12,6 +12,7 @@ pptpd:
|
|||||||
- ./chap-secrets:/etc/ppp/chap-secrets
|
- ./chap-secrets:/etc/ppp/chap-secrets
|
||||||
privileged: true
|
privileged: true
|
||||||
restart: always
|
restart: always
|
||||||
|
#net: host
|
||||||
```
|
```
|
||||||
|
|
||||||
## server
|
## server
|
||||||
@@ -27,3 +28,15 @@ You must open the following ports:
|
|||||||
- To allow PPTP tunnel maintenance traffic, open `1723/tcp`.
|
- To allow PPTP tunnel maintenance traffic, open `1723/tcp`.
|
||||||
- To allow PPTP tunneled data to pass through router, open `Protocol 47`.
|
- 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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user