Hi,
I’m still having problems with wg-quick inside a lxc copntainer (Alpine latest-stable i.e. 3.20).
The problems started already with Turris OS 7.0.
The solution was to roll back Turris OS and stop automatic updates together with older package for iptables in Alpine.
But this can’t be the permanent solution. I think it may be related to the iptables → nftables transition both in Alpine and Turris OS.
Now I enabled automatic updates in Turris. It broke again wg-quick.
I tried to change the branch up to HBD, which gives Turris 8.0 and I think a working nftables, am I right?
On the Alpine side I’ve tried iptables, iptables-legacy and nftables.
But still can’t get wg-quick to work
Error with iptables:
# wg-quick up vpn
[#] ip link add vpn type wireguard
[#] wg setconf vpn /dev/fd/63
[#] ip -4 address add 10.141.100.141/32 dev vpn
[#] ip -6 address add fd7d:76ee:e68f:a993:ecb7:46cc:b67b:223/128 dev vpn
[#] ip link set mtu 1420 up dev vpn
[#] resolvconf -a vpn -m 0 -x
[#] wg set vpn fwmark 51820
[#] ip -6 route add ::/0 dev vpn table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] ip6tables-restore -n
Warning: Extension addrtype is not supported, missing kernel module?
ip6tables-restore v1.8.10 (nf_tables): Couldn't load match `addrtype':No such file or directory
Error occurred at line: 2
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
[#] resolvconf -d vpn -f
[#] ip -6 rule delete table 51820
[#] ip -6 rule delete table main suppress_prefixlength 0
[#] ip link delete dev vpn
Error with nftables:
# wg-quick up vpn
[#] ip link add vpn type wireguard
[#] wg setconf vpn /dev/fd/63
[#] ip -4 address add 10.141.100.141/32 dev vpn
[#] ip -6 address add fd7d:76ee:e68f:a993:ecb7:46cc:b67b:223/128 dev vpn
[#] ip link set mtu 1420 up dev vpn
[#] resolvconf -a vpn -m 0 -x
[#] wg set vpn fwmark 51820
[#] ip -6 route add ::/0 dev vpn 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:5:100-113: Error: Could not process rule: No such file or directory
[#] resolvconf -d vpn -f
[#] ip -6 rule delete table 51820
[#] ip -6 rule delete table main suppress_prefixlength 0
[#] ip link delete dev vpn
Any suggestions?