From c369910ce0280bdcdb83d1fc8ea563112de96132 Mon Sep 17 00:00:00 2001 From: Johannes Erwerle Date: Fri, 25 Apr 2025 10:12:17 +0200 Subject: policy: added set vrf and updated mark matching --- docs/configuration/policy/route.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'docs/configuration') diff --git a/docs/configuration/policy/route.rst b/docs/configuration/policy/route.rst index b818d238..1ddd04cf 100644 --- a/docs/configuration/policy/route.rst +++ b/docs/configuration/policy/route.rst @@ -51,6 +51,20 @@ in this section. Set match criteria based on connection mark. +.. cfgcmd:: set policy route rule mark +.. cfgcmd:: set policy route6 rule mark + + Match based on the firewall mark (fwmark), where can be: + + * <0-2147483647> a single fwmark + * !<0-2147483647> everything except a single fwmark + * a range of marks + * ! everything except the range of marks + + .. note:: When using the ``set table`` or ``set vrf`` commands the mark + settings are ignored and overwritten with a table-specific mark that + is set to 0x7FFFFFFF - the id of the table/VRF. + .. cfgcmd:: set policy route rule source address .. cfgcmd:: set policy route rule destination address @@ -273,7 +287,20 @@ setting a different routing table. Set the routing table to forward packet with. + .. note:: When using the ``set table`` or ``set vrf`` commands matching + against the mark is not possible, because it gets overwritten with a + table-specific mark that is 0x7FFFFFFF - the id of the table/VRF. + .. cfgcmd:: set policy route rule set tcp-mss <500-1460> .. cfgcmd:: set policy route6 rule set tcp-mss <500-1460> Set packet modifications: Explicitly set TCP Maximum segment size value. + +.. cfgcmd:: set policy route rule set vrf +.. cfgcmd:: set policy route6 rule set vrf + + Set the VRF to forward packet with. + + .. note:: When using the ``set table`` or ``set vrf`` commands matching + against the mark is not possible, because it gets overwritten with a + table-specific mark that is 0x7FFFFFFF - the id of the table/VRF. -- cgit v1.2.3