{"id":16413681,"url":"https://github.com/lightswitch05/wireguard-docker","last_synced_at":"2025-02-24T09:18:35.625Z","repository":{"id":148069168,"uuid":"285875243","full_name":"lightswitch05/wireguard-docker","owner":"lightswitch05","description":"A simple docker wireguard client","archived":false,"fork":false,"pushed_at":"2024-02-03T03:15:29.000Z","size":7,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T12:52:15.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lightswitch05.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-08-07T16:32:51.000Z","updated_at":"2024-08-17T12:53:36.000Z","dependencies_parsed_at":"2023-05-19T01:30:35.916Z","dependency_job_id":null,"html_url":"https://github.com/lightswitch05/wireguard-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightswitch05%2Fwireguard-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightswitch05%2Fwireguard-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightswitch05%2Fwireguard-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightswitch05%2Fwireguard-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightswitch05","download_url":"https://codeload.github.com/lightswitch05/wireguard-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240449893,"owners_count":19803125,"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":[],"created_at":"2024-10-11T06:52:05.853Z","updated_at":"2025-02-24T09:18:35.308Z","avatar_url":"https://github.com/lightswitch05.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wireguard-docker\n\n### Setup\n\n* Clone the repo and create a folder named `secrets`.\n* Create `wg0.conf` in secrets with all your wireguard configuration, see below for an example.\n* Modify `docker-compose.yaml` to put your DNS server IPs. Sorry for hardcoding mine, I didn't really intend to make this repo public.\n* Run `docker-compose up -d`\n\n\n### Example `wg0.conf`\n\n```\n[Interface]\nAddress = 192.168.2.1/24\nDNS = 1.1.1.1, 8.8.8.8\nPostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE\nPostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE\nListenPort = 51820\nPrivateKey = {server's private key}\n\n[Peer] # My phone\nPublicKey = {client's public key}\nAllowedIPs = 192.168.2.2/32\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightswitch05%2Fwireguard-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightswitch05%2Fwireguard-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightswitch05%2Fwireguard-docker/lists"}