Skip to content

Ubuntu based privateinternetaccess.com Proxy Box with Squid(http proxy), Deluge (torrenting including port mapping), Dante(Socks5)

Notifications You must be signed in to change notification settings

orangepeelbeef/pia-proxybox

Repository files navigation

A collection of proxy tools via Private Internet Access.

An Ubuntu20.04 Linux container running:

  1. socks5 proxy (using dante) port 1080
  2. http proxy (using squid) port 3128
  3. Torrents ( using deluge) webui on port 8112
  4. Supervisord webui port 9009 (skip this port if you don't want it available)

all via Private Internet Access (OpenVPN).

Protect your browsing activities through an encrypted and anonymized VPN proxy!

You will need a PrivateInternetAccess account. If you don't have one, you can sign up here for one.

Starting the VPN Proxy

docker run -d \
--cap-add=NET_ADMIN \
--device=/dev/net/tun \
--dns=127.0.0.1 \
--name=pia-proxyboxng \
--restart=always \
-e "PIA_USER=<pia_username>" \
-e "PIA_PASS=<pia_password>" \
-e "REGION_ID=<pia ng region>" \
-e "DELUGE_UID=1000" \
-e "DELUGE_GID=1000" \
-e "HOST_SUBNET=<host subnet eg: 192.168.0.0/24>" \
-v /location/to/torrents:/torrents \
-v /location/to/app/deluge:/app/deluge \
-v /etc/localtime:/etc/localtime:ro \
-p 1080:1080 \
-p 8112:8112 \
-p 3128:3128
-p 9009:9009
orangepeelbeef/pia-proxyboxng:latest

Substitute the environment variables for REGION_ID, PIA_USER, PIA_PASS as indicated.

A docker-compose-dist.yml file has also been provided. Copy this file to docker-compose.yml and substitute the environment variables are indicated.

Then start the VPN Proxy via:

docker-compose up -d

Environment Variables

REGION_ID - DNS to the PIA server in desired region eg: ro

See the serverlist filtered with port forwarding support eg: curl -s https://serverlist.piaservers.net/vpninfo/servers/v4 | head -1 | jq -r '.regions[] | select(.port_forward==true) | .id '

PIA_USER / PIA_PASS - Credentials to connect to PIA

Connecting to the VPN Proxy

To connect to the VPN Proxy, set your browser socks5 proxy to localhost:1080.

CREDITS

https://github.com/pia-foss/manual-connections

Publish Docker image

Releases

No releases published

Packages

No packages published