免费注册 查看新帖 |

Chinaunix

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

[网络管理] 请教关于iptables 加载L7组件的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-14 16:13 |只看该作者 |倒序浏览
大家好:
        前些天看到网上的一篇关于IPTABLES加载L7组件,可以禁止P2P协议的文章.看完后自己试了一下。配置应该都没有问题,可是在设置策略的时候出现了
     [root@IPTABLES ~]# iptables -A FORWARD -m layer7 --l7proto ftp -j DROP
iptables: No chain/target/match by that name
[root@IPTABLES ~]#


有谁知道是怎么回事么?

论坛徽章:
0
2 [报告]
发表于 2006-11-14 16:17 |只看该作者
L7安装好了?

论坛徽章:
0
3 [报告]
发表于 2006-11-14 16:18 |只看该作者

回复 2楼 lihn 的帖子

对啊,好了,IPTABLES也换成新版本了!

论坛徽章:
0
4 [报告]
发表于 2006-11-14 16:20 |只看该作者

回复 2楼 lihn 的帖子

[root@IPTABLES ~]# iptables -A FORWARD -m layer7 --help
iptables v1.3.6

Usage: iptables -[AD] chain rule-specification [options]
       iptables -[RI] chain rulenum rule-specification [options]
       iptables -D chain rulenum [options]
       iptables -[LFZ] [chain] [options]
       iptables -[NX] chain
       iptables -E old-chain-name new-chain-name
       iptables -P chain target [options]
       iptables -h (print this help information)

Commands:
Either long or short options are allowed.
  --append  -A chain            Append to chain
  --delete  -D chain            Delete matching rule from chain
  --delete  -D chain rulenum
                                Delete rule rulenum (1 = first) from chain
  --insert  -I chain [rulenum]
                                Insert in chain as rulenum (default 1=first)
  --replace -R chain rulenum
                                Replace rule rulenum (1 = first) in chain
  --list    -L [chain]          List the rules in a chain or all chains
  --flush   -F [chain]          Delete all rules in  chain or all chains
  --zero    -Z [chain]          Zero counters in chain or all chains
  --new     -N chain            Create a new user-defined chain
  --delete-chain
            -X [chain]          Delete a user-defined chain
  --policy  -P chain target
                                Change policy on chain to target
  --rename-chain
            -E old-chain new-chain
                                Change chain name, (moving any references)
Options:
  --proto       -p [!] proto    protocol: by number or name, eg. `tcp'
  --source      -s [!] address[/mask]
                                source specification
  --destination -d [!] address[/mask]
                                destination specification
  --in-interface -i [!] input name[+]
                                network interface name ([+] for wildcard)
  --jump        -j target
                                target for rule (may load target extension)
  --match       -m match
                                extended match (may load extension)
  --numeric     -n              numeric output of addresses and ports
  --out-interface -o [!] output name[+]
                                network interface name ([+] for wildcard)
  --table       -t table        table to manipulate (default: `filter')
  --verbose     -v              verbose mode
  --line-numbers                print line numbers when listing
  --exact       -x              expand numbers (display exact values)
[!] --fragment  -f              match second or further fragments only
  --modprobe=<command>          try to insert modules using this command
  --set-counters PKTS BYTES     set the counter during insert/append
[!] --version   -V              print package version.

LAYER7 match v1.3.6 options:
--l7dir <directory>  : Look for patterns here instead of /etc/l7-protocols/
                       (--l7dir must be specified before --l7proto if used!)
--l7proto [!] <name> : Match the protocol defined in /etc/l7-protocols/name.pat


这个命令都可以使用了!

论坛徽章:
0
5 [报告]
发表于 2006-11-14 16:21 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
6 [报告]
发表于 2006-11-14 16:25 |只看该作者

回复 5楼 lovegqin 的帖子

这个兄弟,白金的文章在哪呢,可否告诉个地址

论坛徽章:
0
7 [报告]
发表于 2006-11-14 16:27 |只看该作者
lsmod
看看是否有L7

论坛徽章:
0
8 [报告]
发表于 2006-11-14 16:29 |只看该作者

回复 7楼 lihn 的帖子

[root@IPTABLES sysconfig]# lsmod
Module                  Size  Used by
parport_pc             27905  0
lp                     15405  0
parport                37641  2 parport_pc,lp
autofs4                22085  0
i2c_dev                14273  0
i2c_core               25921  1 i2c_dev
sunrpc                138789  1
ipt_REJECT             10561  1
ipt_state               5825  2
ip_conntrack           45701  1 ipt_state
iptable_filter          6721  1
ip_tables              21441  3 ipt_REJECT,ipt_state,iptable_filter
dm_mod                 58949  0
button                 10449  0
battery                12869  0
ac                      8773  0
md5                     8001  1
ipv6                  238817  16
uhci_hcd               32729  0
ehci_hcd               31813  0
e1000                  84389  0
floppy                 58065  0
ext3                  118729  2
jbd                    59481  1 ext3
aacraid                44657  3
sd_mod                 20545  4
scsi_mod              116429  2 aacraid,sd_mod

怎么没有L7呢,难道哪设置错了?

论坛徽章:
0
9 [报告]
发表于 2006-11-14 16:30 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2006-11-14 16:46 |只看该作者
你的L7没有被加载啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP