User guide
set filter
Chapter 2 Command Descriptions 113
Required
permissions
The root user can configure filters. Normal users can display filter settings.
Syntax Create filters, add stanzas, or rename filters
set filter name=name
[newname=name]
[s#=token\token\token...]
Display filter table entries
set filter [range=range]
Display filter stanzas
set filter name=name
show={on|off}
Options name=name
A name for the filter.
newname=name
A new name for a previously defined filter.
s#=token/token/token...
#
The number of a stanza, which can be from 1 to 32.
token/token/token...
1-32 tokens, which are the criteria by which filtering is accomplished.
Separate tokens by a forward slash (/). Tokens can consist of any of
the following:
Token Value Filter Criteria
servicename A name in the service table that identifies a particular process,
such as Telnet (see set service on page 196).
hostname The name of a host defined in the host table (see set host on
page 124).
protocol number The number in an IP packet that identifies the protocol to which
IP should pass the packet. Use one of the following: 1 for ICMP,
2 for IGMP, 6 for TCP, and 17 for UDP.
ip addr An IP address.
ip mask An IP mask that modifies the meaning of the ip addr option.
port num A TCP or UDP port number.
port num port num A range of TCP or UDP port numbers.
rcv Incoming packets.
send Outgoing packets.
dst Destination IP packet options within the IP packet, such as
destination IP addresses, ports, and host names.