|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
最近发现个小包优先脚本,上机试验后很不错,用迅雷下载,发现延时小,也不丢包。并且限速非常不错。只可惜是对互联网入口进行限速,有木有办法对内网每一台机器进行限速,迅雷下载,延时小,也不丢包,下边的脚本该咋改呢。我的是八条十M的PPPOE方式上网,合计带宽是80M。外网网卡名为wan ,内网网卡名为lan,想对内网用户限速4M,做到迅雷下载,延时小,也不丢包。
/ 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=global-in packet-mark=small priority=1
add name="middle" parent=global-in packet-mark=middle priority=2 max-limit=10000000
add name="big" parent=global-in packet-mark=big priority=7 max-limit=10000000
add name="IE" parent=global-in packet-mark=IE priority=8 max-limit=30000000 |
|