summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@sydney.vyatta.com>2007-12-20 12:17:24 -0800
committerBob Gilligan <gilligan@sydney.vyatta.com>2007-12-20 12:17:24 -0800
commit0a9bb9fca675fb7f185b113153ed801cc7f43b17 (patch)
treeec5df0673f05e0559aac551e2608eb25e887d2bd
parentbef37db8c4c9a6a190da5aa10daaf7c808665884 (diff)
downloadvyatta-op-firewall-0a9bb9fca675fb7f185b113153ed801cc7f43b17.tar.gz
vyatta-op-firewall-0a9bb9fca675fb7f185b113153ed801cc7f43b17.zip
Add "clear firewall ..." commands
-rw-r--r--templates/clear/firewall/name/node.def1
-rw-r--r--templates/clear/firewall/name/node.tag/node.def2
-rw-r--r--templates/clear/firewall/node.def1
3 files changed, 4 insertions, 0 deletions
diff --git a/templates/clear/firewall/name/node.def b/templates/clear/firewall/name/node.def
new file mode 100644
index 0000000..5b291c7
--- /dev/null
+++ b/templates/clear/firewall/name/node.def
@@ -0,0 +1 @@
+help: Clear firewall statistics for chain \ No newline at end of file
diff --git a/templates/clear/firewall/name/node.tag/node.def b/templates/clear/firewall/name/node.tag/node.def
new file mode 100644
index 0000000..6a61828
--- /dev/null
+++ b/templates/clear/firewall/name/node.tag/node.def
@@ -0,0 +1,2 @@
+help: Clear firewall rules for a given chain
+allowed: sudo ${vyatta_bindir}/sudo-users/iptables --list -n | /bin/grep ^Chain | /usr/bin/awk '{ print $2 }' \ No newline at end of file
diff --git a/templates/clear/firewall/node.def b/templates/clear/firewall/node.def
new file mode 100644
index 0000000..e9bd86c
--- /dev/null
+++ b/templates/clear/firewall/node.def
@@ -0,0 +1 @@
+help: Clear firewall statistics