WireGuard road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
Find a file
Perlover 8efab59dff
Adding waiting (-w) in iptables for wg-iptables service
At one point I overloaded the server and Wireguard was not working on it. I began to understand and found out that the `wg-iptables` service did not start. The logs were:

```
May 19 17:50:27 server.domain iptables[714]: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
May 19 17:50:27 server.domain systemd[1]: wg-iptables.service: Main process exited, code=exited, status=4/NOPERMISSION
May 19 17:50:27 server.domain systemd[1]: wg-iptables.service: Failed with result 'exit-code'.
May 19 17:50:27 server.domain systemd[1]: Failed to start wg-iptables.service.

```

Then I started googling this problem [and found out](https://lists.zx2c4.com/pipermail/wireguard/2019-October/004592.html) that the problem is that your startup commands do not specify to wait in case of blocking. This patch fixes the problem.
2023-05-19 18:17:00 +02:00
LICENSE.txt First commit 2020-04-30 20:26:38 +02:00
README.md Update README.md 2022-08-21 18:28:22 +02:00
wireguard-install.sh Adding waiting (-w) in iptables for wg-iptables service 2023-05-19 18:17:00 +02:00

wireguard-install

WireGuard road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora.

This script will let you set up your own VPN server in no more than a minute, even if you haven't used WireGuard before. It has been designed to be as unobtrusive and universal as possible.

Installation

Run the script and follow the assistant:

wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh

Once it ends, you can run it again to add more users, remove some of them or even completely uninstall WireGuard.

I want to run my own VPN but don't have a server for that

You can get a VPS from just 2€/month at AlphaVPS.

Donations

If you want to show your appreciation, you can donate via PayPal or cryptocurrency. Thanks!