ViRb3 / wgcf

🚤 Cross-platform, unofficial CLI for Cloudflare Warp
MIT License
5.81k stars 660 forks source link

[Solus] /dev/fd/63 - Error: Could not process rule: Operation not supported #55

Closed presianbg closed 3 years ago

presianbg commented 3 years ago

Hi,

Registration looks ok, wgcf status:

2020/11/17 09:10:55 Using config file: wgcf-account.toml
2020/11/17 09:10:57 =======================================
2020/11/17 09:10:57 Device name   : 4C9D5A
2020/11/17 09:10:57 Device model  : PC
2020/11/17 09:10:57 Device active : true
2020/11/17 09:10:57 Account type  : limited
2020/11/17 09:10:57 Role          : child
2020/11/17 09:10:57 Premium data  : 10000000000.000000
2020/11/17 09:10:57 Quota         : 10000000000.000000
2020/11/17 09:10:57 =======================================

But when I try to connect with sudo wg-quick up wgcf-profile.conf :

[#] ip link add wgcf-profile type wireguard
[#] wg setconf wgcf-profile /dev/fd/63
[#] ip -4 address add 172.16.0.2/32 dev wgcf-profile
[#] ip -6 address add fd01:5ca1:ab1e:8624:f33:dc66:4feb:9d6/128 dev wgcf-profile
[#] ip link set mtu 1280 up dev wgcf-profile
[#] wg set wgcf-profile fwmark 51820
[#] ip -6 route add ::/0 dev wgcf-profile table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] nft -f /dev/fd/63
/dev/fd/63:2:1-90: Error: Could not process rule: Operation not supported

/dev/fd/63:3:1-93: Error: Could not process rule: Operation not supported

/dev/fd/63:4:1-95: Error: Could not process rule: Operation not supported

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

/dev/fd/63:6:1-92: Error: Could not process rule: No such file or directory

/dev/fd/63:7:1-85: Error: Could not process rule: No such file or directory

[#] ip -6 rule delete table 51820
[#] ip -6 rule delete table main suppress_prefixlength 0
[#] ip link delete dev wgcf-profile

lsmod:

wireguard              86016  0
curve25519_x86_64      40960  1 wireguard
libcurve25519_generic    49152  2 curve25519_x86_64,wireguard
libchacha20poly1305    16384  1 wireguard
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             16384  1 wireguard
libblake2s             16384  1 wireguard

What am I doing wrong ?

I deleted/commented the DNS from the profile configuration, because it wants to connect to systemd-resolved, but I'm using dnscrypt. Tried to switch back to systemd-resolved to no avail if that matters.

Kind regards, PY

presianbg commented 3 years ago

SOLVED - looks like I removed iptables in some point and started using nftables ... which does not play well with wireguard.

So moving back to iptables solved the issue.

ikwyl6 commented 3 months ago

how did you 'move back to iptables'?

symmetricalbyte commented 1 month ago

how did you 'move back to iptables'?

same question @presianbg (sorry for the ping)

presianbg commented 1 month ago

how did you 'move back to iptables'?

same question @presianbg (sorry for the ping)

No worries! My distro supports both - iptables and nftables, so I can uninstall one and install the other. Just to give you heads up, this wonderful project may wont work as expected because of CF way of handling the tunnels. Your best bet is the official cloudflared client.

Cheers!