Wireguard failling due to resolvconf

Wireguard’s wg-quick command fails to create an interface, eg wg0 when run on a new install due to a bug in Debian and Ubuntu.

The command wg-quick up wg0 returns the following error instead of launching the tunnel interface wg0.

[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.6.0.6/24 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a wg0 -m 0 -x
/usr/bin/wg-quick: line 32: resolvconf: command not found
[#] ip link delete dev wg0

This can be fix by creating a symlink:

ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf

Leave a Reply