Skip to content

Containerized openvpn client reachable via SOCKS

Notifications You must be signed in to change notification settings

godelized/stvpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Split tunneling with OpenVPN

This script builds a 10MB Docker image based on Alpine Linux that allows to run a containerized OpenVPN. The configuration of the VPN can be set at runtime.

The container can receive traffic via sockd that is running in the container. The configuration of sockd can be set at runtime. A default sockd.conf is provided.

To use the VPN, applications should target the sockd server by redirecting their traffic to localhost:1080 using the proper protocol. With the default sockd.conf it would be socks5://localhost:1080.

Usage

./stvpn.sh build # Once.
./stvpn.sh run

About

Containerized openvpn client reachable via SOCKS

Resources

Stars

Watchers

Forks