当前位置:文档下载 > 所有分类 > IT/计算机 > 互联网 > ROS、简单小包优先策略!
侵权投诉

ROS、简单小包优先策略!

ROS ,小包优先策略应用于网吧,企业,等等

ROS、简单小包优先策略!

2009年04月21日 13:45

/ ip firewall mangle

add chain=prerouting packet-size=0-512 action=mark-connection new-connection-mark=small_con passthrough=yes

add chain=prerouting connection-mark=small_con packet-size=0-512 action=mark-packet new-packet-mark=small passthrough=no

add chain=prerouting packet-size=513-1000 action=mark-connection new-connection-mark=middle_con passthrough=yes

add chain=prerouting connection-mark=middle_con packet-size=513-1000 action=mark-packet new-packet-mark=middle passthrough=no

add chain=prerouting packet-size=1001-1300 action=mark-connection new-connection-mark=middle_con2 passthrough=yes

add chain=prerouting connection-mark=middle_con2 packet-size=1001-1300 action=mark-packet new-packet-mark=middle2 passthrough=no

add chain=prerouting protocol=tcp src-port=80 action=mark-connection new-connection-mark=IE_CON passthrough=yes

add chain=prerouting connection-mark=IE_CON action=mark-packet new-packet-mark=IE passthrough=no

add chain=prerouting packet-size=1301-1500 action=mark-connection new-connection-mark=big_con passthrough=yes

add chain=prerouting connection-mark=big_con packet-size=1301-1500 action=mark-packet new-packet-mark=big passthrough=no

/ queue tree

add name="small" parent=内网网卡名 packet-mark=small priority=1 add name="middle" parent=内网网卡名 packet-mark=middle priority=2 max-limit=8000000

add name="big" parent=内网网卡名 packet-mark=big priority=7

max-limit=5000000

add name="IE" parent=内网网卡名 packet-mark=IE priority=8

max-limit=6000000

脚本的一些可设置地方:

add name="middle" parent=global-in packet-mark=middle priority=2 max-limit=8000000

max-limit为中等大小包最大使用带宽

第1页

猜你喜欢

返回顶部