summaryrefslogtreecommitdiff
path: root/templates/firewall/group/address-group/node.def
blob: 40462fac494adf10c4fe6cb79f1a77f04998dd39 (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
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"

create: sudo /opt/vyatta/sbin/vyatta-ipset.pl \
          --action=create-set                 \
          --set-type=address                  \
          --set-name="$VAR(@)"


delete: sudo /opt/vyatta/sbin/vyatta-ipset.pl \
          --action=delete-set                 \
          --set-name="$VAR(@)"