I want to use my RaspberryPi as a router. I installed dnsmasq and iptables. But when I execute:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
it gives the error:
iptables v1.4.19.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
My piCore kernel version is 3.8.13. I noticed that the kernel modules in netfilter is different from those in my laptop tinycore. I modprobe these modules which contain 'iptable' and 'nat', but the error remains. In tinycore, related modules will be loaded after I execute iptables command. Any solutions?