diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-02-06 17:54:31 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-02-06 17:54:31 -0800 |
commit | 611ec63a17a19a9b7535b9e5076532420fe23d5d (patch) | |
tree | e8e07cc2b59433cc4ee6643e31178b8388387e71 /templates | |
parent | 687a73aa9bd81c1ab4a7a5de7bd0ce32305481f9 (diff) | |
download | vyatta-op-firewall-611ec63a17a19a9b7535b9e5076532420fe23d5d.tar.gz vyatta-op-firewall-611ec63a17a19a9b7535b9e5076532420fe23d5d.zip |
add clear counter commands for ipv6 firewall chain/chain-rule
Diffstat (limited to 'templates')
12 files changed, 20 insertions, 0 deletions
diff --git a/templates/clear/firewall/ipv6-modify/node.def b/templates/clear/firewall/ipv6-modify/node.def new file mode 100644 index 0000000..208c4f1 --- /dev/null +++ b/templates/clear/firewall/ipv6-modify/node.def @@ -0,0 +1 @@ +help: Clear firewall statistics for chain diff --git a/templates/clear/firewall/ipv6-modify/node.tag/counters/node.def b/templates/clear/firewall/ipv6-modify/node.tag/counters/node.def new file mode 100644 index 0000000..1720f91 --- /dev/null +++ b/templates/clear/firewall/ipv6-modify/node.tag/counters/node.def @@ -0,0 +1,2 @@ +help: Clear firewall counters +run: /opt/vyatta/bin/vyatta-clear-firewall "/sbin/ip6tables" "mangle" "$4" diff --git a/templates/clear/firewall/ipv6-modify/node.tag/node.def b/templates/clear/firewall/ipv6-modify/node.tag/node.def new file mode 100644 index 0000000..521953c --- /dev/null +++ b/templates/clear/firewall/ipv6-modify/node.tag/node.def @@ -0,0 +1,2 @@ +help: Clear firewall rules for a given chain +allowed: ls /opt/vyatta/config/active/firewall/ipv6-modify/ 2>/dev/null diff --git a/templates/clear/firewall/ipv6-modify/node.tag/rule/node.def b/templates/clear/firewall/ipv6-modify/node.tag/rule/node.def new file mode 100644 index 0000000..ff490a2 --- /dev/null +++ b/templates/clear/firewall/ipv6-modify/node.tag/rule/node.def @@ -0,0 +1 @@ +help: Clear firewall statistics for a rule diff --git a/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/counters/node.def b/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/counters/node.def new file mode 100644 index 0000000..ad6c104 --- /dev/null +++ b/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/counters/node.def @@ -0,0 +1,2 @@ +help: Clear counters for specified rule +run: /opt/vyatta/bin/vyatta-clear-firewall "/sbin/ip6tables" "mangle" "$4" "$6" diff --git a/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/node.def b/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/node.def new file mode 100644 index 0000000..dc954f5 --- /dev/null +++ b/templates/clear/firewall/ipv6-modify/node.tag/rule/node.tag/node.def @@ -0,0 +1,2 @@ +help: Clear firewall statistics for given rule +allowed: ls /opt/vyatta/config/active/firewall/ipv6-modify/${COMP_WORDS[COMP_CWORD-2]}/rule/ 2>/dev/null diff --git a/templates/clear/firewall/ipv6-name/node.def b/templates/clear/firewall/ipv6-name/node.def new file mode 100644 index 0000000..208c4f1 --- /dev/null +++ b/templates/clear/firewall/ipv6-name/node.def @@ -0,0 +1 @@ +help: Clear firewall statistics for chain diff --git a/templates/clear/firewall/ipv6-name/node.tag/counters/node.def b/templates/clear/firewall/ipv6-name/node.tag/counters/node.def new file mode 100644 index 0000000..b2f61a2 --- /dev/null +++ b/templates/clear/firewall/ipv6-name/node.tag/counters/node.def @@ -0,0 +1,2 @@ +help: Clear firewall counters +run: /opt/vyatta/bin/vyatta-clear-firewall "/sbin/ip6tables" "filter" "$4" diff --git a/templates/clear/firewall/ipv6-name/node.tag/node.def b/templates/clear/firewall/ipv6-name/node.tag/node.def new file mode 100644 index 0000000..b35fe00 --- /dev/null +++ b/templates/clear/firewall/ipv6-name/node.tag/node.def @@ -0,0 +1,2 @@ +help: Clear firewall rules for a given chain +allowed: ls /opt/vyatta/config/active/firewall/ipv6-name/ 2>/dev/null diff --git a/templates/clear/firewall/ipv6-name/node.tag/rule/node.def b/templates/clear/firewall/ipv6-name/node.tag/rule/node.def new file mode 100644 index 0000000..ff490a2 --- /dev/null +++ b/templates/clear/firewall/ipv6-name/node.tag/rule/node.def @@ -0,0 +1 @@ +help: Clear firewall statistics for a rule diff --git a/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/counters/node.def b/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/counters/node.def new file mode 100644 index 0000000..de50417 --- /dev/null +++ b/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/counters/node.def @@ -0,0 +1,2 @@ +help: Clear counters for specified rule +run: /opt/vyatta/bin/vyatta-clear-firewall "/sbin/ip6tables" "filter" "$4" "$6" diff --git a/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/node.def b/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/node.def new file mode 100644 index 0000000..f740f57 --- /dev/null +++ b/templates/clear/firewall/ipv6-name/node.tag/rule/node.tag/node.def @@ -0,0 +1,2 @@ +help: Clear firewall statistics for given rule +allowed: ls /opt/vyatta/config/active/firewall/ipv6-name/${COMP_WORDS[COMP_CWORD-2]}/rule/ 2>/dev/null |