Skip to content

Custom container and deployment configuration for a VPN reverse proxy. Eventually I plan to add compatibility with other VPN providers.

Notifications You must be signed in to change notification settings

lawndoc/pia-socks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

A socks5 reverse proxy for Private Internet Access VPN.

An Alpine Linux container running a socks5 proxy (using dante) via Private Internet Access (OpenVPN).

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

Starting the VPN Proxy

docker-compose up -d --build

Substitute the environment variables for REGION, USERNAME, PASSWORD as indicated in the docker-compose.yml file. Or, better yet, set them in your deployment environment to reduce risk of committing them to a public repo :)

Environment Variables

REGION is optional. The default region is set to US Houston. The spelling/formatting forREGION should match the corresponding .opvn config name for that region.

See the PIA VPN Tunnel Network page for details. Use the Location value for your REGION.

USERNAME / PASSWORD - Credentials to connect to PIA. It is recommended to set environment variables on the host machine rather than in the docker-compose.yml file.

Test connection

  • curl:
# socks5h so the dns is done over the socks proxy
$ curl -x socks5h://<ip_of_host>:1080 ifconfig.me

Credits

  • OneOfOne/pia-socks-proxy I borrowed a lot from this repo. It was unmaintained and no longer working (broken dependency), so I broke out the DNSSEC service (unbound) into its own container to adopt a microservices model. I have reworked the Dante config file a little and heavily modified both the docker-compose.yml provided and the Dockerfile. But even then, most of the work was already done for me, so props to OneOfOne for his cool container.

About

Custom container and deployment configuration for a VPN reverse proxy. Eventually I plan to add compatibility with other VPN providers.

Topics

Resources

Stars

Watchers

Forks