wireguard_ynh icon indicating copy to clipboard operation
wireguard_ynh copied to clipboard

wg-quick@wg0 failed

Open dejalavidavolar opened this issue 11 months ago • 1 comments

Hi! I can't connect to my wireguard server and maybe (I think) it s because of this error:

LOGFILE: journalctl
Apr 24 17:22:01 systemd[1]: Starting [email protected] - WireGuard via wg-quick(8) for wg0...
Apr 24 17:22:01 wg-quick[3509]: [#] ip link add wg0 type wireguard
Apr 24 17:22:01 wg-quick[3509]: [#] wg setconf wg0 /dev/fd/63
Apr 24 17:22:01 wg-quick[3509]: [#] ip -4 address add 10.10.10.0/24 dev wg0
Apr 24 17:22:01 wg-quick[3509]: [#] ip -6 address add fd42::/112 dev wg0
Apr 24 17:22:01 wg-quick[3525]: RTNETLINK answers: Permission denied
Apr 24 17:22:01 wg-quick[3509]: [#] ip link delete dev wg0
Apr 24 17:22:01 systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 24 17:22:01 systemd[1]: [email protected]: Failed with result 'exit-code'.
Apr 24 17:22:01 systemd[1]: Failed to start [email protected] - WireGuard via wg-quick(8) for wg0.
Apr 24 17:23:43 systemd[1]: Starting [email protected] - WireGuard via wg-quick(8) for wg0...
Apr 24 17:23:43 wg-quick[3577]: [#] ip link add wg0 type wireguard
Apr 24 17:23:43 wg-quick[3577]: [#] wg setconf wg0 /dev/fd/63
Apr 24 17:23:43 wg-quick[3577]: [#] ip -4 address add 10.10.10.0/24 dev wg0
Apr 24 17:23:43 wg-quick[3577]: [#] ip -6 address add fd42::/112 dev wg0
Apr 24 17:23:43 wg-quick[3595]: RTNETLINK answers: Permission denied
Apr 24 17:23:43 wg-quick[3577]: [#] ip link delete dev wg0
Apr 24 17:23:43 systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 24 17:23:43 systemd[1]: [email protected]: Failed with result 'exit-code'.
Apr 24 17:23:43 systemd[1]: Failed to start [email protected] - WireGuard via wg-quick(8) for wg0.
Apr 24 17:26:44 systemd[1]: Starting [email protected] - WireGuard via wg-quick(8) for wg0...
Apr 24 17:26:44 wg-quick[3651]: [#] ip link add wg0 type wireguard
Apr 24 17:26:44 wg-quick[3651]: [#] wg setconf wg0 /dev/fd/63
Apr 24 17:26:44 wg-quick[3651]: [#] ip -4 address add 10.10.10.0/24 dev wg0
Apr 24 17:26:44 wg-quick[3651]: [#] ip -6 address add fd42::/112 dev wg0
Apr 24 17:26:44 wg-quick[3667]: RTNETLINK answers: Permission denied
Apr 24 17:26:44 wg-quick[3651]: [#] ip link delete dev wg0
Apr 24 17:26:44 systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 24 17:26:44 systemd[1]: [email protected]: Failed with result 'exit-code'.
Apr 24 17:26:44 systemd[1]: Failed to start [email protected] - WireGuard via wg-quick(8) for wg0.
Apr 24 17:29:50 systemd[1]: Starting [email protected] - WireGuard via wg-quick(8) for wg0...
Apr 24 17:29:50 wg-quick[3717]: [#] ip link add wg0 type wireguard
Apr 24 17:29:50 wg-quick[3717]: [#] wg setconf wg0 /dev/fd/63
Apr 24 17:29:50 wg-quick[3717]: [#] ip -4 address add 10.10.10.0/24 dev wg0
Apr 24 17:29:50 wg-quick[3717]: [#] ip -6 address add fd42::/112 dev wg0
Apr 24 17:29:50 wg-quick[3734]: RTNETLINK answers: Permission denied
Apr 24 17:29:50 wg-quick[3717]: [#] ip link delete dev wg0
Apr 24 17:29:50 systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 24 17:29:50 systemd[1]: [email protected]: Failed with result 'exit-code'.
Apr 24 17:29:50 systemd[1]: Failed to start [email protected] - WireGuard via wg-quick(8) for wg0.
Apr 24 18:07:36 systemd[1]: Starting [email protected] - WireGuard via wg-quick(8) for wg0...
Apr 24 18:07:36 wg-quick[10823]: [#] ip link add wg0 type wireguard
Apr 24 18:07:36 wg-quick[10823]: [#] wg setconf wg0 /dev/fd/63
Apr 24 18:07:36 wg-quick[10823]: [#] ip -4 address add 10.10.10.0/24 dev wg0
Apr 24 18:07:36 wg-quick[10823]: [#] ip -6 address add fd42::/112 dev wg0
Apr 24 18:07:36 wg-quick[10840]: RTNETLINK answers: Permission denied
Apr 24 18:07:36 wg-quick[10823]: [#] ip link delete dev wg0
Apr 24 18:07:36 systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 24 18:07:36 systemd[1]: [email protected]: Failed with result 'exit-code'.
Apr 24 18:07:36 systemd[1]: Failed to start [email protected] - WireGuard via wg-quick(8) for wg0.

Months ago, I had been using wireguard without any problems.

Greetings!

dejalavidavolar avatar Apr 25 '25 00:04 dejalavidavolar

Sorry. I just found this and its solved:

https://bodhilinux.boards.net/thread/450/wireguard-rtnetlink-answers-permission-denied

dejalavidavolar avatar Apr 25 '25 01:04 dejalavidavolar