LinuxSir.cn,穿越时空的Linuxsir!

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

添加模块的问题

[复制链接]
发表于 2006-5-24 09:47:09 | 显示全部楼层 |阅读模式
我下载了l7-protocols-2006-05-21 和netfilter-layer7-v2.2
添加进了内核模块
<M>   Layer 7 match support (EXPERIMENTAL)
  •      Layer 7 debugging output  
    然后是按照编译模块的步骤make  make modoules    make modules-install

    [root@localhost ~]# lsmod
    Module                  Size  Used by
    iptable_filter          3200  0
    iptable_mangle          3200  0
    ipt_MASQUERADE          4096  1
    iptable_nat             8580  1
    ip_nat                 15916  2 ipt_MASQUERADE,iptable_nat
    ip_conntrack           48728  3 ipt_MASQUERADE,iptable_nat,ip_nat
    ip_tables              13556  3 iptable_filter,iptable_mangle,iptable_nat
    ipv6                  243520  24
    为什么没有layer7呢?
  • 发表于 2006-5-24 17:25:37 | 显示全部楼层
    insmod的时候有什么错误吗?
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2006-5-24 17:30:29 | 显示全部楼层
    没有
    make的时候
    net/ipv4/netfilter/ipt_layer7.c:460: warning: initialization from incompatible pointer type
    net/ipv4/netfilter/ipt_layer7.c:461: warning: initialization from incompatible pointer type
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2006-5-28 15:04:11 | 显示全部楼层
    [root@localhost ~]# iptables -t mangle -I POSTROUTING -m layer7 --l7proto http - j DROP
    iptables v1.3.5: Couldn't load match `layer7':/lib/iptables/libipt_layer7.so: ca nnot open shared object file: No such file or directory
    这是怎么回事?
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

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