From 9e08da4acf25e61563ef9f503d36d62b375c25aa Mon Sep 17 00:00:00 2001 From: Saurabh Pandit Date: Fri, 25 Oct 2024 15:18:02 +0530 Subject: [PATCH] (CAT-2088): Allow colon in iptable syntax --- lib/puppet/type/firewall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index 8cf0cffd4..5712144ad 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -948,7 +948,7 @@ DESC }, ipset: { - type: 'Optional[Variant[Pattern[/^(?:!\s)?[\w\-_]+\s(?:src|dst)(?:,src|,dst)?$/], Array[Pattern[/^(?:!\s)?[\w\-_]+\s(?:src|dst)(?:,src|,dst)?$/]]]]', + type: 'Optional[Variant[Pattern[/^(?:!\s)?[\w\-:_]+\s(?:src|dst)(?:,src|,dst)?$/], Array[Pattern[/^(?:!\s)?[\w\-:_]+\s(?:src|dst)(?:,src|,dst)?$/]]]]', desc: <<-DESC Matches against the specified ipset list. Requires ipset kernel module. Will accept a single element or an array.