Iptables and imx7d-emmc

I’m trying to get iptables working, but am having a problem.

root@colibri-imx7-emmc:~# iptables -L
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

My version is:

root@colibri-imx7-emmc:~# uname -a
Linux colibri-imx7-emmc 4.1.44-00003-ge08513e #10 SMP Tue Jul 24 09:54:38 EDT 2018 armv7l armv7l armv7l GNU/Linux

I’ve attached my kernel config.

I’m not sure what I’m missing to get iptables working successfully and I would appreciate any suggestions.

Thanks,
Mike

HI @mikec

Thanks for reporting this Issue.

It seems that in our regular Bsp Release the correct configuration for the iptables is not set. You can have look here and set the correct kernel configuration and do a custom kernel build to make iptables working correctly.

We will work in this Issue and provide a solution for the future release.

Best regards
Jaski

Thanks @jaski.tx,
I updated the kernel and modules as specified in the link you provided and am now able to run iptables.

root@colibri-imx7-emmc:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Regards,
Mike

Perfect, that it works. Thanks for the feedback.