You are not logged in.

#1 2021-06-25 23:29:22

Kamey
Member
From: Serbia
Registered: 2020-12-07
Posts: 44

Failed to start WireGuard via wg-quick(8) for wg0.

I'm trying to connect via wireguard to my VPN server via config file, which is placed at /etc/wireguard/wg0.conf
But when I try to start wg-quick@wg0 using systemctl start wg-quick@wg0 It doesn't work

Here's the output of journalctl -xeu wg-quick@wg0.service

░░ A start job for unit wg-quick@wg0.service has begun execution.
░░ 
░░ The job identifier is 2672.
Jun 26 01:04:37 archasus wg-quick[9930]: [#] ip link add wg0 type wireguard
Jun 26 01:04:37 archasus wg-quick[9930]: [#] wg setconf wg0 /dev/fd/63
Jun 26 01:04:37 archasus wg-quick[9930]: [#] ip -4 address add 10.66.66.2/32 dev wg0
Jun 26 01:04:37 archasus wg-quick[9930]: [#] ip -6 address add fd42:42:42::2/128 dev wg0
Jun 26 01:04:37 archasus wg-quick[9930]: [#] ip link set mtu 1420 up dev wg0
Jun 26 01:04:37 archasus wg-quick[9958]: [#] resolvconf -a wg0 -m 0 -x
Jun 26 01:04:37 archasus wg-quick[9960]: /usr/bin/wg-quick: line 32: resolvconf: command not found
Jun 26 01:04:37 archasus wg-quick[9930]: [#] ip link delete dev wg0
Jun 26 01:04:37 archasus systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=127/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit wg-quick@wg0.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 127.
Jun 26 01:04:37 archasus systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit wg-quick@wg0.service has entered the 'failed' state with result 'exit-code'.
Jun 26 01:04:37 archasus systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
░░ Subject: A start job for unit wg-quick@wg0.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit wg-quick@wg0.service has finished with a failure.
░░ 
░░ The job identifier is 2672 and the job result is failed.

I'm unsure to what could be the cause of this issue, and I wouldn't consider myself an advanced knowledgeable user but more like a normal standard linux user, since I don't use LInux for anything except, browsing the internet, doing web design, and watching multimedia content, but I'm willing to learn, So I would appreciate if someone could point me to the right direction of fixing this issue, Thanks!

Last edited by Kamey (2021-06-25 23:29:59)


CPU: Intel i7-4790 (8) @ 4.000GHz
RAM: 16GB DDR3
GPU: Intel HD 4600
DE: Mate

Offline

#2 2021-06-26 06:08:06

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 596

Re: Failed to start WireGuard via wg-quick(8) for wg0.

Here's your issue:

Kamey wrote:
Jun 26 01:04:37 archasus wg-quick[9960]: /usr/bin/wg-quick: line 32: resolvconf: command not found

wg-quick needs resolvconf for DNS. You can see that openresolv (a resolvconf implementation) is listed in the wireguard-tools package's optional dependencies.

Offline

Board footer

Powered by FluxBB