找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 17103|回复: 41

[其它] 彻底解决讯雷下载时打开网页慢的问题

[复制链接]
发表于 2007-12-13 12:32:00 | 显示全部楼层 |阅读模式

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

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

×
相信很多朋友都有这样的问题,在讯雷下载时候,开网页就会很慢.
######程序开始######################################################################
# 程序名称:解决讯雷下载时打开网页慢的问题
# 程序版本:测试
# 程 序 员: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
######程序结束######################################################################
routeros
 楼主| 发表于 2007-12-13 12:34:25 | 显示全部楼层
这只是说明解决方法.请不要在你的ros直接运行本脚本!
routeros
回复

使用道具 举报

发表于 2007-12-13 13:49:46 | 显示全部楼层
这个怎么能加快开网页的速度了?只是把所有目标80 内容一MSIE的包 标记了下 加进列表?标记了就能快了?
routeros
回复

使用道具 举报

发表于 2007-12-13 19:41:58 | 显示全部楼层
楼上的queue怎么设的。请教下,我设了没有流量
routeros
回复

使用道具 举报

 楼主| 发表于 2007-12-13 22:39:18 | 显示全部楼层
没有时间,写的不全,你们慢慢搞吧.

[ 本帖最后由 kuwin 于 2007-12-13 22:41 编辑 ]
routeros
回复

使用道具 举报

发表于 2007-12-13 22:44:18 | 显示全部楼层
我的是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
routeros
回复

使用道具 举报

发表于 2007-12-13 23:11:09 | 显示全部楼层
楼上的不错
routeros
回复

使用道具 举报

发表于 2007-12-13 23:18:44 | 显示全部楼层
感谢分享,我能做的就是顶你一下
routeros
回复

使用道具 举报

发表于 2007-12-14 00:14:45 | 显示全部楼层
还是不太懂啊,我是用QUEUES对192.168.0.2限速的,麻烦帮忙写下怎么能提高192.168.0.2用迅雷下载时开网页的速度,谢谢各位
routeros
回复

使用道具 举报

发表于 2007-12-14 00:43:39 | 显示全部楼层
难道讯雷不用80端口????
routeros
回复

使用道具 举报

发表于 2007-12-14 00:58:23 | 显示全部楼层
关键是他把IE的tcp80连接和讯雷的tcp80连接分开了.
看清楚有个content=MSIE,Mozilla也是IE连接的关键字,我想也可以用content=Mozilla

我已经用上了,效果不错.
routeros
回复

使用道具 举报

发表于 2007-12-14 11:30:25 | 显示全部楼层
有用吗,我用所有非mark_midd 进行标记后,进入简单限速后,只对非非mark_midd 限速,可是没有任何作用,打开网页一样的慢,不限速后很快。
我想ros还没有到这种智能的地步,可以根据所联公网使用的软件名称来进行区分打包。按这样的道理,那么,什么只限BT软件,这不很容易!

[ 本帖最后由 lshzcb1 于 2007-12-14 11:34 编辑 ]
routeros
回复

使用道具 举报

发表于 2007-12-14 11:50:32 | 显示全部楼层
我现在就是一边讯雷下载,一边玩CS,一边在这里发贴.
打开网页的速度跟没有讯雷下载时差不多.

不信的我可以QQ远程给你们看.
QQ:727772758(长在隐身)

[ 本帖最后由 LUYOKY 于 2007-12-14 11:54 编辑 ]
routeros
回复

使用道具 举报

发表于 2007-12-14 11:54:13 | 显示全部楼层
请问各位,是不是直接按楼主的来使用就可以了
routeros
回复

使用道具 举报

发表于 2007-12-14 12:54:05 | 显示全部楼层

回复 14# 的帖子

问题是如果你所限的带宽足够的话,你做其他作任何事情都没有关系。 况且你的cs也没有事的。cs是不用msie的80端口吧

[ 本帖最后由 lshzcb1 于 2007-12-14 12:56 编辑 ]
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-6-17 01:41 , Processed in 0.088750 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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