Sign inSign up

mdurieux/openvpn-squid-proxy-alpine

By mdurieux

•Updated over 6 years ago

Image
0

168

mdurieux/openvpn-squid-proxy-alpine repository overview

⁠openvpn-squid-proxy-alpine

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

⁠docker-compose

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 command line

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

⁠ovpn

In this example the file must contain :

auth-user-pass /etc/openvpn/custom/auth.txt

⁠auth file

Is a simple text file with 2 lines

username
password

This image has been tested with surfshark vpn successfully

Tag summary

Content type

Image

Digest

Size

8.1 MB

Last updated

over 6 years ago

docker pull mdurieux/openvpn-squid-proxy-alpine