cssson 发表于 2010-4-5 16:38:45

求详细解释下面的脚本mangle

# 使用于RouterOS 3.0
# Edit YuSwww.mikrotik.com.cn

/ip firewall mangle
add action=mark-connection chain=prerouting comment=\
    "\D3\C5\CF\C8\B6\CB\BF\DA" disabled=no dst-port=443 new-connection-mark=\
    Port_Conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment="" disabled=no dst-port=\
    3724 new-connection-mark=Port_Conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment="" disabled=no dst-port=\
    8000 new-connection-mark=Port_Conn passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment="" connection-mark=Port_Conn \
    disabled=no new-packet-mark=Port_Packet passthrough=no
add action=mark-connection chain=prerouting comment="web\B6\CB\BF\DA" \
    disabled=no dst-port=80 new-connection-mark=80_Conn passthrough=yes \
    protocol=tcp
add action=mark-connection chain=prerouting comment="" disabled=no dst-port=\
    53 new-connection-mark=80_Conn passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment="" connection-mark=80_Conn \
    disabled=no new-packet-mark=80_packet passthrough=no
add action=mark-connection chain=prerouting comment=\
    "\C6\E4\CB\FB\CA\FD\BE\DD" disabled=no new-connection-mark=Other_Conn \
    passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=Other_Conn \
    disabled=no new-packet-mark=Other_Packet passthrough=no

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=10M name=totaldown \
    packet-mark="" parent=global-in priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=3M max-limit=10M name=portdown \
    packet-mark=Port_Packet parent=totaldown priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=4M max-limit=10M name=otherdown \
    packet-mark=Other_Packet parent=totaldown priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=3M max-limit=10M name=80down \
    packet-mark=80_packet parent=totaldown priority=2 queue=default


搞半天 一点都不懂
谢谢各位大侠了

WGHBOY 发表于 2010-4-5 16:58:24

我的解释是这个是一个例子,没什么用的

cooljay 发表于 2010-9-21 17:33:29

我估计你看不懂的是comment,
页: [1]
查看完整版本: 求详细解释下面的脚本mangle