You are not logged in.

#1 2022-11-05 15:33:54

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,604
Website

wg-quick failure due to invalid argument [solved]

Is anyone else experiencing a failure to bring up a wireguard connection?  Was working a few days ago.

# wg-quick up foo
[#] ip link add foo type wireguard
[#] wg setconf foo /dev/fd/63
[#] ip -4 address add 10.200.200.203/24 dev foo
[#] ip link set mtu 1420 up dev foo
[#] resolvconf -a foo -m 0 -x
[#] wg set foo fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev foo table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] nft -f /dev/fd/63
netlink: Error: cache initialization failed: Invalid argument
[#] resolvconf -d foo -f
[#] ip -4 rule delete table 51820
[#] ip -4 rule delete table main suppress_prefixlength 0
[#] ip link delete dev foo

Last edited by graysky (2022-11-05 17:40:01)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2022-11-05 16:02:18

-thc
Member
Registered: 2017-03-15
Posts: 516

Re: wg-quick failure due to invalid argument [solved]

Nope - everything works as usual:

[thc@foo~]$ sudo wg-quick up bar
[sudo] password for thc: 
[#] ip link add bar type wireguard
[#] wg setconf bar /dev/fd/63
[#] ip -4 address add 10.x.x.x/24 dev bar
[#] ip link set mtu 1420 up dev bar
[#] ip -4 route add 192.168.x.0/24 dev bar

Offline

#3 2022-11-05 17:41:13

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,604
Website

Re: wg-quick failure due to invalid argument [solved]

Thanks for the reply.  I see what the problem is: I am missing some modules from my kernel.  Booting to the distro kernel works.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB