From 8fec254b2d17d5aec30589f0b3c5444ad1dfd1f5 Mon Sep 17 00:00:00 2001 From: Ruben Herold Date: Fri, 11 Sep 2026 16:28:09 +0200 Subject: Merge pull request #5372 from ruben-herold/T9157-fib-type-match firewall: T9157: add fib-type match for destination/source --- .../include/firewall/common-rule-ipv4-raw.xml.i | 1 + .../include/firewall/common-rule-ipv4.xml.i | 1 + .../include/firewall/common-rule-ipv6-raw.xml.i | 1 + .../include/firewall/common-rule-ipv6.xml.i | 1 + interface-definitions/include/firewall/fib.xml.i | 79 ++++++++++++++++++++++ 5 files changed, 83 insertions(+) create mode 100644 interface-definitions/include/firewall/fib.xml.i (limited to 'interface-definitions/include/firewall') diff --git a/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i b/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i index 719214d3c..7c7c55f9b 100644 --- a/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i +++ b/interface-definitions/include/firewall/common-rule-ipv4-raw.xml.i @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include diff --git a/interface-definitions/include/firewall/common-rule-ipv4.xml.i b/interface-definitions/include/firewall/common-rule-ipv4.xml.i index 7a6feb9ed..28035e8d5 100644 --- a/interface-definitions/include/firewall/common-rule-ipv4.xml.i +++ b/interface-definitions/include/firewall/common-rule-ipv4.xml.i @@ -1,6 +1,7 @@ #include #include +#include #include #include #include diff --git a/interface-definitions/include/firewall/common-rule-ipv6-raw.xml.i b/interface-definitions/include/firewall/common-rule-ipv6-raw.xml.i index 0db67a12f..0d29369d6 100644 --- a/interface-definitions/include/firewall/common-rule-ipv6-raw.xml.i +++ b/interface-definitions/include/firewall/common-rule-ipv6-raw.xml.i @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include diff --git a/interface-definitions/include/firewall/common-rule-ipv6.xml.i b/interface-definitions/include/firewall/common-rule-ipv6.xml.i index 917066a16..5613c9403 100644 --- a/interface-definitions/include/firewall/common-rule-ipv6.xml.i +++ b/interface-definitions/include/firewall/common-rule-ipv6.xml.i @@ -1,6 +1,7 @@ #include #include +#include #include #include #include diff --git a/interface-definitions/include/firewall/fib.xml.i b/interface-definitions/include/firewall/fib.xml.i new file mode 100644 index 000000000..56826e3f9 --- /dev/null +++ b/interface-definitions/include/firewall/fib.xml.i @@ -0,0 +1,79 @@ + + + + Match based on the result of a Forwarding Information Base (FIB) lookup + + + + + Key to use for the FIB lookup + + source-address destination-address + + + source-address + Look up a route to the packet's source address (reverse path) + + + destination-address + Look up a route to the packet's destination address + + + (source-address|destination-address) + + + + + + + FIB lookup result to match against + + + + + Match based on the address type returned by the FIB lookup + + local unicast broadcast multicast anycast blackhole unreachable prohibit + + + local + Address is local to this router + + + unicast + Address is a unicast address + + + broadcast + Address is a broadcast address + + + multicast + Address is a multicast address + + + anycast + Address is an anycast address + + + blackhole + Address is blackholed + + + unreachable + Address is unreachable + + + prohibit + Address is administratively prohibited + + + (!?(local|unicast|broadcast|multicast|anycast|blackhole|unreachable|prohibit)) + + + + + + + + -- cgit v1.2.3