找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 8293|回复: 1

[限速] 网吧ROS限制p2p的策略

[复制链接]
发表于 2016-11-21 18:36:11 | 显示全部楼层 |阅读模式

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

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

×
真正有效的办法,思路不是禁止而是限制包分级与总流量大小,作用是起到p2p的下载仍然能用,但是流量有限并且策略级别低与其他应用。这个做的好处不用我说了,很多游戏如果你完全禁止了p2p会很麻烦的。我这里限制的是整个网络最大128k,根据自己情况修改。而且消耗的系统资源非常小
/ ip firewall mangle
add chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2pCOM passthrough=yes comment="" disabled=no
add chain=forward connection-mark=p2pCOM action=mark-packet new-packet-mark=p2p passthrough=yes comment="" disabled=no / queue tree
add name="p2pW" parent=WAN packet-mark=p2p limit-at=128000 queue=default priority=8 max-limit=128000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="p2pL" parent=LAN packet-mark=p2p limit-at=128000 queue=default priority=8 max-limit=128000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
routeros
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-3-29 16:52 , Processed in 0.069935 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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