{"id":19336717,"url":"https://github.com/samrocketman/docker-wireguard","last_synced_at":"2026-06-18T11:31:38.194Z","repository":{"id":246832762,"uuid":"822001894","full_name":"samrocketman/docker-wireguard","owner":"samrocketman","description":"A kernel space VPN operating over UDP from Docker.","archived":false,"fork":false,"pushed_at":"2024-07-10T04:35:42.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T08:13:31.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/samrocketman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2024-06-30T03:14:18.000Z","updated_at":"2024-07-22T14:42:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"27cb7235-f659-4e0e-afe2-46c7af45f384","html_url":"https://github.com/samrocketman/docker-wireguard","commit_stats":null,"previous_names":["samrocketman/docker-wireguard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samrocketman/docker-wireguard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fdocker-wireguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fdocker-wireguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fdocker-wireguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fdocker-wireguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samrocketman","download_url":"https://codeload.github.com/samrocketman/docker-wireguard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fdocker-wireguard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34489019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T03:12:11.026Z","updated_at":"2026-06-18T11:31:38.176Z","avatar_url":"https://github.com/samrocketman.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A personal VPN using wireguard\n\nSimilar to my personal [OpenVPN server][openvpn] but using [wireguard][wg] as the\nunderlying technology.\n\n# Features\n\n- Allocates a VPN network at 10.90.80.0/24.\n- Automatically create and revoke client IPs.\n- VPN service will automatically reconfigure when clients are created or\n  revoked.\n- Performs full tunnel with NAT masquerade by default in client config.  All\n  device traffic goes through the VPN tunnel.\n\n# Prerequisite\n\nYour host kernel must be Linux 5.6 or greater.\n\nThe `wireguard` kernel module must be activated.\n\n```bash\nmodprobe wireguard\n\n# load module on reboot\necho wireguard \u003e\u003e /etc/modules\n```\n\n# Quickstart\n\n```bash\n./wvpn.sh\n./wvpn.sh new_client \"My phone\"\n\n# generate a QR code for wireguard mobile app\n./wvpn.sh qrcode 10.90.80.1\n\n# or create a text config for the same IP\n./wvpn.sh config 10.90.80.1 \u003e wg-config.conf\n```\n\nLater, if you want to revoke a client you do so by IP.\n\n```bash\n# list clients\n./wvpn.sh clients\n\n# revoke by IP\n./wvpn.sh revoke 10.90.80.1\n```\n\nLearn [more commands](docs/help.md).\n\n# Environment for docker compose consul server\n\nAdd a file named `.env` before running `./wvpn.sh` commands.\n\n```bash\nenvironment_args=(\n  -e client_remote=\u003cyour public IP\u003e\n  -e client_port=443\n  -e client_dns=\"172.16.238.251, 172.16.238.252\"\n)\nnetwork_args=(\n  --network docker-compose-ha-consul-vault-ui_internal\n  --dns 172.16.238.251\n  --dns 172.16.238.252\n  --ip 172.16.238.250\n)\nstrict_firewall=true\n```\n\n# Environment for pihole container\n\nIf you only want pihole as your DNS server, then you may optionally use\n\n    ./scripts/pihole.sh start\n\nWith `.env` configuration:\n\n```bash\nenvironment_args=(\n  -e client_remote=\u003cyour ip\u003e\n  -e client_port=443\n  -e client_dns=\"172.173.174.254\"\n)\nnetwork_args=(\n  --network pihole-net\n  --dns 172.173.174.254\n  --ip 172.173.174.253\n)\nstrict_firewall=true\n#PIHOLE_TZ=America/New_York\n#PIHOLE_WEBPASSWORD=yourpass\n```\n\n[openvpn]: https://github.com/samrocketman/docker-openvpn\n[wg]: https://www.wireguard.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamrocketman%2Fdocker-wireguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamrocketman%2Fdocker-wireguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamrocketman%2Fdocker-wireguard/lists"}