免费注册 查看新帖 |

Chinaunix

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

[网络管理] netfilter module - domain (2008.07.19 更新) [复制链接]

论坛徽章:
5
技术图书徽章
日期:2014-02-10 10:55:18技术图书徽章
日期:2014-03-17 16:37:45狮子座
日期:2014-04-25 11:17:42未羊
日期:2014-08-13 11:45:23天蝎座
日期:2015-12-16 10:30:37
141 [报告]
发表于 2013-09-24 09:11 |只看该作者
本帖最后由 godsad 于 2013-09-24 09:19 编辑

centos 6.4 安装后用不了.
kernel版本是:Linux 2.6.32-358.el6.i686 #1 SMP Thu Feb 21 21:50:49 UTC 2013 i686 i686 i386 GNU/Linux
iptables版本是:1.4.7
Makefile里更新了iptables库路径到/lib/xtables-1.4.7/

使用模块时的提示
  1. # iptables -m domain -h
  2. /lib/xtables-1.4.7/libipt_domain.so: /lib/xtables-1.4.7/libipt_domain.so: undefined symbol: exit_error
  3. iptables v1.4.7: Couldn't load match `domain':(null)
复制代码
安装时的提示
  1. # make KERNEL_SRC=/usr/src/kernels/2.6.32-358.18.1.el6.i686 IPTABLES_SRC=/srv/iptables-1.4.7 install
  2. make -C /usr/src/kernels/2.6.32-358.18.1.el6.i686 SUBDIRS=/srv/domain-0.0.2 modules
  3. make[1]: Entering directory `/usr/src/kernels/2.6.32-358.18.1.el6.i686'
  4.   CC [M]  /srv/domain-0.0.2/ipt_domain.o
  5. /srv/domain-0.0.2/ipt_domain.c: In function 'match':
  6. /srv/domain-0.0.2/ipt_domain.c:61: warning: assignment from incompatible pointer type
  7. /srv/domain-0.0.2/ipt_domain.c: At top level:
  8. /srv/domain-0.0.2/ipt_domain.c:113: warning: initialization from incompatible pointer type
  9. /srv/domain-0.0.2/ipt_domain.c:116: warning: initialization from incompatible pointer type
  10.   Building modules, stage 2.
  11.   MODPOST 1 modules
  12.   CC      /srv/domain-0.0.2/ipt_domain.mod.o
  13.   LD [M]  /srv/domain-0.0.2/ipt_domain.ko.unsigned
  14.   NO SIGN [M] /srv/domain-0.0.2/ipt_domain.ko
  15. make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.18.1.el6.i686'
  16. gcc -O2 -Wall  -DIPTABLES_VERSION=\"\" -I/srv/iptables-1.4.7/include -fPIC -c libipt_domain.c
  17. In file included from /srv/iptables-1.4.7/include/iptables.h:7,
  18.                  from libipt_domain.c:7:
  19. /srv/iptables-1.4.7/include/iptables/internal.h:4:1: warning: "IPTABLES_VERSION" redefined
  20. <command-line>: warning: this is the location of the previous definition
  21. libipt_domain.c: In function 'parse_name':
  22. libipt_domain.c:44: warning: implicit declaration of function 'exit_error'
  23. libipt_domain.c: In function 'parse':
  24. libipt_domain.c:80: warning: implicit declaration of function 'check_inverse'
  25. ld -shared -o libipt_domain.so libipt_domain.o
  26. cp -rf libipt_domain.so /lib/xtables-1.4.7/
  27. cp -rf ipt_domain.ko /lib/modules/`uname -r`/kernel/net/ipv4/netfilter/
  28. depmod -a
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP