summaryrefslogtreecommitdiff
path: root/templates/firewall
diff options
context:
space:
mode:
Diffstat (limited to 'templates/firewall')
-rw-r--r--templates/firewall/name/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/firewall/name/node.def b/templates/firewall/name/node.def
index c48eb6d..484d637 100644
--- a/templates/firewall/name/node.def
+++ b/templates/firewall/name/node.def
@@ -11,6 +11,9 @@ syntax:expression: pattern $VAR(@) "^[^|;&$<>]*$" ; \
"Firewall rule set name cannot contain shell punctuation"
syntax:expression: ! pattern $VAR(@) "^VZONE" ; \
"Firewall rule set name cannot start with 'VZONE'"
+syntax:expression: ! pattern $VAR(@) "(PREROUTING|POSTROUTING|CONNMARK|MARK\
+ FILTER|FORWARD|INPUT|OUTPUT|VYATTA_.*_HOOK)" ; \
+ "$VAR(@) is a reserved name"
end: if sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-rules "firewall name" "$VAR(@)" ;
then