From b832ab05d16876f66bc6bf4837ae87d941455171 Mon Sep 17 00:00:00 2001 From: Henning Surmeier Date: Thu, 31 Mar 2022 14:12:02 +0200 Subject: Revert "Revert "backport: T4515: T4219: policy local-route6 and inbound-interface support"" This reverts commit 45a2a7d0adc7e9d27d6c7aee1ccbd9b64a1437ad. --- .../include/interface/inbound-interface.xml.i | 10 ++ interface-definitions/policy-local-route.xml.in | 123 ++++++++++++++++++++- 2 files changed, 132 insertions(+), 1 deletion(-) create mode 100644 interface-definitions/include/interface/inbound-interface.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/interface/inbound-interface.xml.i b/interface-definitions/include/interface/inbound-interface.xml.i new file mode 100644 index 000000000..5a8d47280 --- /dev/null +++ b/interface-definitions/include/interface/inbound-interface.xml.i @@ -0,0 +1,10 @@ + + + + Inbound Interface + + + + + + diff --git a/interface-definitions/policy-local-route.xml.in b/interface-definitions/policy-local-route.xml.in index 3769c3748..573a7963f 100644 --- a/interface-definitions/policy-local-route.xml.in +++ b/interface-definitions/policy-local-route.xml.in @@ -14,7 +14,7 @@ u32:1-32765 - Local-route rule number (1-219) + Local-route rule number (1-32765) @@ -40,6 +40,18 @@ + + + Match fwmark value + + u32:1-2147483647 + Address to match against + + + + + + Source address or prefix @@ -58,6 +70,115 @@ + + + Destination address or prefix + + ipv4 + Address to match against + + + ipv4net + Prefix to match against + + + + + + + + + #include + + + + + + + IPv6 policy route of local traffic + + + + + IPv6 policy local-route rule set number + + + u32:1-32765 + Local-route rule number (1-32765) + + + + + + + + + Packet modifications + + + + + Routing table to forward packet with + + u32:1-200 + Table number + + + main + + + + + + + + Match fwmark value + + u32:1-2147483647 + Address to match against + + + + + + + + + Source address or prefix + + ipv4 + Address to match against + + + ipv4net + Prefix to match against + + + + + + + + + + + Destination address or prefix + + ipv6 + Address to match against + + + ipv6net + Prefix to match against + + + + + + + + + #include -- cgit v1.2.3 From fac820cadcf7dbe1ee449770abd3c9d8c73ec16c Mon Sep 17 00:00:00 2001 From: Henning Surmeier Date: Tue, 20 Sep 2022 10:31:07 +0200 Subject: local-route6: use ipv6 value help for source --- interface-definitions/policy-local-route.xml.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/policy-local-route.xml.in b/interface-definitions/policy-local-route.xml.in index 573a7963f..d969613b1 100644 --- a/interface-definitions/policy-local-route.xml.in +++ b/interface-definitions/policy-local-route.xml.in @@ -146,11 +146,11 @@ Source address or prefix - ipv4 + ipv6 Address to match against - ipv4net + ipv6net Prefix to match against -- cgit v1.2.3 From 93ee3651a8505bdf9f7eed7a0d6a680ba7e7ae72 Mon Sep 17 00:00:00 2001 From: Henning Surmeier Date: Tue, 20 Sep 2022 10:33:08 +0200 Subject: policy: local-route(6): set priority property Co-authored-by: initramfs --- interface-definitions/policy-local-route.xml.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'interface-definitions') diff --git a/interface-definitions/policy-local-route.xml.in b/interface-definitions/policy-local-route.xml.in index d969613b1..8619e839e 100644 --- a/interface-definitions/policy-local-route.xml.in +++ b/interface-definitions/policy-local-route.xml.in @@ -6,6 +6,7 @@ IPv4 policy route of local traffic + 500 @@ -96,6 +97,7 @@ IPv6 policy route of local traffic + 500 -- cgit v1.2.3