找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4269|回复: 2

[脚本] 求详细解释下面的脚本mangle

[复制链接]
发表于 2010-4-5 16:38:45 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
# 使用于routeros 3.0  
# Edit YuS  www.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


搞半天 一点都不懂
谢谢各位大侠了
routeros
发表于 2010-4-5 16:58:24 | 显示全部楼层
我的解释是这个是一个例子,没什么用的
routeros
回复

使用道具 举报

发表于 2010-9-21 17:33:29 | 显示全部楼层
我估计你看不懂的是comment,
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-25 00:33 , Processed in 0.158495 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表