目前运行iptables -L报错,已经添加ip_tables.ko,求大神指点
LuckfoxPico Max rv1106 如何安装iptables
您好, iptables 要启动有多个内核依赖选项,这里是一份可以支持NAT转发的内核设置,您可以参考一下。
需要的可以通过修改板级支持文件.BoardConfig.mk 中添加内核选项扩展或者直接修改内核defconfig后重新编译内核烧录
Code: Select all
export RK_KERNEL_DEFCONFIG_FRAGMENT="<其他覆盖选项文件> rv1106_NAT.config "
参考
https://blog.csdn.net/motianjie/article ... /131206295
https://blog.csdn.net/oshan2012/article ... /114572330
https://www.cnblogs.com/twzy/p/15126656.html
执行
uname -r
mkdir /lib/modules
ln -s /oem/usr/ko /lib/modules/5.10.110
depmod
iptables -L
https://blog.csdn.net/motianjie/article ... /131206295
https://blog.csdn.net/oshan2012/article ... /114572330
https://www.cnblogs.com/twzy/p/15126656.html
执行
uname -r
mkdir /lib/modules
ln -s /oem/usr/ko /lib/modules/5.10.110
depmod
iptables -L
感谢分享fcoolt wrote: ↑2024-11-08 4:29 参考
https://blog.csdn.net/motianjie/article ... /131206295
https://blog.csdn.net/oshan2012/article ... /114572330
https://www.cnblogs.com/twzy/p/15126656.html
执行
uname -r
mkdir /lib/modules
ln -s /oem/usr/ko /lib/modules/5.10.110
depmod
iptables -L
Alenwowo wrote: ↑2024-11-08 5:59感谢分享fcoolt wrote: ↑2024-11-08 4:29 参考
https://blog.csdn.net/motianjie/article ... /131206295
https://blog.csdn.net/oshan2012/article ... /114572330
https://www.cnblogs.com/twzy/p/15126656.html
执行
uname -r
mkdir /lib/modules
ln -s /oem/usr/ko /lib/modules/5.10.110
depmod
iptables -L
In my case:
[root@luckfox root]# iptables -L
modprobe: can't change directory to '/lib/modules': No such file or directory
iptables v1.8.9 (legacy): can't initialize iptables table `filter': Table does n ot exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Hello.
This method is applicable to the older version of the SDK (kernel version 5.10.110). The latest version of the SDK has upgraded its kernel to 5.10.160. The correct command to execute should be
This method is applicable to the older version of the SDK (kernel version 5.10.110). The latest version of the SDK has upgraded its kernel to 5.10.160. The correct command to execute should be
Code: Select all
uname -r
mkdir /lib/modules
ln -s /oem/usr/ko /lib/modules/5.10.160 depmod
iptables -L

