Skip to content

Commit 8ce433c

Browse files
authored
Merge pull request #1628 from 991jo/policy-vrf-and-fwmark
policy: added set vrf and mark matching documentation
2 parents bfa8a80 + c369910 commit 8ce433c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/configuration/policy/route.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ in this section.
5151

5252
Set match criteria based on connection mark.
5353

54+
.. cfgcmd:: set policy route <name> rule <n> mark <match_criteria>
55+
.. cfgcmd:: set policy route6 <name> rule <n> mark <match_criteria>
56+
57+
Match based on the firewall mark (fwmark), where <match_criteria> can be:
58+
59+
* <0-2147483647> a single fwmark
60+
* !<0-2147483647> everything except a single fwmark
61+
* <start-end> a range of marks
62+
* !<start-end> everything except the range of marks
63+
64+
.. note:: When using the ``set table`` or ``set vrf`` commands the mark
65+
settings are ignored and overwritten with a table-specific mark that
66+
is set to 0x7FFFFFFF - the id of the table/VRF.
67+
5468
.. cfgcmd:: set policy route <name> rule <n> source address
5569
<match_criteria>
5670
.. cfgcmd:: set policy route <name> rule <n> destination address
@@ -273,7 +287,20 @@ setting a different routing table.
273287

274288
Set the routing table to forward packet with.
275289

290+
.. note:: When using the ``set table`` or ``set vrf`` commands matching
291+
against the mark is not possible, because it gets overwritten with a
292+
table-specific mark that is 0x7FFFFFFF - the id of the table/VRF.
293+
276294
.. cfgcmd:: set policy route <name> rule <n> set tcp-mss <500-1460>
277295
.. cfgcmd:: set policy route6 <name> rule <n> set tcp-mss <500-1460>
278296

279297
Set packet modifications: Explicitly set TCP Maximum segment size value.
298+
299+
.. cfgcmd:: set policy route <name> rule <n> set vrf <default | text >
300+
.. cfgcmd:: set policy route6 <name> rule <n> set vrf <default | text >
301+
302+
Set the VRF to forward packet with.
303+
304+
.. note:: When using the ``set table`` or ``set vrf`` commands matching
305+
against the mark is not possible, because it gets overwritten with a
306+
table-specific mark that is 0x7FFFFFFF - the id of the table/VRF.

0 commit comments

Comments
 (0)