LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1075|回复: 5

为什么我的机器上iptables没有-t nat选项?

[复制链接]
发表于 2004-4-6 20:27:34 | 显示全部楼层 |阅读模式
无法端口映射//弱弱地问
 楼主| 发表于 2004-4-6 21:49:23 | 显示全部楼层
敲入以下命令:
iptables -t nat -A PREROUTING -p tcp -s 202.38.72.210 --dport 501 -j DNAT --to-destination 192.168.1.2
有以下出错信息:
modprobe: Can't locate module ip_tables
iptables v1.2.7a: can't initialize iptables table `nat': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
发表于 2004-4-7 09:27:14 | 显示全部楼层
lsmod一下看看有没有ipchains
然后
rmmod删除ipchains这个防火墙
可能是冲突
发表于 2004-4-7 12:29:30 | 显示全部楼层
应该是你的内核编译没有把nat编进去。
 楼主| 发表于 2004-4-8 13:08:39 | 显示全部楼层
那怎么把nat编进去呢?:help
发表于 2004-4-8 14:00:55 | 显示全部楼层
重新编译内核:-)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表