blob: ec5955a0b972131d95ec49f7104a6577a3a41004 (
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
31
32
33
34
35
36
|
tag:
type: txt
syntax:expression: exec " \
if [ `echo -n '$VAR(@)' | wc -c` -gt 29 ]; then \
echo firewall modify must be 29 characters or less; \
exit 1 ; \
fi ; "
syntax:expression: pattern $VAR(@) "^[^-]" ; "Modify rule set name cannot start with \"-\""
syntax:expression: pattern $VAR(@) "^[^;]*$" ; "Firewall rule set name cannot contain ';'"
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 modify "$VAR(@)" ;
then
if [ ${COMMIT_ACTION} = 'DELETE' ] ;
then
if sudo /opt/vyatta/sbin/vyatta-firewall.pl --teardown-ok modify ;
then
sudo /opt/vyatta/sbin/vyatta-firewall.pl --teardown modify
fi
fi
else
exit 1;
fi
create: sudo /opt/vyatta/sbin/vyatta-firewall.pl --setup iptables modify
help: Set IPv4 modify rule set name
|