{"id":49478716,"url":"https://github.com/x0lie/pia-tun","last_synced_at":"2026-04-30T21:01:51.744Z","repository":{"id":347132715,"uuid":"1072848111","full_name":"x0lie/pia-tun","owner":"x0lie","description":"A Docker image for using PIA with WireGuard. Feature-rich and optimized for reliability, security, and throughput.","archived":false,"fork":false,"pushed_at":"2026-04-22T09:30:03.000Z","size":975,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-22T10:34:21.340Z","etag":null,"topics":["alpine","docker","docker-image","golang","http-proxy","pia","port-forwarding","private-internet-access","self-hosted","socks5","vpn","vpn-client","wireguard","wireguard-vpn"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/x0lie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-09T09:44:43.000Z","updated_at":"2026-04-07T16:24:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/x0lie/pia-tun","commit_stats":null,"previous_names":["x0lie/pia-tun"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x0lie/pia-tun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0lie%2Fpia-tun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0lie%2Fpia-tun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0lie%2Fpia-tun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0lie%2Fpia-tun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x0lie","download_url":"https://codeload.github.com/x0lie/pia-tun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x0lie%2Fpia-tun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32476682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["alpine","docker","docker-image","golang","http-proxy","pia","port-forwarding","private-internet-access","self-hosted","socks5","vpn","vpn-client","wireguard","wireguard-vpn"],"created_at":"2026-04-30T21:01:50.963Z","updated_at":"2026-04-30T21:01:51.731Z","avatar_url":"https://github.com/x0lie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pia-tun\n\nA feature-rich and reliable VPN container image for PIA + WireGuard\n\n## Features\n\n- **Strict killswitch** - Zero-leak design with fast engagement (~25ms on amd64)\n- **WireGuard speed** - Tested at greater than 95% of line speed with automatic MSS clamping\n- **Reliable reconnect** - Handles outages gracefully and avoids reconnect churn\n- **Port forwarding** - Manages port acquisition, keepalive, and expiry/refresh\n- **Port syncing** - Automatically syncs port to qBittorrent, Deluge, Transmission, and custom endpoints\n- **SOCKS5 + HTTP Proxies** - Allows other machines and containers to access VPN (optional authentication)\n- **DoT Support** - Encrypt your DNS requests to further anonymize\n- **Observability** - `/health`, `/ready`, `/metrics` (prometheus), and `/metrics?format=json`\n- **Smart server selection** - Chooses the lowest-latency server from selected location(s), or from all locations\n- **Minimal host support** - Supports WireGuard userspace (wireguard-go) and iptables-legacy auto-fallback\n- **No manual auth token** - Auth token acquired automatically and kept fresh\n- **Multi-architecture images** - amd64, arm64, and armv7\n\n---\n\u003cimg src=\"https://raw.githubusercontent.com/x0lie/pia-tun/main/img/pia-tun-image.png\" alt=\"Title image\" width=\"57%\"\u003e\n\n[![Latest Version](https://img.shields.io/github/v/release/x0lie/pia-tun?label=version\u0026style=flat-round)](https://github.com/x0lie/pia-tun/releases)\n[![Docker Image Size](https://img.shields.io/docker/image-size/x0lie/pia-tun/latest?style=flat-round)](https://hub.docker.com/r/x0lie/pia-tun)\n\n[![Docker Pulls](https://img.shields.io/docker/pulls/x0lie/pia-tun?style=flat-round)](https://hub.docker.com/r/x0lie/pia-tun)\n[![GitHub stars](https://img.shields.io/github/stars/x0lie/pia-tun?label=github+stars\u0026style=flat-round)](https://github.com/x0lie/pia-tun/stargazers)\n\n## Quick Start\n\nVersions: `latest`, `develop`, and semantic (v1, v1.0, v1.0.0)\n\n**Copy-Paste Examples**: \n- [qbittorrent](https://github.com/x0lie/pia-tun/blob/main/docs/compose-examples/qbittorrent.md)\n- [reverse-proxy (traefik)](https://github.com/x0lie/pia-tun/blob/main/docs/compose-examples/traefik.md)\n- [legacy machines](https://github.com/x0lie/pia-tun/blob/main/docs/compose-examples/legacy-machines.md)\n\n### Minimal Compose\n\n```yaml\nservices:\n  pia-tun:\n    image: x0lie/pia-tun:latest\n    container_name: pia-tun\n    cap_add:\n      - NET_ADMIN\n    cap_drop:\n      - ALL\n    secrets:\n      - pia_user\n      - pia_pass\n\nsecrets:\n  pia_user:\n    file: ./secrets/pia_user\n  pia_pass:\n    file: ./secrets/pia_pass\n```\n\nImage also available as `ghcr.io/x0lie/pia-tun`\n\n## More Documentation\n\n- [environment variables](https://github.com/x0lie/pia-tun/tree/main/docs/env.md)\n- [firewall behavior](https://github.com/x0lie/pia-tun/blob/main/docs/firewall.md)\n- [dependent restarts](https://github.com/x0lie/pia-tun/blob/main/docs/dependent-restarts.md)\n- [troubleshooting](https://github.com/x0lie/pia-tun/blob/main/docs/troubleshooting.md)\n\n## Support\n\n- [Issues](https://github.com/x0lie/pia-tun/issues)\n- [Discussions](https://github.com/x0lie/pia-tun/discussions)\n\n## License\n\n[MIT License](https://github.com/x0lie/pia-tun/blob/main/LICENSE)\n\n## Acknowledgments\n\nSpecial thanks to Kevin for getting me into containerization\n\nBuilt with:\n- [WireGuard](https://www.wireguard.com/) - Fast, modern VPN protocol\n- [Prometheus](https://prometheus.io/) - Metrics and monitoring\n- [Alpine Linux](https://alpinelinux.org/) - Lightweight container base\n\nNot affiliated with Private Internet Access\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0lie%2Fpia-tun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx0lie%2Fpia-tun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx0lie%2Fpia-tun/lists"}