[previous] Clear Spacer [next]

Configuring Filters


Introduction

The OfficeConnect Remote 840 provides an extensive set of data filtering capabilities. For instance, filters can accept packets only from specific addresses to provide added security, or filters can be added to reduce network traffic and improve overall performance.

This chapter contains information on the filtering capabilities for your OfficeConnect Remote 840. It is divided into the following sections:


Filtering Overview

Filters can provide added security by accepting packets only from specific addresses or they can be added to reduce network traffic and improve overall performance.

Packet filters control inter-network data transmission by accepting or rejecting the passage of specific packets through network interfaces based on packet header information. When data packets are received by a network interface such as an Ethernet LAN or WAN port, a packet filter analyzes packet header information against a set of rules you define. A filter then lets the packet pass through or discards it.


Filtering Capabilities

The OfficeConnect Remote 840 provides an extensive set of data filtering capabilities. The OfficeConnect Remote 840 supports the following filtering capabilities:

Filter Classes

The OfficeConnect Remote 840 supports three filter classes:

Each filter class can be identified further by the following types:

Filter Types

Filters can be classified by the following types:

Data Filters

Data filters control network access based on the protocol, source / destination address, and port designation (e.g., TCP and UDP port designations) of the packet. The following table describes the data filters supported.

Table 12¯1 Data Filters

Filter

Action

IP

Controls network access based on the protocol and source/destination address. IP filter rules allow filtering based on the source address, destination address, protocol type, source port, and port designation of the IP packet.

IPX

Controls network access based on the protocol and source/destination network. IPX filter rules allow filtering based on the source network, destination network, protocol type, source socket, destination socket, source node, and node designation of the IPX packet.

Bridge

Controls network access based on the source and destination MAC addresses.

Advertisement Filters

Advertisement filters operate on network protocol packets that contain varying information such as SAP or RIP. Filtering of these packets is performed by the specific protocol process. The following table describes the advertisement filters supported:

Table 12¯1 Advertisement Filters

Filter

Action

IP-RIP

Controls the content of IP Routing Information Protocol (RIP) packets that are sent out or received on specific ports. The IP RIP filtering process filters addresses from the RIP packet upon transmission, and does not enter routes into the routing table upon receipt.

IPX-SAP

Controls the content of Service Advertising Protocol (SAP) packets that are sent out or received on specific ports. The IPX-SAP filter rules allow filtering on service type, server name, network address, node address, and socket number fields of the service entry. The forwarding process uses the filter information to prevent the service information from being included in the SAP packet.

IPX-RIP

Controls the content IPX RIP packets that are sent out or received on specific ports. The IPX RIP filtering process filters addresses from the RIP packet upon transmission, and does not enter routes into the routing table upon receipt.

Generic Filters

Generic filters are protocol-independent and are specified by byte and offset values in a packet. Packets are filtered by comparing each packet's offset value and byte information with the values that you define in the filter. The router will accept or reject the packet based on the result.

Creating generic filters can be a complex task. Only experienced users should employ generic filters, and strictly in cases where data and advertising filters cannot provide the filtering capabilities that you require.


Creating Filters Overview

Filters can be set one of two ways in the OfficeConnect Remote 840:

The more flexible way of setting filters is through the Command Line Interface (CLI). Both data and advertisement filters can be set using CLI.

For more information on accessing CLI, refer to the OfficeConnect Remote 840 SDSL Router CLI User's Guide.

If you want to set up filters using the OfficeConnect Remote 840 Manager, go to the "Step-by-Step Guide to Creating Filters Using the OfficeConnect Remote 840 Manager"section.


Creating Filters Using the OfficeConnect Remote 840 Manager

The OfficeConnect Remote 840 Manager supports data filters only (not advertisement filters). Data filters are used to remove packets from the normal flow of data traffic. They can be applied to IP, IPX, and/or Bridge traffic.

Filters affect only those protocols which are currently active in the OfficeConnect Remote 840.

Therefore, if the unit is set up to Bridge only, only bridge filters have an effect on the data traffic; IP and IPX filters have no effect even if IP or IPX traffic is being bridged. Internally (for greater efficiency), filters are examined when a data packet is being processed by the protocol, not as the packet enters or exits the unit (even though when filters are set up, it looks like they take effect at the interface level). For example, when IPX traffic is bridged, it is processed by the bridge protocol in the unit, not by the IPX protocol. Therefore, a filter on IPX traffic would have to be a bridge filter in this example.

There are two sets of criteria used in determining whether a filter affects a packet.

The first is the direction/location of the packet. There are four static direction/locations on which filters can be activated: incoming LAN traffic, outgoing LAN traffic, incoming WAN traffic and outgoing WAN traffic. Additionally, there are two for each Remote Site, traffic coming from and going to each one.

The second criteria is whether the packet contains data that matches the condition(s) in the filter. Conditions are defined based on protocol specific information such as IP source address or IPX source socket number.

All filters are set up to discard packets (data filters). However, there are two ways of specifying these actions: a "negative" and a "positive" way. The negative action specifies that the packet or information is discarded if the filter criteria met. The positive action specifies that the packet or information is kept if the criteria is met. The positive way implies that all packets or information not meeting the criteria are discarded. Either method can be used for most filters. However, one or the other is almost always more logical.

For example, imagine a small office with 20 workstations on the LAN. The LAN is connected to a remote corporate office using an OfficeConnect Remote 840. Two of the LAN workstations are used by contractors who are not given access to the corporate office. To prevent traffic from the two workstations from passing through the OfficeConnect Remote 840, a filter is set up on the incoming/LAN direction/location. The most logical filter is a "negative" filter that says "discard packet if IP source address is equal to xxx.xxx.xxx.xxx or IP source address is equal to xxx.xxx.xxx.yyy". Of course you could write a "positive" filter which would say "forward packet if IP source address is equal to <list of the 18 IP addresses that are allowed to send traffic>". However, you can see that the negative filter is shorter (more efficient to apply) and easier to write and therefore the better one to use.

Each direction/location can have up to fifteen filters. Each filter can have up to six conditions. As you create the filter, you can select whether to logically "and" or "or" conditions together. If you need a filter with more than six conditions, you can create multiple filters that will be looked at by the OfficeConnect Remote 840 as if they were one filter. The only requirement is that the basic filter information (i.e., the protocol and the action) must be the same in each of the filters. The filters will be "or"ed together when they are merged internally.

Example: To prevent seven individual PCs on the LAN from accessing a remote site, create the following two filters:

Filter for Packets: Going to Remote Site Vienna
Filter Name: Block PCs 1-6 Protocol: IP Enabled: Yes
Discard Packet if IP Source Address is Equal to 192.168.200.41
or if IP Source Address is Equal to 192.168.200.50
or if IP Source Address is Equal to 192.168.200.66
or if IP Source Address is Equal to 192.168.200.42
or if IP Source Address is Equal to 192.168.200.88
or if IP Source Address is Equal to 192.168.200.90

Filter Name: Block PC 7 Protocol: IP Enabled: Yes
Discard Packet if IP Source Address is Equal to 192.168.200.102

The filters BLOCK PCs 1-6 and BLOCK PC 7 both use the IP protocol and the same action, "Discard Packet if..."

Therefore, when they are applied, they are "or"ed together. The resultant filtering is the same as you would get if you were allowed to create a single filter that contained all seven conditions.

OfficeConnect Remote 840 Manager Filter Screens

The OfficeConnect Remote 840 Manager (HTML) filter screens provide an easy to use menu system for specifying the direction/location of the traffic to be checked and for creating and editing filter conditions. The filter screens are set up to allow you to create sentences that describe the filter action. For example, a filter that prevents IPX packets from Jan and Bob's PCs from being sent to Remote Site Vienna would look something like this:

Filter for Packets: Going to Remote Site Vienna
Filter Name: Block Jan and Bob
Discard Packet if IPX Source Node is Equal to 00-20-69-00-23-99
or if IPX Source Node is Equal to 00-20-69-11-45-88

The sentence is built up over a number of screens. Most filters can be easily created by selecting from the provided condition sentences. Each sentence has pull down boxes for selecting condition keywords (IP Destination Address / IP Source Address, etc.) and condition operations (is Equal to / is Not Equal to, etc.) Where appropriate, the additional flexibility of generic filters is available. With generic filters, you specify an offset into the packet and the hex value to compare the packet content to. This allows you to go beyond the bounds of the "canned" condition sentences.

An overview and description of each filter screen is provided below:

You can get out of any screen by using the HTML side bar links. If you are in the process of creating a new filter when you do this, and haven't yet pressed the Save Filter button on the Filter Condition Summary screen, the new filter information is lost.

Filter Screens

Table 12¯1 Basic IP Condition

Destination Address

Source Address

Is Equal to

Is Not Equal to

_____IP address

Destination Network

Source Network

Is Equal to

Is Not Equal to

_____IP address

_____(Mask)

Advanced IP Condition has the following condition sentences to select from:

Table 12¯1 Advanced IP Condition

Destination Address

Source Address

Is Equal to

Is Not Equal to

____IP address

Destination Network

Source Network

Is Equal to

Is Not Equal to

_____IP address

_____(Mask)

Protocol Type

Is Equal to

Is Not Equal to

TCP

UDP

ICMP

TCP

Destination Port

Source Port

is Equal to

is Not Equal to

is Greater Than

is Greater Than or Equal to

is Less Than

is Less Than or Equal to

_____

(1 - 65536)

UDP

Destination Port

Source Port

is Equal to

is Not Equal to

is Greater Than

is Greater Than or Equal to

is Less Than

is Less Than or Equal to

____

(1 - 65536)

Generic Byte Filter

Origin: IP Header / IP Data

Offset ____ (0- 1514 bytes)

Length ____ (1-48 bytes)

Masked With ___ (0's or F's*)

is equal to

____

(hex value**)

Basic IPX Condition has the following condition sentences to select from:

Table 12¯1 Basic IPX Condition

Destination Node

Source Node

Is Equal to

Is Not Equal to

_____IPX network address (1-FFFF)

Destination Network

Source Network

Is Equal to

Is Not Equal to

_____IPX node [MAC] address:

xx-xx-xx-xx-xx-xx

Advanced IPX Condition has the following condition sentences to select from:

Table 12¯1 Advanced IPX Condition

Destination Node

Source Node

Is Equal to

Is Not Equal to

_____IP address

Destination Network

Source Network

Is Equal to

Is Not Equal to

_____IP address

_____(Mask)

Destination Socket

Source Socket

is Equal to

is Not Equal to

is Greater Than

is Greater Than or Equal to

is Less Than

is Less Than or Equal to

_____

(1 - FFFF)

Destination Port

Source Port

is Equal to

is Not Equal to

is Greater Than

is Greater Than or Equal to

is Less Than

is Less Than or Equal to

_____

(1 - 65536)

Generic Byte Filter

Origin: IP Header / IP Data

Offset ____ (0- 1514 bytes)

Length ____ (1-48 bytes)

Masked With ___ (0's or F's*)

is equal to

_____

(hex value**)

*whose length is 2x Length field: two mask numbers for each byte)
** whose length is not greater than 2x Length field.


Step-by-Step Guide to Creating Filters Using the OfficeConnect Remote 840 Manager

Filters can be tricky to define so spend time before accessing the screens thinking about what you want the filter to do.

First determine which direction and location of the data path you want to apply the filter to: for example, do you want to filter packets as they enter from the Ethernet ports, or as they go to all of the Remote Sites, or as they exit to go to a specific Remote Site?

Next, think about the desired results of the filtering, that is, which data packets are to be removed from the traffic (ex: if bridging, perhaps all IPX packets, or if routing IP, maybe all packets from a specific machine or group of machines.)

For more information on designing filters, see "Filtering Overview".

1 .   Go to Configuration > Global > Filters. Select Create/Modify Filters. On the Create/Modify screen, select the direction/location of the data traffic where the filter will be activated. Press the Next button to bring up the Filter Summary screen for this direction/location.

2 .   On the Filter Summary screen, press the Create button to bring up the Filter Action screen.

3 .   On the Filter Action screen, enter a name for the filter and select the desired protocol. Then press the Next button to bring up the appropriate protocol condition screen.

4 .   On the protocol condition screen, select the action of the filter (discard or forward packet) and the first condition sentence for your filter.

5 .   Use the pull down boxes as needed to create your filter by selecting keywords (such as IP Destination Address / IP Source Address) and operations (is Equal to / is Not Equal to).

6 .   Then enter the value to be filtered against, that is, the IP address, Port number, etc. that finishes the condition information needed for the filter. Then press the Next button to see the Condition Summary screen.

From the Condition Summary screen, add more conditions as needed by selecting a condition number and pressing the Add button. This takes you back to the protocol condition screen.

This screen is the same as for the first condition except that now you can choose to logically "And" or "Or" this new condition to the previous condition.

As before, select the condition sentence, choose the keyword and operation and enter the filter value then press "Next" to see the Condition Summary screen again.

7 .   When you are satisfied that this filter is complete, press Save Filter on the Condition Summary screen. This causes the OfficeConnect Remote 840 to write the filter to file and activates the filter. You are returned to the Filter Summary screen. Now you can add another filter if you want.

Modifying an Existing Filter Using the OfficeConnect Remote 840 Manager

1 .   Go to Configuration > Global > Filters.

2 .   Select Create/Modify Filters. On the Create/Modify screen, select the direction/location of the data traffic where the filter is activate.

3 .   Press the Next button to bring up the Filter Summary screen for this direction/location.

4 .   To delete or modify the filter, select the filter from the pull down box and press Delete/Modify. This brings up the Filter Delete/Modify screen. You can delete the filter, modify the name, the enable/disable status and/or edit the conditions from this screen.

Turning a Filter Off Using the OfficeConnect Remote 840 Manager

1 .   Go to Configuration > Global > Filters.

2 .   Select Create/Modify Filters. On the Create/Modify screen, select the direction/location of the data traffic where the filter is active.

3 .   Press the Next button to bring up the Filter Summary screen for this direction/location.

4 .   To turn off an individual filter, select that filter in the pull down box and press the Delete/Modify button. On the Filter Modify screen, disable the filter by unchecking the Enable Filter checkbox and pressing Modify. Return to the summary screen by pressing < Prev.

[previous] Clear Spacer [next]