{"id":20739956,"url":"https://github.com/eduinlight/wireguard-server","last_synced_at":"2026-04-11T11:36:04.270Z","repository":{"id":248572746,"uuid":"829048914","full_name":"eduinlight/wireguard-server","owner":"eduinlight","description":"Wireguard server with Access Control List (ACL)","archived":false,"fork":false,"pushed_at":"2024-07-19T10:39:11.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T23:26:33.896Z","etag":null,"topics":["bash","docker","docker-compose","iptables","iptables-persistent","wireguard"],"latest_commit_sha":null,"homepage":"","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/eduinlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-07-15T16:46:30.000Z","updated_at":"2025-01-25T01:03:00.000Z","dependencies_parsed_at":"2024-07-15T21:56:46.758Z","dependency_job_id":"568b870a-36df-4422-ab99-61e3d24089fc","html_url":"https://github.com/eduinlight/wireguard-server","commit_stats":null,"previous_names":["eduinlight/wireguard-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eduinlight/wireguard-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduinlight%2Fwireguard-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduinlight%2Fwireguard-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduinlight%2Fwireguard-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduinlight%2Fwireguard-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduinlight","download_url":"https://codeload.github.com/eduinlight/wireguard-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduinlight%2Fwireguard-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31679482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"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":["bash","docker","docker-compose","iptables","iptables-persistent","wireguard"],"created_at":"2024-11-17T06:26:49.630Z","updated_at":"2026-04-11T11:36:04.251Z","avatar_url":"https://github.com/eduinlight.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wireguard server with Access Control List (ACL)\n\nThis repository provide an easy way to create a wireguard server with ACL.\nIs built in top of [wg-easy](https://github.com/wg-easy/wg-easy) to provide an easy way to deny/accept only access of vpn users to some ips.\nThe ACL can work in two possible modes:\n\n- `ALLOW_SOME_DENY_ALL`: Allow vpn users the access to _only_ some ips. `Default mode`\n- `DENY_SOME_ALLOW_ALL`: Deny vpn users the access to _only_ some ips.\n\n## Prerequisites\n\n- `iptables` and `iptables-persistent` linux packages installed. Tested on `debian`.\n- [docker](https://www.docker.com/)\n- [bash](https://www.gnu.org/software/bash/)\n- [make](https://www.gnu.org/software/make/)\n- Root privileges\n\n## Create the server\n\n1. Copy the distributed environment file `.env.dist` to `.env`.\n2. All needed values to start a wg server are already setted for you.\n   Refer to [wg-easy](https://github.com/wg-easy/wg-easy) if you want to customize it more.\n   For a minimum of configuration this are the required variables:\n\n```BASH\n# wg host example: vpn.example.com\nWG_HOST=\n# web ui password\nPASSWORD=\n```\n\n3. Change if needed the default `ACL_MODE` variable depending on your use case.\n4. To `allow/deny` some ips edit `ips.sh` file and add them to the `IPS` variable.\n   - For `ACL_MODE=ALLOW_SOME_DENY_ALL` this ips are allowed and the rest are denied.\n   - For `ACL_MODE=DENY_SOME_ALLOW_ALL` this ips are denied and the rest are allowed.\n5. Start the server: `make up`\n\n## Stop the server\n\nExecute `make down` command to clean the `DOCKER-USER` iptables chain and remove the container and network created.\n\n## Accept all connections\n\nSet the value of `ACL_MODE` to `DENY_SOME_ALLOW_ALL` and keep empty the `IPS` variable in `ips.sh` file.\n\n## Connect clients\n\n1. Visit `localhost:9001` or the port specified in `PORT` variable.\n2. Set the password to the one specified in the `PASSWORD` variable.\n3. UI is very simple and straight forward just follow your instinct.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduinlight%2Fwireguard-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduinlight%2Fwireguard-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduinlight%2Fwireguard-server/lists"}