diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show/firewall/group/node.def | 2 | ||||
-rw-r--r-- | templates/show/firewall/group/node.tag/node.def | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/templates/show/firewall/group/node.def b/templates/show/firewall/group/node.def new file mode 100644 index 0000000..bee6d42 --- /dev/null +++ b/templates/show/firewall/group/node.def @@ -0,0 +1,2 @@ +help: Show IPv4 firewall group + diff --git a/templates/show/firewall/group/node.tag/node.def b/templates/show/firewall/group/node.tag/node.def new file mode 100644 index 0000000..85ebdc0 --- /dev/null +++ b/templates/show/firewall/group/node.tag/node.def @@ -0,0 +1,7 @@ +help: Show IPv4 firewall group + +allowed: local -a array + array=( /opt/vyatta/config/active/firewall/group/*/* ) + echo -n ${array[@]##*/} + +run: sudo /opt/vyatta/sbin/vyatta-ipset.pl --action=show-set-members --set-name="$4" |