diff options
Diffstat (limited to 'templates/firewall/ipv6-name/node.def')
-rw-r--r-- | templates/firewall/ipv6-name/node.def | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/firewall/ipv6-name/node.def b/templates/firewall/ipv6-name/node.def index d60808b..0d3fb79 100644 --- a/templates/firewall/ipv6-name/node.def +++ b/templates/firewall/ipv6-name/node.def @@ -12,7 +12,11 @@ syntax:expression: pattern $VAR(@) "^[^-]" ; "Firewall rule set name cannot star syntax:expression: pattern $VAR(@) "^[^;]*$" ; "Firewall rule set name cannot contain ';'" -syntax:expression: pattern $VAR(@) "^[^VZONE]" ; "Firewall rule set name cannot start with \"VZONE\"" +syntax:expression: exec " + if echo '$VAR(@)' | grep -q '^VZONE'; then + echo Firewall rule set name cannot start with 'VZONE' + exit 1 + fi " end: if sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-rules ipv6-name "$VAR(@)" ; then |