complexorganizations/wireguard-manager

Can't write correct rules for Debian 10 nft

lokapal opened this issue · 0 comments

Debian 10, nft, wireguard manager is the last one, obtained by

curl https://raw.githubusercontent.com/complexorganizations/wireguard-manager/main/wireguard-manager.sh --create-dirs -o /usr/local/bin/wireguard-manager.sh

The result is the error:

Error: NAT is only supported for IPv4/IPv6
add rule inet wireguard-wg0 POSTROUTING ip saddr 10.0.0.0/8 oifname eth0 masquerade
                                                                         ^^^^^^^^^^
[#] ip link delete dev wg0

Kernel: Linux 5.10.0-0.deb10.21-amd64 #1 SMP Debian 5.10.162-1~deb10u1 (2023-02-14) x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
nft -v
nftables v0.9.0 (Fearless Fosdick)

Any advices?