mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
update
This commit is contained in:
@@ -4,9 +4,20 @@ pptpd
|
|||||||
[](https://imagelayers.io/?images=vimagick/pptpd:latest)
|
[](https://imagelayers.io/?images=vimagick/pptpd:latest)
|
||||||
|
|
||||||
The Point-to-Point Tunneling Protocol is a method for implementing virtual private networks.
|
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
|
`PPTP` uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets.
|
||||||
|
|
||||||
|
## directory tree
|
||||||
|
|
||||||
|
```
|
||||||
|
~/fig/pptpd/
|
||||||
|
├── docker-compose.yml
|
||||||
|
├── pptpd.conf
|
||||||
|
├── pptpd-options
|
||||||
|
└── chap-secrets
|
||||||
|
```
|
||||||
|
|
||||||
|
file: docker-compose.yml
|
||||||
|
|
||||||
```
|
```
|
||||||
pptpd:
|
pptpd:
|
||||||
@@ -19,10 +30,51 @@ pptpd:
|
|||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
|
file: pptpd.conf
|
||||||
|
|
||||||
|
```
|
||||||
|
option /etc/ppp/pptpd-options
|
||||||
|
pidfile /var/run/pptpd.pid
|
||||||
|
localip 192.168.127.1
|
||||||
|
remoteip 192.168.127.100-199
|
||||||
|
```
|
||||||
|
|
||||||
|
file: pptpd-options
|
||||||
|
|
||||||
|
```
|
||||||
|
name pptpd
|
||||||
|
refuse-pap
|
||||||
|
refuse-chap
|
||||||
|
refuse-mschap
|
||||||
|
require-mschap-v2
|
||||||
|
require-mppe-128
|
||||||
|
proxyarp
|
||||||
|
nodefaultroute
|
||||||
|
lock
|
||||||
|
nobsdcomp
|
||||||
|
novj
|
||||||
|
novjccomp
|
||||||
|
nologfd
|
||||||
|
ms-dns 8.8.8.8
|
||||||
|
ms-dns 8.8.4.4
|
||||||
|
```
|
||||||
|
|
||||||
|
file: chap-secrets
|
||||||
|
|
||||||
|
```
|
||||||
|
# Secrets for authentication using CHAP
|
||||||
|
# client server secret IP addresses
|
||||||
|
|
||||||
|
username * password *
|
||||||
|
```
|
||||||
|
|
||||||
|
> Please use strong password in `cha-secrets` file to protect your server.
|
||||||
|
|
||||||
## server
|
## server
|
||||||
|
|
||||||
```
|
```
|
||||||
$ modprobe nf_conntrack_pptp nf_nat_pptp
|
$ modprobe nf_conntrack_pptp nf_nat_pptp
|
||||||
|
$ cd ~/fig/pptpd/
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -32,3 +84,7 @@ You need to config firewall:
|
|||||||
- To let PPTP tunneled data to pass through router, `allow proto gre`.
|
- To let PPTP tunneled data to pass through router, `allow proto gre`.
|
||||||
- Set `net.ipv4.ip_forward=1`
|
- Set `net.ipv4.ip_forward=1`
|
||||||
- Set `DEFAULT_FORWARD_POLICY=ACCEPT`
|
- Set `DEFAULT_FORWARD_POLICY=ACCEPT`
|
||||||
|
|
||||||
|
## client
|
||||||
|
|
||||||
|
Connect PPTP server using `username:password` with `mppe-128` encyption.
|
||||||
|
|||||||
Reference in New Issue
Block a user