彻底解决讯雷下载时打开网页慢的问题
相信很多朋友都有这样的问题,在讯雷下载时候,开网页就会很慢.######程序开始######################################################################
# 程序名称:解决讯雷下载时打开网页慢的问题
# 程序版本:测试
# 程 序 员:kuwin Email:kuwin@163.com
# 程序版权:免费软件(本程序可自由传播及修改,不必理会原创作者kuwin)
#Ros版本:Ros2.9.27
# 编写日期:2007-10-20
# 修改日期:2007-10-20
# 测试人员:kuwin
# 程序评级:无
# 安装说明:
# 1.本程序只在Ros2.9.27上调试通过,其它版本尚未测试;
# 2.安装前请做好备份,一切后果与kuwin无关;
# 2.Winbox->System->Scripts->按+,贴入程序内容,按OK,再按Run Script.
####################################################################################
/ ip firewall mangle
add chain=prerouting protocol=tcp dst-port=80 content=MSIE action=add-dst-to-address-list \
address-list=web80 address-list-timeout=5m comment="AutoWeb80" disabled=no
add chain=prerouting dst-address-list=web80 action=mark-packet new-packet-mark=mark_midd \
passthrough=yes comment="AutoWeb80" disabled=no
######程序结束###################################################################### 这只是说明解决方法.请不要在你的ros直接运行本脚本! 这个怎么能加快开网页的速度了?只是把所有目标80 内容一MSIE的包 标记了下 加进列表?标记了就能快了? 楼上的queue怎么设的。请教下,我设了没有流量 没有时间,写的不全,你们慢慢搞吧.
[ 本帖最后由 kuwin 于 2007-12-13 22:41 编辑 ] 我的是2兆ADSL
/ queue simple
add name="PCQ_Main" target-addresses=192.168.0.0/24,10.10.10.0/24 dst-address=0.0.0.0/0 \
interface=all parent=none direction=both priority=8 queue=PCQ_Up/PCQ_Down limit-at=0/0 \
max-limit=512000/2000000 total-queue=default-small disabled=no
add name="Slow" target-addresses=192.168.0.0/24,10.10.10.0/24 dst-address=0.0.0.0/0 \
interface=all parent=PCQ_Main packet-marks=mark_slow direction=both priority=8 \
queue=PCQ_Up/PCQ_Down limit-at=0/0 max-limit=256000/1250000 total-queue=default-small \
disabled=no
add name="Fast" target-addresses=192.168.0.0/24,10.10.10.0/24 dst-address=0.0.0.0/0 \
interface=all parent=PCQ_Main packet-marks=mark_fast direction=both priority=1 \
queue=PCQ_Up/PCQ_Down limit-at=0/0 max-limit=512000/2000000 total-queue=default-small \
disabled=no
add name="Midd" target-addresses=192.168.0.0/24,10.10.10.0/24 dst-address=0.0.0.0/0 \
interface=all parent=PCQ_Main packet-marks=mark_midd direction=both priority=5 \
queue=PCQ_Up/PCQ_Down limit-at=0/0 max-limit=256000/2000000 total-queue=default-small \
disabled=no
/ queue type
set default name="default" kind=pfifo pfifo-limit=50
set ethernet-default name="ethernet-default" kind=pfifo pfifo-limit=50
set wireless-default name="wireless-default" kind=sfq sfq-perturb=5 sfq-allot=1514
set synchronous-default name="synchronous-default" kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000
set hotspot-default name="hotspot-default" kind=sfq sfq-perturb=5 sfq-allot=1514
add name="PCQ_Down" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
add name="PCQ_Up" kind=pcq pcq-rate=64000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
add name="default-small" kind=pfifo pfifo-limit=2000
/ ip firewall mangle
add chain=prerouting action=mark-packet new-packet-mark=mark_slow passthrough=yes comment="Mark All" disabled=no
add chain=prerouting protocol=tcp dst-port=8291 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="winbox" disabled=no
add chain=prerouting protocol=icmp action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="DNS" disabled=no
add chain=prerouting protocol=udp dst-port=53 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=8139 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment=" " disabled=no
add chain=prerouting protocol=tcp dst-port=7709 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=7711 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=8601 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=22220-22230 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="" disabled=no
add chain=prerouting protocol=udp dst-port=8000-8008 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="QQ" disabled=no
add chain=prerouting protocol=udp dst-port=27000-27100 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="games CS" disabled=no
add chain=prerouting protocol=tcp dst-port=443 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="games qq https " disabled=no
add chain=prerouting protocol=tcp dst-port=6020-6100 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="games zhengtu" disabled=no
add chain=prerouting protocol=tcp dst-port=9010-9020 action=mark-packet new-packet-mark=mark_fast passthrough=yes comment="games wendao" disabled=no
......
add chain=prerouting src-address=192.168.0.0/24 protocol=tcp dst-port=80 src-address-list=!src2 action=add-src-to-address-list address-list=src1 \
address-list-timeout=3s comment="TimeOut1" disabled=no
add chain=prerouting src-address=192.168.0.0/24 protocol=tcp dst-port=80 action=add-src-to-address-list address-list=src2 address-list-timeout=3h \
comment="TimeOut2" disabled=no
add chain=prerouting dst-address=192.168.0.1 protocol=tcp dst-port=9999 action=add-src-to-address-list address-list=handlimit address-list-timeout=1h \
comment=" " disabled=no
add chain=prerouting protocol=tcp dst-port=80 content=MSIE action=add-dst-to-address-list address-list=web80 address-list-timeout=5m comment="AutoWeb80" \
disabled=no
add chain=prerouting dst-address-list=web80 action=mark-packet new-packet-mark=mark_midd passthrough=yes comment="AutoWeb80" disabled=no 楼上的不错 感谢分享,我能做的就是顶你一下:lol 还是不太懂啊,我是用QUEUES对192.168.0.2限速的,麻烦帮忙写下怎么能提高192.168.0.2用迅雷下载时开网页的速度,谢谢各位 难道讯雷不用80端口???? 关键是他把IE的tcp80连接和讯雷的tcp80连接分开了.
看清楚有个content=MSIE,Mozilla也是IE连接的关键字,我想也可以用content=Mozilla
我已经用上了,效果不错. 有用吗,我用所有非mark_midd 进行标记后,进入简单限速后,只对非非mark_midd 限速,可是没有任何作用,打开网页一样的慢,不限速后很快。
我想ros还没有到这种智能的地步,可以根据所联公网使用的软件名称来进行区分打包。按这样的道理,那么,什么只限BT软件,这不很容易!
[ 本帖最后由 lshzcb1 于 2007-12-14 11:34 编辑 ] 我现在就是一边讯雷下载,一边玩CS,一边在这里发贴.
打开网页的速度跟没有讯雷下载时差不多.
不信的我可以QQ远程给你们看.
QQ:727772758(长在隐身)
[ 本帖最后由 LUYOKY 于 2007-12-14 11:54 编辑 ] 请问各位,是不是直接按楼主的来使用就可以了
回复 14# 的帖子
问题是如果你所限的带宽足够的话,你做其他作任何事情都没有关系。 况且你的cs也没有事的。cs是不用msie的80端口吧[ 本帖最后由 lshzcb1 于 2007-12-14 12:56 编辑 ]