summaryrefslogtreecommitdiff
path: root/templates/firewall
diff options
context:
space:
mode:
Diffstat (limited to 'templates/firewall')
-rw-r--r--templates/firewall/name/node.tag/rule/node.tag/destination/group/address-group/node.def4
-rw-r--r--templates/firewall/name/node.tag/rule/node.tag/destination/group/network-group/node.def3
-rw-r--r--templates/firewall/name/node.tag/rule/node.tag/destination/group/port-group/node.def3
-rw-r--r--templates/firewall/name/node.tag/rule/node.tag/source/group/address-group/node.def3
-rw-r--r--templates/firewall/name/node.tag/rule/node.tag/source/group/network-group/node.def3
-rw-r--r--templates/firewall/name/node.tag/rule/node.tag/source/group/port-group/node.def3
6 files changed, 19 insertions, 0 deletions
diff --git a/templates/firewall/name/node.tag/rule/node.tag/destination/group/address-group/node.def b/templates/firewall/name/node.tag/rule/node.tag/destination/group/address-group/node.def
index 6fd918f..89544cf 100644
--- a/templates/firewall/name/node.tag/rule/node.tag/destination/group/address-group/node.def
+++ b/templates/firewall/name/node.tag/rule/node.tag/destination/group/address-group/node.def
@@ -5,3 +5,7 @@ syntax:expression: exec "sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=check-set-type \
--set-name=$VAR(@) \
--set-type=address;"
+
+allowed: local -a array
+ array=( /opt/vyatta/config/active/firewall/group/address-group/* )
+ echo -n ${array[@]##*/}
diff --git a/templates/firewall/name/node.tag/rule/node.tag/destination/group/network-group/node.def b/templates/firewall/name/node.tag/rule/node.tag/destination/group/network-group/node.def
index 023acbf..30fe5e1 100644
--- a/templates/firewall/name/node.tag/rule/node.tag/destination/group/network-group/node.def
+++ b/templates/firewall/name/node.tag/rule/node.tag/destination/group/network-group/node.def
@@ -5,3 +5,6 @@ syntax:expression: exec "sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=check-set-type \
--set-name=$VAR(@) \
--set-type=network;"
+allowed: local -a array
+ array=( /opt/vyatta/config/active/firewall/group/network-group/* )
+ echo -n ${array[@]##*/}
diff --git a/templates/firewall/name/node.tag/rule/node.tag/destination/group/port-group/node.def b/templates/firewall/name/node.tag/rule/node.tag/destination/group/port-group/node.def
index f77d45a..6bab1c7 100644
--- a/templates/firewall/name/node.tag/rule/node.tag/destination/group/port-group/node.def
+++ b/templates/firewall/name/node.tag/rule/node.tag/destination/group/port-group/node.def
@@ -5,3 +5,6 @@ syntax:expression: exec "sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=check-set-type \
--set-name=$VAR(@) \
--set-type=port;"
+allowed: local -a array
+ array=( /opt/vyatta/config/active/firewall/group/port-group/* )
+ echo -n ${array[@]##*/}
diff --git a/templates/firewall/name/node.tag/rule/node.tag/source/group/address-group/node.def b/templates/firewall/name/node.tag/rule/node.tag/source/group/address-group/node.def
index 6fd918f..d652898 100644
--- a/templates/firewall/name/node.tag/rule/node.tag/source/group/address-group/node.def
+++ b/templates/firewall/name/node.tag/rule/node.tag/source/group/address-group/node.def
@@ -5,3 +5,6 @@ syntax:expression: exec "sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=check-set-type \
--set-name=$VAR(@) \
--set-type=address;"
+allowed: local -a array
+ array=( /opt/vyatta/config/active/firewall/group/address-group/* )
+ echo -n ${array[@]##*/}
diff --git a/templates/firewall/name/node.tag/rule/node.tag/source/group/network-group/node.def b/templates/firewall/name/node.tag/rule/node.tag/source/group/network-group/node.def
index 023acbf..30fe5e1 100644
--- a/templates/firewall/name/node.tag/rule/node.tag/source/group/network-group/node.def
+++ b/templates/firewall/name/node.tag/rule/node.tag/source/group/network-group/node.def
@@ -5,3 +5,6 @@ syntax:expression: exec "sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=check-set-type \
--set-name=$VAR(@) \
--set-type=network;"
+allowed: local -a array
+ array=( /opt/vyatta/config/active/firewall/group/network-group/* )
+ echo -n ${array[@]##*/}
diff --git a/templates/firewall/name/node.tag/rule/node.tag/source/group/port-group/node.def b/templates/firewall/name/node.tag/rule/node.tag/source/group/port-group/node.def
index f77d45a..6bab1c7 100644
--- a/templates/firewall/name/node.tag/rule/node.tag/source/group/port-group/node.def
+++ b/templates/firewall/name/node.tag/rule/node.tag/source/group/port-group/node.def
@@ -5,3 +5,6 @@ syntax:expression: exec "sudo /opt/vyatta/sbin/vyatta-ipset.pl \
--action=check-set-type \
--set-name=$VAR(@) \
--set-type=port;"
+allowed: local -a array
+ array=( /opt/vyatta/config/active/firewall/group/port-group/* )
+ echo -n ${array[@]##*/}