blob: f82f854c002363b507a188e7f272c2443462a18b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
priority: 210
tag:
type: txt
syntax:expression: pattern $VAR(@) "^[[:print:]]{1,29}$" ; \
"Firewall name must be 29 characters or less"
syntax:expression: pattern $VAR(@) "^[^-]" ; \
"Firewall rule set name cannot start with \"-\""
syntax:expression: pattern $VAR(@) "^[^;]*$" ; \
"Firewall rule set name cannot contain ';'"
syntax:expression: ! pattern $VAR(@) "^VZONE" ; \
"Firewall rule set name cannot start with 'VZONE'"
end: if sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-rules ipv6-modify "$VAR(@)" ;
then
if [ ${COMMIT_ACTION} = 'DELETE' ] ;
then
if sudo /opt/vyatta/sbin/vyatta-firewall.pl --teardown-ok ipv6-modify ;
then
sudo /opt/vyatta/sbin/vyatta-firewall.pl --teardown ipv6-modify
fi
fi
else
exit 1;
fi
create: sudo /opt/vyatta/sbin/vyatta-firewall.pl --setup ip6tables ipv6-modify
help: Set IPv6 modify rule set name
|