Configuring Filters
8-7
Displaying Filters
Displaying Filters
To display the filter table, use the following command:
Command> show table filter
To display a particular filter, use the following command:
Command> show filter Filtername
Deleting Filters
To delete a filter, use the following command:
Command> delete filter Filtername
Example Filters
Because filters are very flexible, you must carefully evaluate the types of traffic that a
specific filter permits or denies through an interface before attaching the filter. If
possible, a filter should be tested from both sides of the filtering interface to verify that
the filter is operating as you intended. Using the log keyword to log packets that match
a rule to the loghost is useful when you are testing and refining IP filters.
Some of the following examples use the 192.168.1.0 network as the public network.
Substitute the number of your network or subnetwork if you use these examples.
Note – Any packet that is not explicitly permitted by a filter is denied, except for the
special case of a filter with no rules, which permits everything.
Simple Filter
A simple filter can consist of the following rules:
Command> set filter simple 1 permit udp dst eq 53
Command> set filter simple 2 permit tcp dst eq 25
Command> set filter simple 3 permit icmp
Command> set filter simple 4 permit 0.0.0.0/0 192.168.1.3/32 tcp dst eq 21
Command> set filter simple 5 permit tcp src eq 20 dst gt 1023
Table 8-2 describes, line by line, each rule in the filter.
Table 8-2
Description of Simple Filter
Rule
Description
1.
Permits Domain Name Service (DNS) UDP packets from any host to
any host.
2.
Permits SMTP (mail) packets.
3.
Permits ICMP packets.
4.
Permits FTP from any host, but only to the host 192.168.1.3.
✍
Содержание PortMaster 4
Страница 12: ...Contents xii PortMaster Configuration Guide...
Страница 24: ...Basic Configuration Steps 1 6 PortMaster 4 Configuration Guide...
Страница 48: ...PortMaster Security Management 2 24 PortMaster 4 Configuration Guide...
Страница 102: ...Testing Your Location Configuration 7 12 PortMaster 4 Configuration Guide...
Страница 122: ...Configuring Ports for Modem Use 9 8 PortMaster 4 Configuration Guide...
Страница 152: ...Performing Diagnostics 11 4 PortMaster 4 Configuration Guide...
Страница 162: ...Frame Relay Subinterfaces 12 10 PortMaster 4 Configuration Guide...
Страница 168: ...Troubleshooting a Leased Line Connection 13 6 PortMaster 4 Configuration Guide...
Страница 182: ...Command Index Command Index 4 PortMaster 4 Configuration Guide...