mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-23 21:46:02 +03:00
WireGuard VPN installer for Linux servers
721d16e979
without resolvconf package, systemd unit file will fail in Debian 10 and ubuntu 18.04 or higher versions see error below ``` Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] ip link add wg0 type wireguard Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] wg setconf wg0 /dev/fd/63 Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] ip -4 address add 10.9.0.3/24 dev wg0 Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] ip link set mtu 1420 up dev wg0 Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] resolvconf -a wg0 -m 0 -x Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: /usr/bin/wg-quick: line 31: resolvconf: command not found Oct 17 12:11:39 Asus-VivoBook wg-quick[25620]: [#] ip link delete dev wg0 Oct 17 12:11:39 Asus-VivoBook systemd[1]: wg-quick@wg0.service: Main process exited ``` more info here : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930735 |
||
---|---|---|
.github | ||
LICENSE | ||
README.md | ||
wireguard-install.sh |
WireGuard installer
Easily set up a dual-stack WireGuard VPN on a Linux server. See the issues for the WIP.
Requirements
Supported distributions:
- Ubuntu
- Debian
- Fedora
- Centos
- Arch Linux
Usage
First, get the script and make it executable :
curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh
chmod +x wireguard-install.sh
Then run it :
./wireguard-install.sh
It will install wireguard on the server, configure, create a systemd service and a client configuration file. Mutliple clients are not yet supported.
Contributions are welcome!