From fafd25143d46220c537de8ef514d5954129528eb Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Sun, 30 Jan 2022 00:39:12 +0100 Subject: firewall: T2199: Add constraint for tagnode names --- interface-definitions/firewall.xml.in | 24 ++++++++++++++++++++++++ interface-definitions/policy-route.xml.in | 6 ++++++ interface-definitions/zone-policy.xml.in | 3 +++ 3 files changed, 33 insertions(+) (limited to 'interface-definitions') diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in index f38bcfd9c..f2aca4b3a 100644 --- a/interface-definitions/firewall.xml.in +++ b/interface-definitions/firewall.xml.in @@ -74,6 +74,9 @@ Firewall address-group + + ^[a-zA-Z0-9][\w\-\.]*$ + @@ -100,6 +103,9 @@ Firewall ipv6-address-group + + ^[a-zA-Z0-9][\w\-\.]*$ + @@ -126,6 +132,9 @@ Firewall ipv6-network-group + + ^[a-zA-Z0-9][\w\-\.]*$ + #include @@ -147,6 +156,9 @@ Firewall mac-group + + ^[a-zA-Z0-9][\w\-\.]*$ + #include @@ -168,6 +180,9 @@ Firewall network-group + + ^[a-zA-Z0-9][\w\-\.]*$ + #include @@ -189,6 +204,9 @@ Firewall port-group + + ^[a-zA-Z0-9][\w\-\.]*$ + #include @@ -240,6 +258,9 @@ IPv6 firewall rule-set name + + ^[a-zA-Z0-9][\w\-\.]*$ + #include @@ -423,6 +444,9 @@ IPv4 firewall rule-set name + + ^[a-zA-Z0-9][\w\-\.]*$ + #include diff --git a/interface-definitions/policy-route.xml.in b/interface-definitions/policy-route.xml.in index 4ce953b52..a1c3b50de 100644 --- a/interface-definitions/policy-route.xml.in +++ b/interface-definitions/policy-route.xml.in @@ -5,6 +5,9 @@ Policy route rule set name for IPv6 + + ^[a-zA-Z0-9][\w\-\.]*$ + 201 @@ -51,6 +54,9 @@ Policy route rule set name for IPv4 + + ^[a-zA-Z0-9][\w\-\.]*$ + 201 diff --git a/interface-definitions/zone-policy.xml.in b/interface-definitions/zone-policy.xml.in index dd64c7c16..69ee031c7 100644 --- a/interface-definitions/zone-policy.xml.in +++ b/interface-definitions/zone-policy.xml.in @@ -13,6 +13,9 @@ txt Zone name + + ^[a-zA-Z0-9][\w\-\.]*$ + #include -- cgit v1.2.3