您尚未登录。

楼主 # 2022-05-31 19:47:46

lsy512
会员
注册时间: 2022-05-31
已发帖子: 9
积分: 25

V3S 运行iptables命令提示can't initialize iptables table `nat'

最近在用V3S主板,使用iptables命令是执行命令
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

提示
iptables v1.6.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.

根据查询资料应该是内核中没有开启iptable_nat,但我进入内核编译发现始终没法使能IP_NF_NAT选项,这就导致无法编译出optables_nat.ko
FluxBB bbcode 测试

改怎么破呢,感谢

最近编辑记录 lsy512 (2022-05-31 19:50:46)

离线

#1 2022-06-01 08:35:18

真的是很烦
会员
注册时间: 2018-10-08
已发帖子: 154
积分: 146.5

Re: V3S 运行iptables命令提示can't initialize iptables table `nat'

看Depends on 那行, nat依赖的 NF_CONNTRACK没开

离线

楼主 #2 2022-06-01 10:38:47

lsy512
会员
注册时间: 2022-05-31
已发帖子: 9
积分: 25

Re: V3S 运行iptables命令提示can't initialize iptables table `nat'

感谢,用这个方法解决了

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn