This lightweight container runs a openvpn client and a squid proxy
When running you just have to configure your proxy client (browser , ...) to point on host:port exposed by this container. for test case localhost:3128
services:
openvpn-squid-proxy :
build: .
image: mdurieux/openvpn-squid-proxy-alpine
container_name: openvpn-squid-proxy-alpine
ports:
- 3128:3128
dns:
- 8.8.8.8 # can be different depending on your needs
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
volumes:
- YOUR_ovpn_FILE_PATH:/vpn/config.ovpn
- YOUR_AUTH_FILE_PATH:/vpn-auth/auth.txt
docker run -d --name openvpn-squid-proxy-alpine -p 3128:3128 --dns=8.8.8.8 --cap-add=NET_ADMIN --device /dev/net/tun -v YOUR_ovpn_FILE_PATH:/vpn/config.ovpn -v YOUR_AUTH_FILE_PATH::/vpn-auth/auth.txt mdurieux/openvpn-squid-proxy-alpine
In this example the file must contain :
auth-user-pass /etc/openvpn/custom/auth.txt
Is a simple text file with 2 lines
username
password
This image has been tested with surfshark vpn successfully
Content type
Image
Digest
Size
8.1 MB
Last updated
over 6 years ago
docker pull mdurieux/openvpn-squid-proxy-alpine