1.iptables v1.8.3 (legacy): Couldn't load target `standard':No such file or directory
ans : 库的问题,重新静态编译成可执行文件。
2.Couldn't load target `MASQUERADE':No such file or directory
ans : 库的问题,重新静态编译成可执行文件。
iptables -A FORWARD -s 192.168.3.0/24 -j ACCEPT
iptables -I FORWARD -s 192.168.3.0/24 -j ACCEPT
/*
* 静态编译成可执行文件
*/
1.下载源代码。
2.配置
./configure --build=i386-linux --host=aarch64-linux-gnu --disable-nftables --prefix=/home/wangzhijun/work/iptables-1.8.3/ipt --enable-static --enable-shared=no
3.make
4.make install
5.下载到板上运行。