summaryrefslogtreecommitdiff
path: root/templates/firewall
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2009-06-15 18:07:12 -0700
committerStig Thormodsrud <stig@vyatta.com>2009-06-15 18:10:41 -0700
commitab23370a369bb999eba110b50423eb36136a1bcd (patch)
treedbe523136ff766c34f8adcd5b894b665cc139850 /templates/firewall
parent2715618badc802857ca005f329f45d5583588bd7 (diff)
downloadvyatta-cfg-firewall-ab23370a369bb999eba110b50423eb36136a1bcd.tar.gz
vyatta-cfg-firewall-ab23370a369bb999eba110b50423eb36136a1bcd.zip
Fix negate of firewall group.
Diffstat (limited to 'templates/firewall')
-rw-r--r--templates/firewall/group/address-group/node.def3
-rw-r--r--templates/firewall/group/network-group/node.def3
-rw-r--r--templates/firewall/group/port-group/node.def3
3 files changed, 9 insertions, 0 deletions
diff --git a/templates/firewall/group/address-group/node.def b/templates/firewall/group/address-group/node.def
index f594074..9a60731 100644
--- a/templates/firewall/group/address-group/node.def
+++ b/templates/firewall/group/address-group/node.def
@@ -11,6 +11,9 @@ syntax:expression: exec " \
syntax:expression: pattern $VAR(@) "^[^-]" ; \
"Firewall group name cannot start with \"-\""
+syntax:expression: pattern $VAR(@) "^[^!]" ; \
+ "Firewall group name cannot start with \"!\""
+
create: sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=create-set \
--set-type=address \
diff --git a/templates/firewall/group/network-group/node.def b/templates/firewall/group/network-group/node.def
index 3419b6a..0f7e2d5 100644
--- a/templates/firewall/group/network-group/node.def
+++ b/templates/firewall/group/network-group/node.def
@@ -11,6 +11,9 @@ syntax:expression: exec " \
syntax:expression: pattern $VAR(@) "^[^-]" ; \
"Firewall group name cannot start with \"-\""
+syntax:expression: pattern $VAR(@) "^[^!]" ; \
+ "Firewall group name cannot start with \"!\""
+
create: sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=create-set \
--set-type=network \
diff --git a/templates/firewall/group/port-group/node.def b/templates/firewall/group/port-group/node.def
index 6a9e192..e34c960 100644
--- a/templates/firewall/group/port-group/node.def
+++ b/templates/firewall/group/port-group/node.def
@@ -11,6 +11,9 @@ syntax:expression: exec " \
syntax:expression: pattern $VAR(@) "^[^-]" ; \
"Firewall group name cannot start with \"-\""
+syntax:expression: pattern $VAR(@) "^[^!]" ; \
+ "Firewall group name cannot start with \"!\""
+
create: sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=create-set \
--set-type=port \