{"id":17146159,"url":"https://github.com/drew2a/wireguard","last_synced_at":"2025-08-22T00:31:04.136Z","repository":{"id":38814687,"uuid":"217871455","full_name":"drew2a/wireguard","owner":"drew2a","description":"This repository contains scripts that make it easy to configure WireGuard on VPS.","archived":false,"fork":false,"pushed_at":"2022-09-26T10:37:47.000Z","size":42,"stargazers_count":139,"open_issues_count":1,"forks_count":51,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-12-10T08:34:47.768Z","etag":null,"topics":[],"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/drew2a.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}},"created_at":"2019-10-27T15:00:11.000Z","updated_at":"2024-08-29T15:41:36.000Z","dependencies_parsed_at":"2023-01-17T18:01:03.988Z","dependency_job_id":null,"html_url":"https://github.com/drew2a/wireguard","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew2a%2Fwireguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew2a%2Fwireguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew2a%2Fwireguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew2a%2Fwireguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drew2a","download_url":"https://codeload.github.com/drew2a/wireguard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230542288,"owners_count":18242332,"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-14T21:07:59.245Z","updated_at":"2024-12-20T06:06:32.347Z","avatar_url":"https://github.com/drew2a.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/drew2a/wireguard.svg?branch=master)](https://travis-ci.com/drew2a/wireguard)\n[![Maintainability](https://api.codeclimate.com/v1/badges/2092ead49a2e82b38f64/maintainability)](https://codeclimate.com/github/drew2a/wireguard/maintainability)\n\n# Wireguard\n\nThis repository contains scripts that make it easy to configure [WireGuard](https://www.wireguard.com)\non [VPS](https://en.wikipedia.org/wiki/Virtual_private_server).\n\nMedium article: [How to deploy WireGuard node on a DigitalOcean's droplet](https://medium.com/@drew2a/replace-your-vpn-provider-by-setting-up-wireguard-on-digitalocean-6954c9279b17)\n\n## Quick Start\n\n### Ubuntu\n\n```bash\nwget https://raw.githubusercontent.com/drew2a/wireguard/master/wg-ubuntu-server-up.sh\n\nchmod +x ./wg-ubuntu-server-up.sh\nsudo ./wg-ubuntu-server-up.sh\n```\n\n\n### Debian\n\n```bash\nwget https://raw.githubusercontent.com/drew2a/wireguard/master/wg-debian-server-up.sh\n\nchmod +x ./wg-debian-server-up.sh\nsudo ./wg-debian-server-up.sh\n```\n\n\nTo get a full instruction, please follow to the article above.\n\n### Supported OS\n\n* Ubuntu 18.04\n* Ubuntu 20.04\n* Ubuntu 22.04\n* Debian 9\n* Debian 10\n\n## wg-ubuntu-server-up.sh\n\nThis script:\n\n* Installs all necessary software on an empty Ubuntu DigitalOcean droplet\n(it should also work with most modern Ubuntu images)\n* Configures IPv4 forwarding and iptables rules\n* Sets up [unbound](https://github.com/NLnetLabs/unbound) DNS resolver \n* Creates a server and clients configurations\n* Installs [qrencode](https://github.com/fukuchi/libqrencode/)\n* Runs [WireGuard](https://www.wireguard.com)\n\n\n### Usage\n\n```bash\nwg-ubuntu-server-up.sh [--clients=\u003cclients_count\u003e] [--no-reboot] [--no-unbound]\n```\n\nOptions:\n\n* `--clients=\u003cclients_count\u003e` how many client's configs will be created\n* `--no-unbound` disables Unbound server installation (1.1.1.1 will be used as\n   a default DNS for client's configs)\n* `--no-reboot` disables rebooting at the end of the script execution\n\n### Example of usage\n\n```bash\n./wg-ubuntu-server-up.sh\n```\n\n```bash\n./wg-ubuntu-server-up.sh --clients=10\n```\n\n## wg-debian-server-up.sh\n\nThis script works the same way and with the same options, that\n`wg-ubuntu-server-up.sh` do.\n\n## wg-genconf.sh\n\nThis script generate server and clients configs for WireGuard.\n\nIf the public IP is not defined, then the public IP of the machine from which \nthe script is run is used.\nIf the number of clients is not defined, then used 10 clients.\n\n### Prerequisites\n\nInstall [WireGuard](https://www.wireguard.com) if it's not installed.\n\n### Usage\n\n```bash\n./wg-genconf.sh [\u003cnumber_of_clients\u003e [\u003cdns_ip\u003e [\u003cserver_public_ip\u003e]]]\n```\n\nWhere:\n\n* `number_of_clients` how many client's configs will be generated\n* `dns_ip` the script should use this IP as a DNS address\n* `server_public_ip` the script should use this IP as a server address\n\n\n### Example of usage:\n\n```bash\n./wg-genconf.sh\n```\n\n```bash\n./wg-genconf.sh 10\n```\n\n```bash\n./wg-genconf.sh 10 1.1.1.1\n```\n\n```bash\n./wg-genconf.sh 10 1.1.1.1 157.245.73.253\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrew2a%2Fwireguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrew2a%2Fwireguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrew2a%2Fwireguard/lists"}