User Guide

8 Firewall Commands
147 / 260
3EC 16982 AFAA TCZZA Ed. 01
firewall rule stats
Show statistics, i. e. the number of packets and bytes which have passed the hooks.
SYNTAX:
firewall rule stats [chain = <string>]
[index = <number>]
[chain] The name of the chain of 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 of which the statistics must be
listed. Execute 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
EXAMPLE OUTPUT:
=>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=65535dstport=telnet
action=deny
=>firewall rule clear
=>firewall rule stats
Chain sink, index0, packets 43, bytes 1743
Chain sink, index1, packets 0, bytes 0
Chain sink, index2, packets 0, bytes 0
Chain sink, index3, 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, index0, packets 0, bytes 0
=>firewall rule stats
Chain sink, index0, packets 104, bytes 6143
Chain sink, index1, packets 0, bytes 0
Chain sink, index2, packets 0, bytes 0
Chain sink, index3, 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, index0, packets 44, bytes 21032
=>
DESCRIPTION:
The statistics for the `Test` chain are the result of sending udp packets to the SpeedTouchPro
with Firewall. The chain `Test` is assigned to the hook `input` and prohibits the sending of udp
packets from one host to another.