LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决]配置iptables失败。请教大虾

[复制链接]
发表于 2007-2-20 16:51:55 | 显示全部楼层 |阅读模式
# iptables -t nat -I POSTROUTING -s 192.168.110.0/24 -o eth0 -j MASQUERADE

iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

PS:
Kernel: 2.6.18
Public: eth0
Local: eth1
Local IP: 192.168.110.1:ask

删除配置,重新编译。
# make mrproper
发表于 2007-2-20 18:59:37 | 显示全部楼层
可能内核没有编译进对iptables的nat模块支持
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-2-20 19:35:27 | 显示全部楼层
<*> IP tables support (required for filtering/masq/NAT)
    <*> Full NAT
     <*> MASQUERADING
内核配置里没有以上选项。郁闷中。。。。。。
回复 支持 反对

使用道具 举报

发表于 2007-2-20 19:51:42 | 显示全部楼层
你试试编译成模块,象这种东西以后最好选成模块,因为你没准会升级的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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