免费注册 查看新帖 |

Chinaunix

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

[网络管理] [求助]升级到2.6.21内核iptables找不到nat模块了。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-08 10:42 |只看该作者 |倒序浏览
1可用积分
新安装的centos4.4,把内核升级到2.6.21,然后又安装了iptables-1.3.7
出现下面的错误

  1. iptables -t nat -A POSTROUTING
  2. iptables v1.3.7: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
  3. Perhaps iptables or your kernel needs to be upgraded.
复制代码


另外,以前 sysctl里的/proc/sys/net/ipv4/neigh/default/gc_thresh3
还有/proc/sys/net/ipv4/ip_conntrack_max

在2.6内核 里怎么都没有了?

论坛徽章:
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
2 [报告]
发表于 2007-05-08 11:10 |只看该作者
给内核打NAT补丁,后重新编译。如果内核有补丁就直接重新编译内核。

论坛徽章:
0
3 [报告]
发表于 2007-05-08 11:11 |只看该作者
原帖由 ssffzz1 于 2007-5-8 11:10 发表于 2楼  
给内核打NAT补丁,后重新编译。如果内核有补丁就直接重新编译内核。

不是打 NAT 补丁,是 make menuconfig 的时候选上 NAT 模块

论坛徽章:
0
4 [报告]
发表于 2007-05-08 14:13 |只看该作者
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
  x x                   <M> IP Userspace queueing via NETLINK (OBSOLETE)                                         x x
x x                   <M> IP tables support (required for filtering/masq/NAT)                                  x x
  x x                   <M>   IP range match support                                                             x x
  x x                   <M>   TOS match support                                                                  x x
  x x                   <M>   recent match support                                                               x x
  x x                   <M>   ECN match support                                                                  x x
  x x                   <M>   AH match support                                                                   x x
  x x                   <M>   TTL match support                                                                  x x
  x x                   <M>   Owner match support                                                                x x


是这个吧,编译的时候我应该是选了的。。难到要编译进内核 里?用模块的方式不行么?

论坛徽章:
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
5 [报告]
发表于 2007-05-08 14:15 |只看该作者
是这个吧,编译的时候我应该是选了的。。难到要编译进内核 里?用模块的方式不行么
你在那里选了吗?没看到一个叫SNAT或DNAT的条目。当然如果你选了,编译成模块也可以的。

论坛徽章:
0
6 [报告]
发表于 2007-05-08 14:40 |只看该作者
按照文档重新编译~~

论坛徽章:
0
7 [报告]
发表于 2007-05-09 12:54 |只看该作者
现在的内河默认是没有编译进iptable的

论坛徽章:
0
8 [报告]
发表于 2007-05-10 12:03 |只看该作者
| |    <M>   AH match support                                                | |
  | |    <M>   TTL match support                                               | |
  | |    <M>   Owner match support                                             | |
  | |    <M>   address type match support                                      | |
  | |    <M>   Packet filtering                                                | |
  | |    <M>     REJECT target support                                         | |
  | |    <M>   LOG target support                                              | |
  | |    <M>   ULOG target support                                             | |
  | |    <M>   Full NAT                                                        | |
  | |    <M> MASQUERADE target support                                         | |
  | |    <M> REDIRECT target support                                           | |
  | |    <M> NETMAP target support                                             | |
  | |    <M> SAME target support                                               | |
  | |    <M> Basic SNMP-ALG support (EXPERIMENTAL)                             | |
  | |    <M> Packet mangling                                                   | |


把上面FULL NAT功能选成模块就行了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP