diff options
author | Marian Tudosoiu <marian.tudosoiu@1and1.ro> | 2018-03-14 10:27:25 +0200 |
---|---|---|
committer | Marian Tudosoiu <marian.tudosoiu@1and1.ro> | 2018-03-14 10:27:25 +0200 |
commit | 65410961b33a072addf91dce7879f6a734aa2187 (patch) | |
tree | 54fe57581540f2e0f21573dfecd8d73f7dd3c9dd /templates/firewall/group/ipv6-address-group/node.def | |
parent | 4e3ea201d7902d9a0641bbecf42d7e837595e01b (diff) | |
download | vyatta-cfg-firewall-65410961b33a072addf91dce7879f6a734aa2187.tar.gz vyatta-cfg-firewall-65410961b33a072addf91dce7879f6a734aa2187.zip |
Task T35 change to place ipv6 address-groups and network groups under group config tree
Diffstat (limited to 'templates/firewall/group/ipv6-address-group/node.def')
-rw-r--r-- | templates/firewall/group/ipv6-address-group/node.def | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/firewall/group/ipv6-address-group/node.def b/templates/firewall/group/ipv6-address-group/node.def new file mode 100644 index 0000000..7ce50d2 --- /dev/null +++ b/templates/firewall/group/ipv6-address-group/node.def @@ -0,0 +1,25 @@ +tag: +priority: 200 +type: txt +help: Firewall address-group + +syntax:expression: pattern $VAR(@) "^[[:graph:]]{1,31}$" ; \ + "Firewall group name must be 31 characters or less" + +syntax:expression: pattern $VAR(@) "^[^-]" ; \ + "Firewall group name cannot start with \"-\"" + +syntax:expression: pattern $VAR(@) "^[^!]" ; \ + "Firewall group name cannot start with \"!\"" + +syntax:expression: pattern $VAR(@) "^[^|;&$<>]*$" ; \ + "Firewall group name cannot contain shell punctuation" + +syntax:expression: exec "/opt/vyatta/sbin/vyatta-ipset.pl --action=is-group-defined --set-name=$VAR(@) \ + --set-type=address --set-family=inet6"; \ + "Firewall group name already used as Ipv4 group address" + +end: if sudo /opt/vyatta/sbin/vyatta-ipset.pl --action=update-set \ + --set-name="$VAR(@)" --set-type=address --set-family=inet6; then + ${vyatta_sbindir}/vyatta-firewall-trap.pl --level="firewall group ipv6-address-group $VAR(@)" + fi |