Skip to content

boronine/portablevpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portable OpenVPN

When you wish to re-host a VPN server while maintaining existing working client configs, you run into configuration and compatibility problems.

This solution creates a "golden" OCI image tarball that can be re-hosted on any compatible platform. Client configs will not expire for 10 years. Google DNS (8.8.8.8) is hardcoded.

Build

Generate Docker image tarball and 16 OpenVPN client configs in dist folder:

PORTABLEVPN_HOSTNAME=myvpnwebsite.com ./build.sh

Deploy on a Linux server

From local machine:

scp dist/portablevpn.tar myvpnwebsite.com:/home/ubuntu/

From server:

# optional cleanup
docker container stop portablevpn
docker container rm portablevpn
docker image rm portablevpn:latest
# load and run
docker image load < portablevpn.tar
docker run -d --name portablevpn --cap-add=NET_ADMIN -p 443:443/tcp portablevpn:latest

About

Portable VPN server that can be re-hosted without breaking client configs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors