/ ip firewall mangle
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=msie content=MSIE disabled=no dst-port=80 protocol=\
tcp
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=jpg content=.jpg disabled=no dst-port=80 protocol=\
tcp
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=gif content=.gif disabled=no dst-port=80 protocol=\
tcp
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=htm content=.htm disabled=no dst-port=80 protocol=\
tcp
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=html content=.html disabled=no dst-port=80 \
protocol=tcp
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=asp content=.asp disabled=no dst-port=80 protocol=\
tcp
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=aspx content=.aspx disabled=no dst-port=80 \
protocol=tcp
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=php content=.php disabled=no dst-port=80 protocol=\
tcp
/ ip firewall mangle
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=swf content=.swf disabled=no dst-port=80 protocol=\
tcp
add action=add-dst-to-address-list address-list=web80 address-list-timeout=5m \
chain=forward comment=shtml content=.shtml disabled=no dst-port=80 \
protocol=tcp
add action=mark-connection chain=forward comment=web80 disabled=no \
new-connection-mark=web passthrough=yes src-address-list=web80
add action=mark-connection chain=forward comment="" disabled=no \
dst-address-list=web80 new-connection-mark=web passthrough=yes
add action=mark-packet chain=forward comment="" connection-mark=web disabled=no new-packet-mark=web80 passthrough=no
上面是网上流程的网页优先的做法,做了一下,确实有些效果
不过,如果你要用的话,最好对ROS有点了解,要不然,效果是做不出来的
上面这段代码只是标志了网页的数据流,如何做HTB+PCQ还要自己做,或者参考网上的教程,都差不多的,没什么大的难度的,主要是要理解。
顺便说一句,我做的是单线的,双线的,不知道如何做,会做的兄弟,可以讨论一下。