Closed Ale32bit closed 1 year ago
iptables v1.8.2 (nf_tables): Couldn't load match `comment':No such file or directory
Your iptables is nftables backend. I haven't used or tested with it. Am using legacy iptables.
You can try modify
https://github.com/garywill/linux-router/blob/1e3c5004c307cd6ba23aaddf401c72ee5c26b81b/lnxrouter#L796-L805
delete -m comment --comment "lnxrouter-$$-$SUBNET_IFACE"
If still see problem, try use legacy iptables. For example switch to legacy like
https://github.com/oblique/create_ap/issues/373
https://github.com/oblique/create_ap/issues/433
Before nftables support plan maded, I'm considering an option to specify iptables legacy path
You can also modify above code iptables
to /path/to/iptables-legacy
Tried switching to iptables-legacy and the error still happens
iptables: NAT
iptables v1.8.2 (legacy): Couldn't load match `comment':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
Error occured
Am I missing something?
Couldn't load match `comment':No such file or directory
your iptables doesn't support comment.
Delete -m comment --comment "lnxrouter-$$-$SUBNET_IFACE"
(see above said). It's a workaround.
What OS are you using? What version?
Googling found https://github.com/kubernetes-sigs/kind/issues/1461
CONFIG_NETFILTER_XT_MATCH_COMMENT
not set on some system
On a working system lsmod|grep table
output should(not necessary) contain xt_comment
Added a comment module judgement
Update:
User can set environment variable NETFILTER_XT_MATCH_COMMENT=0
, if wants to disable '-m comment'
Upon running
sudo lnxrouter --ap wlan0 Alex -p ####
iptables fails.