{"id":21121485,"url":"https://github.com/oneofone/pia-socks-proxy","last_synced_at":"2025-07-08T21:32:47.381Z","repository":{"id":25056979,"uuid":"103069892","full_name":"OneOfOne/pia-socks-proxy","owner":"OneOfOne","description":"An Alpine Linux container running a socks5 proxy (using dante) via Private Internet Access (OpenVPN).","archived":false,"fork":false,"pushed_at":"2022-05-12T19:56:59.000Z","size":14,"stargazers_count":17,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T11:25:45.329Z","etag":null,"topics":["docker","docker-image","openvpn","private-internet-access","socks5","vpn"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneOfOne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-10T23:44:17.000Z","updated_at":"2023-12-30T19:51:45.000Z","dependencies_parsed_at":"2022-08-09T02:30:19.095Z","dependency_job_id":null,"html_url":"https://github.com/OneOfOne/pia-socks-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OneOfOne/pia-socks-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fpia-socks-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fpia-socks-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fpia-socks-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fpia-socks-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneOfOne","download_url":"https://codeload.github.com/OneOfOne/pia-socks-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fpia-socks-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264352889,"owners_count":23594989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","openvpn","private-internet-access","socks5","vpn"],"created_at":"2024-11-20T03:50:48.182Z","updated_at":"2025-07-08T21:32:45.201Z","avatar_url":"https://github.com/OneOfOne.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A socks5 proxy via Private Internet Access.\n\nAn [Alpine](https://alpinelinux.org/) Linux container running a socks5 proxy (using [dante](https://www.inet.no/dante/)) via Private Internet Access (OpenVPN).\n\nProtect your browsing activities through an encrypted and anonymized VPN proxy!\n\nYou will need a [PrivateInternetAccess](https://www.privateinternetaccess.com/pages/how-it-works) account.\nIf you don't have one, you can [sign up here](https://www.privateinternetaccess.com/pages/buy-vpn) for one.\n\n[![Docker Build Status](https://img.shields.io/docker/build/oneofone/pia-socks-proxy.svg?style=flat-square)]()\n[![Docker Build Status](https://img.shields.io/docker/automated/oneofone/pia-socks-proxy.svg?style=flat-square)]()\n[![Docker Build Status](https://img.shields.io/docker/pulls/oneofone/pia-socks-proxy.svg?style=flat-square)]()\n[![Docker Build Status](https://img.shields.io/docker/stars/oneofone/pia-socks-proxy.svg?style=flat-square)]()\n\n\n## Starting the VPN Proxy\n\n```sh\ndocker run -d \\\n--cap-add=NET_ADMIN \\\n--device=/dev/net/tun \\\n--name=pia-socks-proxy \\\n--restart=always \\\n-e \"USERNAME=\u003cpia_username\u003e\" \\\n-e \"PASSWORD=\u003cpia_password\u003e\" \\\n-e \"REGION=\u003cregion\u003e\" \\ # default US East\n-e \"DNS=\u003cdns servers\" \\ # default: cloudflare's tls servers 1.1.1.1@853#cloudflare-dns.com 1.0.0.1@853#cloudflare-dns.com\n-e \"ENCRYPTION=[strong|normal]\" # default: strong\n-e \"PROTOCOL=[udp|tcp]\" #default: udp\n-p 1080:1080 \\\noneofone/pia-socks-proxy\n```\n\nSubstitute the environment variables for `REGION`, `USERNAME`, `PASSWORD` as indicated.\n\nA `docker-compose-dist.yml` file has also been provided. Copy this file to `docker-compose.yml` and substitute the environment variables are indicated.\n\nThen start the VPN Proxy via:\n\n```sh\ndocker-compose up -d\n```\n\n### Environment Variables\n\n`REGION` is optional. The default region is set to `US East`. `REGION` should match the supported PIA `.opvn` region config.\n\nSee the [PIA VPN Tunnel Network page](https://www.privateinternetaccess.com/pages/network) for details.\nUse the `Location` value for your `REGION`.\n\n`USERNAME` / `PASSWORD` - Credentials to connect to PIA\n\n## Connecting to the VPN Proxy\n\nTo connect to the VPN Proxy, set your browser socks5 proxy to localhost:1080.\n\n### Recommended (100% personal preference) addons\n\n- Chrome: [ProxySwitchyOmega](https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif)\n\n- Firefox: [ProxySwitcher](https://addons.mozilla.org/en-US/firefox/addon/proxy-switcher/)\n\n### Commend line\n\n- curl:\n\n```shell\n# socks5h so the dns is done over the socks proxy\n$ curl -v --proxy socks5h://localhost:1080\n```\n\n- git:\n\n```shell\nenv ALL_PROXY=socks5h://localhost:1080 git clone https://github.com/some/one.git\n```\n\n## Credits\n\n- [act28/pia-openvpn-proxy](https://github.com/act28/pia-openvpn-proxy), used the openvpn config from his image, but he uses privoxy rather than socks5.\n- [qmcgaw/private-internet-access](https://github.com/qdm12/private-internet-access-docker) unbound config + dynamically download the latest PIA configs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Fpia-socks-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneofone%2Fpia-socks-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Fpia-socks-proxy/lists"}