blob: ea2d9b7513e88acbe6bc9c0c11be809af05f938b (
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
|
tag:
type: txt
help: Zone name
syntax:expression: pattern $VAR(@) "^[[:print:]]{1,18}$" ;
"Zone name must be 18 characters or less"
syntax:expression: pattern $VAR(@) "^[^-]" ; "Zone name cannot start with \"-\""
syntax:expression: pattern $VAR(@) "^[^;]*$" ; "Zone name cannot contain ';'"
create:
# fw zone actions
if ! /opt/vyatta/sbin/vyatta-zone.pl \
--action=add-zone \
--zone-name="$VAR(@)"; then
exit 1
fi
delete:
# fw zone actions
if ! /opt/vyatta/sbin/vyatta-zone.pl \
--action=delete-zone \
--zone-name="$VAR(@)"; then
exit 1
fi
end: ${vyatta_sbindir}/vyatta-firewall-trap.pl --level="zone-policy zone $VAR(@)"
|