|
发表于 2007-12-1 23:17:29
|
显示全部楼层
ROS 2.9X部分脚本分享
专业限速
:for szwm from 1 to 254 do={/queue simple add name=(linmh . $szwm) dst-address=(172.30.81. . $szwm) limit-at=10240000/2560000 max-limit=10240000/2560000 interface=all parent=none priority=8 queue=default/default burst-limit=20480000/5120000 burst-threshold=10240000/2560000 burst-time=10s/10s total-queue=default target-address=172.30.81.0/24 time=19h00m00s-24h00m00s,sun,mon,tue,wed,thu,fri,sat disabled=no}
小包端口透明传输
/ ip firewall mangle
add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1452 \
comment="Change MSS" disabled=no
add chain=prerouting src-address=172.30.81.0/24 tos=min-delay \
action=mark-packet new-packet-mark=LEVEL-1 passthrough=yes \
comment="Up Number" disabled=no
add chain=prerouting src-address=172.30.81.0/24 tos=max-reliability \
action=mark-packet new-packet-mark=LEVEL-2 passthrough=yes comment="" \
disabled=no
add chain=prerouting src-address=172.30.81.0/24 tos=normal action=mark-packet \
new-packet-mark=LEVEL-3 passthrough=yes comment="" disabled=no
/ queue tree
add name="YXJUP" parent=global-out packet-mark="" limit-at=0 \
queue=default priority=3 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0s disabled=no
add name="YXSJB" parent=YXJUP packet-mark="" limit-at=0 \
queue=default priority=3 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0s disabled=no
add name="NO1" parent=YXSJB packet-mark=LEVEL-1 limit-at=0 \
queue=default priority=3 max-limit=0 burst-limit=0 burst-threshold=0 \
burst-time=0s disabled=no
add name="ZDYXSJB" parent=YXJUP packet-mark="" limit-at=0 \
queue=default pri |
|