Page 1 of 1

LuckfoxPico Max rv1106 如何安装iptables

Posted: 2024-09-28 12:56
by fcoolt
目前运行iptables -L报错,已经添加ip_tables.ko,求大神指点
20240928205040.jpg

Re: LuckfoxPico Max rv1106 如何安装iptables

Posted: 2024-09-29 1:04
by Crocodile
您好, iptables 要启动有多个内核依赖选项,这里是一份可以支持NAT转发的内核设置,您可以参考一下。
rv1106-NAT.7z (433 Bytes)
Downloaded 567 times
需要的可以通过修改板级支持文件.BoardConfig.mk 中添加内核选项扩展或者直接修改内核defconfig后重新编译内核烧录

Code: Select all

export RK_KERNEL_DEFCONFIG_FRAGMENT="<其他覆盖选项文件> rv1106_NAT.config "

Re: LuckfoxPico Max rv1106 如何安装iptables

Posted: 2024-11-08 4:29
by fcoolt
参考
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

Re: LuckfoxPico Max rv1106 如何安装iptables

Posted: 2024-11-08 5:59
by Alenwowo
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
感谢分享

Re: LuckfoxPico Max rv1106 如何安装iptables

Posted: 2025-11-24 19:27
by scdit46
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.

Re: LuckfoxPico Max rv1106 如何安装iptables

Posted: 2025-12-03 10:58
by Crocodile
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

Code: Select all

uname -r
mkdir /lib/modules
ln -s /oem/usr/ko /lib/modules/5.10.160 depmod
iptables -L