Operation Manual
185
Firewall Commands
E-DOC-CTC-20040210-0030 v1.0
firewall rule stats
Show statistics, i.e. the number of packets and bytes which have passed the hooks.
SYNTAX:
where:
EXAMPLE:
DESCRIPTION:
The statistics for the ‘Test‘ chain are the result of sending UDP packets to the SpeedTouch™. The chain ‘Test‘ is
assigned to the hook ‘input‘ and prohibits the sending of UDP packets from one host to another.
firewall rule stats [chain = <string>]
[index = <number>]
chain The name of the chain for which the statistics must be listed.
In case this parameter is not specified, the statistics for the rules
applicable to all chains are shown.
OPTIONAL
index The index number of the chain's rule for which the statistics must
be listed. Use firewall rule list first to determine the index number of
the applicable rule.
In case this parameter is not specified, the statistics for all rules
applicable to the specified chain are shown.
OPTIONAL
=>firewall rule list chain=Test
:firewall rule create chain=Test index=0 srcintfgrp=lan src=200.200.0.1/32
dst=200.200.0.2/32 prot=udp srcport=0 srcportend=65535 dstport=telnet
action=deny
=>firewall rule clear
=>firewall rule stats
Chain sink, index 0, packets 43, bytes 1743
Chain sink, index 1, packets 0, bytes 0
Chain sink, index 2, packets 0, bytes 0
Chain sink, index 3, packets 0, bytes 0
Chain forward, index 0, packets 0, bytes 0
Chain source, index 0, packets 43, bytes 1977
Chain source, index 1, packets 0, bytes 0
Chain source, index 2, packets 0, bytes 0
Chain Test, index 0, packets 0, bytes 0
=>firewall rule stats
Chain sink, index 0, packets 104, bytes 6143
Chain sink, index 1, packets 0, bytes 0
Chain sink, index 2, packets 0, bytes 0
Chain sink, index 3, packets 0, bytes 0
Chain forward, index 0, packets 0, bytes 0
Chain source, index 0, packets 43, bytes 1977
Chain source, index 1, packets 0, bytes 0
Chain source, index 2, packets 0, bytes 0
Chain Test, index 0, packets 44, bytes 21032
=>