Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lorf/docker-vpn-pptp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VPN (PPTP) for Docker

This is a docker image with simple VPN (PPTP) server with chap-secrets authentication.

PPTP uses /etc/ppp/chap-secrets file to authenticate VPN users. You need to create this file on your own and link it to docker when starting a container.

Example of chap-secrets file:

# Secrets for authentication using PAP
# client    server      secret      acceptable local IP addresses
<username>  *          <password>   *

Starting VPN server

To start VPN server as a docker container run:

docker run -d --net=host --privileged -v /dev/log:/dev/log -v {local_path_to_config_dir}:/config:ro lorf/vpn-pptp

Edit your local config/chap-secrets file, to add or modify VPN users whenever you need. When adding new users to config/chap-secrets file, you don't need to restart Docker container.

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.

About

Simple VPN (PPTP) server in Docker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.4%
  • Dockerfile 5.6%