免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: platinum
打印 上一主题 下一主题

[网络管理] 如何给iptables添加模块v2.2(含视频教程) [复制链接]

论坛徽章:
0
51 [报告]
发表于 2005-03-08 12:35 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

http://www.netfilter.org/files/changes-iptables-1.3.1.txt
iptables v1.3.1 Changelog
======================================================================
This version requires kernel >;= 2.4.4
This version recommends kernel >;= 2.4.18

Bugs fixed from 1.3.0:

- Fix CLUSTERIP rule deletion
        [ Pablo Neira ]

- Fix libip6t_random compilation
        [ Harald Welte ]

- Fix CONNMARK on 32bit userspace / 64bit kernel archs
        [ Pablo Neira ]

Changes from 1.3.0:

- remove bogus NFC_* stuff in iptables
        [ Pablo Neira ]

- libiptc: don't sort builtin chains, restores iptables-1.2.x sort order
        [ Olaf Rempel ]


Please note: Since version 1.2.7a, patch-o-matic is now no longer part of
iptables but rather distributed as a seperate package
(ftp://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot)

看来那个FAQ里面写的random的IPV6模块的问题,是iptables-1.3.0造成的,现在出了1.3.1,弥补了这个BUG
llzqq遇到的问题也类似,但不是那个模块

大家换用iptables-1.3.1应该会好些

论坛徽章:
0
52 [报告]
发表于 2005-03-09 09:27 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

大家弄弄2.6内核吧

论坛徽章:
0
53 [报告]
发表于 2005-03-09 10:07 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

我来作2.6的,完成后告诉大家。
估计明天有空

论坛徽章:
0
54 [报告]
发表于 2005-03-09 10:16 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

kernel 2.6.x HOWTO就交给红桃K了

论坛徽章:
0
55 [报告]
发表于 2005-03-09 10:37 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

  期待着

论坛徽章:
0
56 [报告]
发表于 2005-03-09 15:29 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

我全部编译完成后运行:
iptables -A FORWARD -s 192.168.1.0/24 -m ipp2p --edk --bit -j DROP
提示我iptables v1.3.1: Couldn't load match `ipp2p':/usr/local/lib/iptables/libipt_ipp2p.so: cannot open shared object file: No such file or directory
但我把模块安装到了/lib/iptables里面了。模块文件也有啊。

论坛徽章:
0
57 [报告]
发表于 2005-03-09 15:40 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

你编译iptables了?
cp到 /usr/local/lib/iptables/ 下

论坛徽章:
0
58 [报告]
发表于 2005-03-09 15:43 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

2.6内核上开门不顺呀
make modules SUBDIRS=net/ipv4/netfilter
scripts/Makefile.build:36: kbuild: net/ipv4/netfilter/Makefile - Usage of export-objs is obsolete in 2.6. Please fix!
  Building modules, stage 2.
  MODPOST

论坛徽章:
0
59 [报告]
发表于 2005-03-09 15:44 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

已经cp到 /usr/local/lib/iptables/ 下了。还是不行
而且运行 iptables -L时候提示:
iptables v1.3.1: can't initialize iptables table `filter': Module is wrong version
Perhaps iptables or your kernel needs to be upgraded.

论坛徽章:
0
60 [报告]
发表于 2005-03-09 15:45 |只看该作者

如何给iptables添加模块v2.2(含视频教程)

原帖由 "lihn" 发表:
我全部编译完成后运行:
iptables -A FORWARD -s 192.168.1.0/24 -m ipp2p --edk --bit -j DROP
提示我iptables v1.3.1: Couldn't load match `ipp2p':/usr/local/lib/iptables/libipt_ipp2p.so: cannot open sha..........

iptables的Makefile好像有BUG,虽然指定了LIB=/sbin,但是有时候还会装到/usr/local/lib下
所以我在文档里加了一步ln -s /lib/iptables /usr/local/lib/iptables
你一定没做这步吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP