wg-quick systemd service doesn't work after boot

Lonnie Abelbeck lists at lonnie.abelbeck.com
Sun Oct 6 20:13:29 CEST 2019



> On Oct 6, 2019, at 11:54 AM, Adrián Mihálko <adriankoooo at gmail.com> wrote:
> 
> I have 3 wg interface on my server, but I am unable to enable wg0 with wg-quick at boot:
> 
> @ubuntu:~$ sudo systemctl enable wg-quick at wg0
> @ubuntu:~$ 
> ...

> Oct 06 13:22:53 ubuntu wg-quick[1737]: [#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o e
> Oct 06 13:22:53 ubuntu wg-quick[1737]: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?


Hi Adrián,

As a test, how about adding -w to the iptables call:
--
iptables -w -A FORWARD -i wg0 ...
--
and see it that fixes it.

With -w, iptables will wait until the lock is released.

Lonnie



More information about the WireGuard mailing list