1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update pptpd

This commit is contained in:
kev 2018-03-15 22:01:36 +08:00
parent a98085433e
commit 3b49239fe8

@ -12,6 +12,7 @@ The Point-to-Point Tunneling Protocol is a method for implementing virtual priva
``` ```
~/fig/pptpd/ ~/fig/pptpd/
├── docker-compose.yml ├── docker-compose.yml
└── data/
├── pptpd.conf ├── pptpd.conf
├── pptpd-options ├── pptpd-options
└── chap-secrets └── chap-secrets
@ -23,9 +24,9 @@ file: docker-compose.yml
pptpd: pptpd:
image: vimagick/pptpd image: vimagick/pptpd
volumes: volumes:
- ./pptpd.conf:/etc/pptpd.conf - ./data/pptpd.conf:/etc/pptpd.conf
- ./pptpd-options:/etc/ppp/pptpd-options - ./data/pptpd-options:/etc/ppp/pptpd-options
- ./chap-secrets:/etc/ppp/chap-secrets - ./data/chap-secrets:/etc/ppp/chap-secrets
privileged: true privileged: true
restart: always restart: always
``` ```
@ -64,7 +65,6 @@ file: chap-secrets
``` ```
# Secrets for authentication using CHAP # Secrets for authentication using CHAP
# client server secret IP addresses # client server secret IP addresses
username * password * username * password *
``` ```
@ -73,6 +73,7 @@ username * password *
## Server Setup ## Server Setup
```bash ```bash
# edit /etc/default/ufw (for ubuntu)
$ modprobe nf_conntrack_pptp nf_nat_pptp $ modprobe nf_conntrack_pptp nf_nat_pptp
$ cd ~/fig/pptpd/ $ cd ~/fig/pptpd/
$ docker-compose up -d $ docker-compose up -d