Sign inSign up

difeid/pptpd

By difeid

•Updated over 6 years ago

Docker image with VPN (PPTP) server

Image
Networking
1

3.5K

difeid/pptpd repository overview

⁠This project is no longer supported and moved to the archive

Warning: The PPTP protocol is inherently insecure

FOSSA Status

Github⁠

⁠VPN (PPTP) server for Docker

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    *

⁠Starting VPN server

⁠Usage

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

⁠Simple usage
docker run -d --cap-add=NET_ADMIN --device=/dev/ppp --net=host -e USER={your user} -e PASS={your pass} difeid/pptpd

⁠Connecting to VPN service

You can use any VPN (PPTP) client to connect to the service. To authenticate use credentials provided in chap-secrets file.

⁠Environment variables

  • USER, PASS - create USER with PASSword
  • SUBNET - interface ppp0 inet addr. Default: 172.20.10.0/24
  • LOCAL_IP - pptpd local IP address. Default: 172.20.10.1
  • REMOTE_IP - pptpd remote IP address ranges. Default: 172.20.10.100-199

⁠Troubleshooting

In case of permission denied inside container, you can try to start container with --privileged key.

Tag summary

Content type

Image

Digest

Size

3.4 MB

Last updated

over 6 years ago

docker pull difeid/pptpd