You are not logged in.

#1 2024-05-08 22:24:39

ikwyl6
Member
Registered: 2014-05-02
Posts: 4

wireguard: /dev/fd/63:5:1-99: Error: Could not process rule

hi - I'm trying to get wireguard running but weather I try with systemctl or wg-quick I get the same result of:

```/dev/fd/63:5:1-99: Error: Could not process rule: No such file or directory```

$ wg-quick up ~/.wg/wg0.conf
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.13.115.1/24 dev wg0
[#] ip link set mtu 1390 up dev wg0
[#] resolvconf -a wg0 -m 0 -x
[#] wg set wg0 fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev wg0 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
/dev/fd/63:5:1-99: Error: Could not process rule: No such file or directory

[#] resolvconf -d wg0 -f
[#] ip -4 rule delete table 51820
[#] ip link delete dev wg0

$ ls /dev/fd/ -al
total 0
dr-x------ 2 alarm alarm  0 May  8 19:20 .
dr-xr-xr-x 9 alarm alarm  0 May  8 19:20 ..
lrwx------ 1 alarm alarm 64 May  8 19:20 0 -> /dev/pts/3
lrwx------ 1 alarm alarm 64 May  8 19:20 1 -> /dev/pts/3
lrwx------ 1 alarm alarm 64 May  8 19:20 2 -> /dev/pts/3
lr-x------ 1 alarm alarm 64 May  8 19:20 3 -> /proc/3375032/fd

'wg setconf wg0 /dev/fd/63' line does not throw an error either
I have libnetfilter_conntrack, libnfnetlink, libnftnl, nftables pkgs installed.
I use iptables and not nft though.. nft is installed because its a dependancy for dnsmasq.. but it checks for nft first and not iptables in the pkg_setup()

Anyone have any ideas? nft is looking for /dev/fd/63 for some reason..

Last edited by ikwyl6 (2024-05-08 23:05:39)

Offline

#2 2024-05-09 05:22:20

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

Re: wireguard: /dev/fd/63:5:1-99: Error: Could not process rule

ikwyl6 wrote:
$ ls /dev/fd/ -al
total 0
dr-x------ 2 alarm alarm  0 May  8 19:20 .
dr-xr-xr-x 9 alarm alarm  0 May  8 19:20 ..
lrwx------ 1 alarm alarm 64 May  8 19:20 0 -> /dev/pts/3
lrwx------ 1 alarm alarm 64 May  8 19:20 1 -> /dev/pts/3
lrwx------ 1 alarm alarm 64 May  8 19:20 2 -> /dev/pts/3
lr-x------ 1 alarm alarm 64 May  8 19:20 3 -> /proc/3375032/fd

Is this an Arch linux on ARM box?

Offline

Board footer

Powered by FluxBB