summaryrefslogtreecommitdiff
path: root/templates/firewall/modify/node.def
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-05-05 11:34:06 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2009-05-05 11:34:06 -0700
commitaf9b647c46b09a8ad84b68264fd2bfb65c9dd98e (patch)
tree9e9b4c2461ae724fa1153fcb73d00d14c9edba7e /templates/firewall/modify/node.def
parente4ec1e1bb7f3e1a69dc8d426cc8ed95dd7c84485 (diff)
downloadvyatta-cfg-firewall-af9b647c46b09a8ad84b68264fd2bfb65c9dd98e.tar.gz
vyatta-cfg-firewall-af9b647c46b09a8ad84b68264fd2bfb65c9dd98e.zip
* don't allow user to create a chain that exists in the system. This may be
either vyatta/user defined chains or system chains such as INPUT, OUTPUT etc. * don't allow user to create chains with name starting from 'VZONE'. This is reserved for zone chains created by us.
Diffstat (limited to 'templates/firewall/modify/node.def')
-rw-r--r--templates/firewall/modify/node.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/firewall/modify/node.def b/templates/firewall/modify/node.def
index b7ec4a4..c9d6dc0 100644
--- a/templates/firewall/modify/node.def
+++ b/templates/firewall/modify/node.def
@@ -10,6 +10,8 @@ syntax:expression: exec " \
syntax:expression: pattern $VAR(@) "^[^-]" ; "Modify rule set name cannot start with \"-\""
+syntax:expression: pattern $VAR(@) "^[^VZONE]" ; "Firewall rule set name cannot start with \"VZONE\""
+
syntax:expression: pattern $VAR(@) "^[^;]*$" ; "Firewall rule set name cannot contain ';'"
end: if sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-rules modify "$VAR(@)" ;