Docker image with VPN (PPTP) server
3.5K
Warning: The PPTP protocol is inherently insecure
This is a docker image with VPN (PPTP) server with chap-secrets authentication.
PPTP uses /etc/ppp/chap-secrets file to authenticate VPN users.
Example of chap-secrets file:
# Secrets for authentication using PAP
# client server secret acceptable local IP addresses
username * password *
To start VPN server as a docker container run:
docker run -d --cap-add=NET_ADMIN --device=/dev/ppp --net=host -v pptpd:/etc/ppp/ --name=pptpd difeid/pptpd
Edit your local chap-secrets file, to add or modify VPN users whenever you need. When adding new users to chap-secrets file, you don't need to restart Docker container.
You can edit options.pptp file for modify pptpd configuration. When modifying configuration, you need to restart container.
If you have fails, please try run the docker container with --privileged
docker run -d --cap-add=NET_ADMIN --device=/dev/ppp --net=host -e USER={your user} -e PASS={your pass} difeid/pptpd
You can use any VPN (PPTP) client to connect to the service. To authenticate use credentials provided in chap-secrets file.
In case of permission denied inside container, you can try to start container with --privileged key.
Content type
Image
Digest
Size
3.4 MB
Last updated
over 6 years ago
docker pull difeid/pptpd