Configuring Filters
9-9
Example Filters
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.
You should 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 9-2
describes, line by line, each rule in the filter
.
Table 9-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.
5.
Permits FTP data to return to the requesting host. This rule is required
to provide a reverse channel for the data portion of FTP.
✍
Содержание PortMaster
Страница 16: ...Contents xvi Configuration Guide for PortMaster Products...
Страница 26: ...Subscribing to PortMaster Mailing Lists xxvi PortMaster Configuration Guide...
Страница 32: ...Basic Configuration Steps 1 6 PortMaster Configuration Guide...
Страница 114: ...Configuring WAN Port Settings 6 12 PortMaster Configuration Guide...
Страница 128: ...Configuring Login Users 7 14 PortMaster Configuration Guide...
Страница 158: ...Restricting User Access 9 16 PortMaster Configuration Guide...
Страница 168: ...Configuring Ports for Modem Use 10 10 PortMaster Configuration Guide...
Страница 222: ...Frame Relay Subinterfaces 13 16 PortMaster Configuration Guide...
Страница 236: ...Troubleshooting a Synchronous V 25bis Connection 14 14 PortMaster Configuration Guide...
Страница 252: ...Using ISDN for On Demand Connections 15 16 PortMaster Configuration Guide...
Страница 264: ...Using ISDN for Internet Connections 16 12 PortMaster Configuration Guide...
Страница 276: ...Configuration Steps for Dial In Access 17 12 PortMaster Configuration Guide...
Страница 286: ...Configuration Steps for Shared Device Access 18 10 PortMaster Configuration Guide...
Страница 296: ...Troubleshooting a Leased Line Connection 19 10 PortMaster Configuration Guide...
Страница 310: ...B 4 PortMaster Configuration Guide...
Страница 352: ...Command Index Command Index 6 PortMaster Configuration Guide...