/routing/rule
当前显示英文原文,切换到「中文」可查看译文。
rule
RouterOS directory reference for /routing/rule.
routing/rule
Type: Directory
| Flag | Name | Description |
|---|---|---|
X | disabled | disabled |
I | inactive | inactive |
* | default | default |
| Argument | Type | Description |
|---|---|---|
src-address | address (flags=64iv/) | Source address to match. |
dst-address | address (flags=64iv/) | Destination address to match. |
routing-mark | enum | Match a specific routing mark. |
interface | iface_enum | Incoming interface to match. |
action | enum (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. |
table | enum (local) { local:4095 } | Name of the routing table to use for lookup. |
min-prefix | num | Hide 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. |
vrf | switch | |
realm | num | |
chain | enum | Name 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. |