I do have CONFIG_NF_CONNTRACK set.
The bigger problem is that any -m module is not working. tcp, udp, conntrack, comment are all not working.
I find the folder /lib/aarch64-linux-gnu/xtables, and all the relevant .so are in there, but the iptables is still reporting Couldn’t load match ‘tcp/udp/conntrack’:No such file or directory. Me: the file is right over there, and I don’t know where did iptables attempt to find the match files.
I also did export XTABLES_LIBDIR=/lib/aarch64-linux-gnu/xtables
But iptables still can’t seem to read this environmental variable.
I opened a thread on netfilter user list and nobody so far cared to respond.
Which image do you use and how did you installed the kernel and modules.
You should separate kernel modules from application modules. The modules not found are kernel modules which have a fixed position in rootfs like eric wrote I’m sure the environment var you set is for application only
Iptables-legay uses the old modules and syntax for cli tools. Iptables now uses nftables and tries to be a compatibility layer,but maybe not complete (i guess some nftables optiins missing here). I also suggest using nftables directly.
Nice, you have an example file for nftables with combined ipv4/ipv6…maybe i take this for my images-repo. Is this ok? I leave a credit in my copy of the file
mhm, ok, i thought it is fully tested…have done not much with ipv6 yet…only registered/configured an ipv6 over ipv4 tunnel as i do not have native ipv6…but we are going offtopic…can discuss this separately
Thanks for both of your replies. I need to digest a bit.
I have native IPv6, in fact, I have multiple /56 blocks to play around.
If you want to join my pentose.net s2s IPsec ring (which I am currently building and hardening) for testing purposes, you are more than welcome to do so.
First time using real nftables instead of iptables with nftables backend. This was interesting because I could define reusable variables previously not found in iptables.
It saves me from re-compiling the kernel to get CONFIG_NFT_COMPAT=y.
I guess it forced me to learn nftables, which is good. I am not going back to iptables.
Nftables is structured (tree instead of many lines and you can group things instead of having same rules for e.g. different interfaces. Annd only with nftables you will be able to use hw acceleration on mtk boards