From 9a5dfb4b7ec9e065a73511a38e1713aec03eee0e Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Fri, 28 Oct 2022 18:19:47 +0000 Subject: T4780: Firewall: add firewall groups in firewall. Extend matching criteria so this new group can be used in inbound and outbound matcher --- interface-definitions/firewall.xml.in | 29 ++++++++++++++++++++++ .../include/firewall/common-rule.xml.i | 26 +++++++++---------- .../include/firewall/match-interface.xml.i | 18 ++++++++++++++ .../include/version/firewall-version.xml.i | 2 +- 4 files changed, 61 insertions(+), 14 deletions(-) create mode 100644 interface-definitions/include/firewall/match-interface.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in index 673461036..12584276c 100644 --- a/interface-definitions/firewall.xml.in +++ b/interface-definitions/firewall.xml.in @@ -134,6 +134,35 @@ #include + + + Firewall interface-group + + [a-zA-Z0-9][\w\-\.]* + + + + + + Interface-group member + + + + + + + + + Include another interface-group + + firewall group interface-group + + + + + #include + + Firewall ipv6-address-group diff --git a/interface-definitions/include/firewall/common-rule.xml.i b/interface-definitions/include/firewall/common-rule.xml.i index a4f66f5cb..297e6fc1a 100644 --- a/interface-definitions/include/firewall/common-rule.xml.i +++ b/interface-definitions/include/firewall/common-rule.xml.i @@ -26,14 +26,22 @@ - + Match inbound-interface - - - - + + #include + + + + + Match outbound-interface + + + #include + + Inbound IPsec packets @@ -130,14 +138,6 @@ - - - Match outbound-interface - - - - - Protocol to match (protocol name, number, or "all") diff --git a/interface-definitions/include/firewall/match-interface.xml.i b/interface-definitions/include/firewall/match-interface.xml.i new file mode 100644 index 000000000..675a87574 --- /dev/null +++ b/interface-definitions/include/firewall/match-interface.xml.i @@ -0,0 +1,18 @@ + + + + Match interface + + + + + + + + Match interface-group + + firewall group interface-group + + + + \ No newline at end of file diff --git a/interface-definitions/include/version/firewall-version.xml.i b/interface-definitions/include/version/firewall-version.xml.i index 065925319..bc04f8d51 100644 --- a/interface-definitions/include/version/firewall-version.xml.i +++ b/interface-definitions/include/version/firewall-version.xml.i @@ -1,3 +1,3 @@ - + -- cgit v1.2.3