This is a containerised OpenVPN client that has dante SOCKS server attached to it so you can connect to a VPN without putting all your traffic through it. I personally use it with an automatic proxy switcher in Google Chrome to access resources that are only available while connected to a VPN.
- docker
- docker-compose
- Privilege to grant access to NET_ADMIN and
/dev/net/tun
- An OpenVPN config
git clone git@github.com:mdusher/socksvpn.git
cd socksvpn
mkdir config
- Copy your OpenVPN config to
config/vpn.conf
- If a username and password is required:
- Create a file called
config/auth
and put your username on the first line and password on the second line - Modify
config/vpn.conf
and addauth-user-pass /vpn/auth
to it (remove any other references toauth-user-pass
)
- Create a file called
- If a username and password is required:
- Run:
docker-compose up --build
This will build the docker image and run it, the SOCKS proxy should then be available at localhost:1080
.