diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-06-15 18:07:12 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-06-15 18:10:41 -0700 |
commit | ab23370a369bb999eba110b50423eb36136a1bcd (patch) | |
tree | dbe523136ff766c34f8adcd5b894b665cc139850 /templates/firewall | |
parent | 2715618badc802857ca005f329f45d5583588bd7 (diff) | |
download | vyatta-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.def | 3 | ||||
-rw-r--r-- | templates/firewall/group/network-group/node.def | 3 | ||||
-rw-r--r-- | templates/firewall/group/port-group/node.def | 3 |
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 \ |