内核是2.4.18-rmk7-pxa1,在内核选项把 CONFIG_FILTER=y CONFIG_NETFILTER=y CONFIG_IP_NF_IPTABLES=y, 从网上下载了iptables-1.2源码,交叉编译后将可执行文件iptables下载到板子里,然而在运行时出错:
iptables -L
iptables v1.2: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables v1.2: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.