找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2558|回复: 0

[其它] 请问ROS 3.2怎么限制P2P下载速度啊?

[复制链接]
发表于 2010-1-30 21:55:33 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 SSS520 于 2010-1-30 21:58 编辑

我的ros是3.2版本的,机器内存256M,CPU 奔三 933MHZ,使用的是ADSL 2M上网,我配置了一个PPPOE Client来拨号上网,其中lan口是连接内网的网卡,wan是连接外网的网卡.我已经按照网上的教程把TCP的TCP连接改为1440了。我们局域网有人一开机就挂电驴下载,搞得很多人上网都说卡,我按照下面的脚本来限制P2P的下载速度为10k,并使priority=8,但是我发现这些脚本根本不起作用,电驴还在全速下载,请问大家有什么好一点的方法限制P2P的下载速度啊?脚本如下:
/ip firewall mangle
add chain=forward p2p=all-p2p action=mark-connection    new-connection-mark=p2p_conn passthrough=yes comment="" disabled=no
add chain=forward connection-mark=p2p_conn action=mark-packet    new-packet-mark=p2p passthrough=yes comment="" disabled=no
add chain=forward connection-mark=!p2p_conn action=mark-packet    new-packet-mark=general passthrough=yes comment="" disabled=no

/ queue tree
add name="p2p1" parent=wan packet-mark=p2p limit-at=10000 queue=default   priority=8 max-limit=10000 burst-limit=0 burst-threshold=0 burst-time=0s   disabled=no
add name="p2p2" parent=lan packet-mark=p2p limit-at=10000 queue=default   priority=8 max-limit=10000 burst-limit=0 burst-threshold=0 burst-time=0s   disabled=no
add name="Leaf1" parent=lan packet-mark=general limit-at=0 queue=default   priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s   disabled=no
add name="Leaf2" parent=wan packet-mark=general limit-at=0 queue=default   priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s   disabled=no


另外还有一个问题就是,我访问外国的网站中会很经常提示502 Bad Gateway,而访问国内网站却没有出现这样的问题。请问这是什么原因呢?
routeros
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-19 08:03 , Processed in 0.047239 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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