Enabling Static Port Filtering

The NW TCPIP FILTERFRAMES command allows you to set filters on incoming frames (packets) based on TCP and UDP port numbers. By enabling port filtering on specific TCP or UDP port numbers, you can prevent unwanted frames from reaching the MCP host while the host continues to receive other frames from the network. You can also use this command to disable filtering (the default) or to inquire on the filtering status of frames that are intended for specific port numbers.

Filtering can be implemented for all 65,535 TCP and UDP port numbers. For example, if you do not want your MCP host to receive frames destined for specific TCP ports, you can use this command to enable filtering for TCP on the port numbers you specify.

Port filtering is implemented uniformly on an MCP host. It does not allow for specific settings for individual network processors. The port numbers you supply must be in the range of 1 through 65535.

The NW TCPIP FILTERFRAMES command without an ENABLE/DISABLE selection serves as the inquiry command, returning the current configuration setup for frame filtering for all TCP and UDP ports. Refer to the Networking Commands and Inquiries Help for additional details on the syntax and usage of this command.

The following command enables filtering on the TCP port numbers or range of port numbers you specify:

NW TCPIP FILTERFRAMES ENABLE TCP [EXCEPT/ALL] [PORT] <port specification>

The following command disables filtering on the UDP port numbers or range of port numbers you specify:

NW TCPIP FILTERFRAMES DISABLE UDP [EXCEPT/ALL] [PORT] <port specification>

The variable is described as follows.

Variable

Description

<port specification>

The port numbers or range of port numbers for which filtering is enabled or disabled.