共享自已网页优先脚本
本帖最后由 yuefy 于 2011-4-26 09:11 编辑电信2M ADSL宽带 脚本不做太多解释 有兴趣一起探讨一下 QQ:544475878 注明:ROS路由
HTB网页优先
DNS 53 优先级1
网页80 优先级2
icmp 优先级3
其它 优先级8注:优先级(1-8)值越小优先级最大
/ip firewall mangle
add action=mark-connection chain=forward comment=dns_con disabled=no dst-port=53 new-connection-mark=dns_con passthrough=yes protocol=udp
add action=mark-packet chain=forward comment=dns connection-mark=dns_con disabled=no new-packet-mark=DNS passthrough=no
add action=mark-connection chain=forward comment=icmp_con disabled=no new-connection-mark=icmp_con passthrough=yes protocol=icmp
add action=mark-packet chain=forward comment=icmp connection-mark=icmp_con disabled=no new-packet-mark=icmp passthrough=no
add action=mark-connection chain=forward comment=html_con content=.html disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=htm_con content=.htm disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=xml_con content=.xml disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=shtml_con content=.shtml disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=asp_con content=.asp disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=aspx_con content=.aspx disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=php_con content=.php disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=jsp_con content=.jsp disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=cgi_con content=.cgi disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=swf_con content=.swf disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=gif_con content=.gif disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=png_con content=.png disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=jpg_con content=.jpg disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=jpeg_con content=.jpeg disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=bmp_con content=.bmp disabled=no dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=MSIE_con content=MSIE disabled=yes dst-port=80 new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-connection chain=forward comment=http_con disabled=yes dst-port=80 layer7-protocol=http new-connection-mark=web_con passthrough=yes protocol=tcp
add action=mark-packet chain=forward comment=web connection-mark=web_con disabled=no new-packet-mark=web passthrough=no
add action=mark-connection chain=forward comment=other_con disabled=no new-connection-mark=other_con passthrough=yes
add action=mark-packet chain=forward comment=other connection-mark=other_con disabled=no new-packet-mark=other passthrough=no
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=3M name=total parent=pppoe1 priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=512k max-limit=2M name=dns packet-mark=DNS parent=total priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1500k max-limit=3M name=web packet-mark=web parent=total priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=3M name=other packet-mark=other parent=total priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=512k name=icmp packet-mark=icmp parent=total priority=5 queue=default
多谢共享,学习下. 觉得标记缀名的方法是多此一举... 本帖最后由 yuefy 于 2011-4-25 15:09 编辑
不知道LS有什么高明标记?小弟学习一下 已经使用了,相当有效果。
谢谢!我自已觉得也有效果,但是好像有0.几秒延时吧。嘿嘿!不过我觉得是这样啦! 此帖仅作者可见:L 感谢您的无私分享。。。。谢谢! 顶LZ分享精神 分享精神可嘉,大家要发扬光大,技术就是在分享中提高的,支持!! 分享精神可嘉,大家要发扬光大,技术就是在分享中提高的,支持!! 先谢谢,收下了…… 谢谢分享。 不知道LS有什么高明标记?小弟学习一下 感谢您的无私分享。。。。谢谢!
页:
[1]
2