Skip to content

Squid proxy server in docker with traffic through vpn client

Notifications You must be signed in to change notification settings

IvanAlekseevichPopov/localProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local proxy server

Abstract

The point is we start proxy that works through openvpn tunnel:

Local area Internet
Browser -> squid -> openvpn client => => openvpn server

Fast start

  1. You need docker and docker-compose installed on your machine

  2. Enable ip forwarding on your local host machine(it will affect docker containers also):

    • Temporary(without rebooting the system):
    sysctl -w net.ipv4.ip_forward=1 
    • Permanent:
    echo "sysctl net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
  3. Put in vpn/client.ovpn your vpn client config(there is example vpn/client.ovpn.dist)

  4. Start docker-compose by running

    docker-compose up -d
  5. Set proxy setting in your browser to:

    Protocol Host Port
    http localhost 3128

About

Squid proxy server in docker with traffic through vpn client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages