Configuring Filters
9-7
Creating Filters
Filtering TCP and UDP Packets
TCP Packets
You can filter TCP packets by source and destination IP address, or by TCP port number.
Appendix B, “TCP and UDP Ports and Services,” lists port numbers commonly used for
UDP and TCP port services. For a more complete list, see RFC 1700.
To create a TCP filter rule, use the following command—entered on one line:
Command>
set filter
Filtername RuleNumber
permit
|
deny
[
Ipaddress
/
NM
Ipaddress
(
dest
)/
NM
]
tcp
[
src
eq
|
lt
|
gt
Tport
] [
dst
eq
|
lt
|
gt
Tport
]
[
established
] [
log
]
UDP Packets
You can filter UDP packets by source and destination IP address, or by UDP port
number. Appendix B, “TCP and UDP Ports and Services,” lists port numbers commonly
used for UDP and TCP port services. For a more complete list, see RFC 1700.
To create a UDP filter rule, use the following command—entered on one line:
Command>
set filter
Filtername
RuleNumber
permit
|
deny
[
Ipaddress
/
NM
Ipaddress
(
dest
)/
NM
]
udp
[
src eq
|
lt
|
gt
Tport
] [
dst eq
|
lt
|
gt
Tport
]
[
established
] [
log
]
Creating IPX Filters
You can filter IPX packets in the following ways:
•
Source and/or destination IPX network number
•
Source and/or destination IPX node address
•
Source and/or destination IPX socket number
To create an IPX filter rule, use the following command—entered on one line:
Command>
set ipxfilter
Filtername RuleNumber
permit
|
deny
[
srcnet
Ipxnetwork
]
[
srchost
Ipxnode
] [
srcsocket eq
|
gt
|
lt
Ipxsock
] [
dstnet
Ipxnetwork
]
[
dsthost
Ipxnode
] [
dstsocket eq
|
gt
|
lt
Ipxsock
]
Summary of Contents for PortMaster
Page 16: ...Contents xvi Configuration Guide for PortMaster Products...
Page 26: ...Subscribing to PortMaster Mailing Lists xxvi PortMaster Configuration Guide...
Page 32: ...Basic Configuration Steps 1 6 PortMaster Configuration Guide...
Page 114: ...Configuring WAN Port Settings 6 12 PortMaster Configuration Guide...
Page 128: ...Configuring Login Users 7 14 PortMaster Configuration Guide...
Page 158: ...Restricting User Access 9 16 PortMaster Configuration Guide...
Page 168: ...Configuring Ports for Modem Use 10 10 PortMaster Configuration Guide...
Page 222: ...Frame Relay Subinterfaces 13 16 PortMaster Configuration Guide...
Page 236: ...Troubleshooting a Synchronous V 25bis Connection 14 14 PortMaster Configuration Guide...
Page 252: ...Using ISDN for On Demand Connections 15 16 PortMaster Configuration Guide...
Page 264: ...Using ISDN for Internet Connections 16 12 PortMaster Configuration Guide...
Page 276: ...Configuration Steps for Dial In Access 17 12 PortMaster Configuration Guide...
Page 286: ...Configuration Steps for Shared Device Access 18 10 PortMaster Configuration Guide...
Page 296: ...Troubleshooting a Leased Line Connection 19 10 PortMaster Configuration Guide...
Page 310: ...B 4 PortMaster Configuration Guide...
Page 352: ...Command Index Command Index 6 PortMaster Configuration Guide...