/routing/rule

当前显示英文原文,切换到「中文」可查看译文。

rule

RouterOS directory reference for /routing/rule.


routing/rule

Type: Directory

FlagNameDescription
Xdisableddisabled
Iinactiveinactive
*defaultdefault
ArgumentTypeDescription
src-addressaddress (flags=64iv/)Source address to match.
dst-addressaddress (flags=64iv/)Destination address to match.
routing-markenumMatch a specific routing mark.
interfaceiface_enumIncoming interface to match.
actionenum (lookup | lookup-only-in-table | unreachable | drop | mangle)Action to take on the matching packet: - drop - silently drop the packet. - lookup - perform a lookup in routing tables. - lookup-only-in-table - perform lookup only in the specified routing table (see the table parameter). - unreachable - generate an ICMP unreachable message and send it to the source. - mangle - perform actions by firewall mangle rules.
tableenum (local) { local:4095 }Name of the routing table to use for lookup.
min-prefixnumHide routes from the routing table with the specified prefix length from packets processed by this routing rule. This is equivalent to the Linux IP rule suppress_prefixlength. For example, set the value to 0 to suppress the default route in the routing decision.
vrfswitch
realmnum
chainenumName of the chain used by routing decision rules. By default, user is used when the chain is not specified. If the chain name matches a built-in routing decision name, user-created rules are added after that decision. For example, if chain=mangle, user-created rules in this chain are located immediately after the mangle decision.