找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2430|回复: 0

p2p blocking exception

[复制链接]
发表于 2005-4-24 10:46:21 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
http://www.vortech.net/phorums/read.php?8,46813

QUOTE


QUOTE
p2p blocking exceptionPosted by: lex (---.PNeT.Ro)Date: April 14, 2005 05:36PMi want to exclude an ip from p2p blocking rule...how can i do it ?


QUOTE
Re: p2p blocking exceptionPosted by: Claudio Roberto Cussuol (---.user.veloxzone.com.br)Date: April 16, 2005 02:19PMIf you want to allow just one ip you can write your rule like this: iptables -t mangle -A POSTROUTING -s ! 192.168.0.10 -m layer7 --l7proto fasttrack -j DROP (! = not) But if you have more than one ip you need to allow them and then block the remaining people, like this: iptables -t mangle -A POSTROUTING -s 192.168.0.10 -m layer7 --l7proto fasttrack -j ACCEPT iptables -t mangle -A POSTROUTING -s 192.168.0.11 -m layer7 --l7proto fasttrack -j ACCEPT iptables -t mangle -A POSTROUTING -s 192.168.0.12 -m layer7 --l7proto fasttrack -j ACCEPT iptables -t mangle -A POSTROUTING -m layer7 --l7proto fasttrack -j DROP
routeros
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-9-19 09:03 , Processed in 0.041313 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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