免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2667 | 回复: 3
打印 上一主题 下一主题

[网络管理] iptables升级后不能加载NAT表。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-23 08:48 |只看该作者 |倒序浏览
# iptables -t nat -L
iptables v1.3.8: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
#
昨天升级完kernel的同时。将iptable的ptatch加进kernel但是time不能通过。
我的方法是按精华里的2.6成功加载iptables这个做的。
先升级kernel-2.6.9.23--->2.6.21.4
再加载iptables-patch进kernel--->make M=/net/ipv4/netfiler/
depmod -a
再安将iptables-1.3.8.
重启后就没有NAT表。不知道是不是modules没有加上去。
我看了在/lib/modules/2.6.21.4/kernel/net/ipv4/netfilter/
没有找到NAT有关的KOy
请问怎么搞呀!
谢谢了。
还是我的操作不对。。。。

论坛徽章:
0
2 [报告]
发表于 2007-07-23 10:10 |只看该作者
# iptables -t nat -L
FATAL: Error inserting ip_tables (/lib/modules/2.6.21.4/kernel/net/ipv4/netfilter/ip_tables.ko): Invalid module format
iptables v1.3.8: can't initialize iptables table `nat': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

#
我将以前的iptables-1.2.0的ko块全都考到2.6.21下。出来这个。不知道为什么。

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
3 [报告]
发表于 2007-07-23 11:09 |只看该作者
首先可能是time模块不能用于2.6.17以上。

其次你在编译内核的时候选择一个叫FULL NAT的IPTABLES选项。这个就是以前的DNAT和SNAT。

论坛徽章:
0
4 [报告]
发表于 2007-07-24 13:34 |只看该作者
time跟ipp2p/domain是不是都不可以用在2.6.22的kernel上。
Versions:
---------
Currently IPP2P is tested to be working together with:
-Linux-Kernels 2.6: 2.6.3, 2.6.4, 2.6.6
-Linux-Kernels 2.4: 2.4.18, 2.4.19, 2.4.20, 2.4.21, 2.4.22, 2.4.23, 2.4.26
-iptables (from netfilter.org) 1.2.7a, 1.2.8, 1.2.9, 1.2.11, 1.3.0, 1.3.1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP