免费注册 查看新帖 |

Chinaunix

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

2.6内核桥接模式下如何用IPTABLES+IPP2P控制P2P流量? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-20 09:19 |只看该作者 |倒序浏览
哪位老兄说说2.6内核桥接模式下如何用IPTABLES+IPP2P+TC控制P2P流量.

[ 本帖最后由 kong@xm 于 2006-10-20 09:25 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-10-20 09:40 |只看该作者

论坛徽章:
0
3 [报告]
发表于 2006-10-20 10:07 |只看该作者
在路由模式下,已经成功实现,现在主要是在桥接模式下要如何实现.好象开了桥接模式后,数据包不经过IPTABLES 的mangle表了.

论坛徽章:
0
4 [报告]
发表于 2006-10-20 10:09 |只看该作者
没研究过。。。

论坛徽章:
0
5 [报告]
发表于 2006-10-20 10:55 |只看该作者
iptables -m physdev -h

论坛徽章:
0
6 [报告]
发表于 2006-10-20 11:32 |只看该作者

论坛徽章:
0
7 [报告]
发表于 2006-10-20 11:36 |只看该作者
原帖由 dzb_01 于 2006-10-20 10:55 发表
iptables -m physdev -h



运行这个命令有帮助信息提示,不过很少.

论坛徽章:
0
8 [报告]
发表于 2006-10-20 11:40 |只看该作者
原帖由 kong@xm 于 2006-10-20 11:36 发表



运行这个命令有帮助信息提示,不过很少.





   physdev
       This  module  matches  on  the  bridge  port  input  and output devices
       enslaved to a bridge device. This module is a part of  the  infrastruc-
       ture that enables a transparent bridging IP firewall and is only useful
       for kernel versions above version 2.5.44.

       --physdev-in name
              Name of a bridge port via which a packet is received  (only  for
              packets  entering  the INPUT, FORWARD and PREROUTING chains). If
              the interface name ends in  a  "+",  then  any  interface  which
              begins  with  this  name will match. If the packet didn't arrive
              through a bridge device, this packet won't  match  this  option,
              unless '!' is used.

       --physdev-out name
              Name  of  a  bridge  port via which a packet is going to be sent
              (for  packets  entering  the  FORWARD,  OUTPUT  and  POSTROUTING
              chains).   If  the interface name ends in a "+", then any inter-
              face which begins with this name will match. Note  that  in  the
              nat and mangle OUTPUT chains one cannot match on the bridge out-
              put port, however one can in the filter  OUTPUT  chain.  If  the
              packet  won't leave by a bridge device or it is yet unknown what
              the output device will be, then  the  packet  won't  match  this
              option, unless

       --physdev-is-in
              Matches if the packet has entered through a bridge interface.

       --physdev-is-out
              Matches if the packet will leave through a bridge interface.

       --physdev-is-bridged
              Matches  if  the  packet  is  being bridged and therefore is not
              being routed.  This is only useful in the FORWARD and  POSTROUT-
              ING chains.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP