Configuring packet filters and TCP Wrappers

Editing filter elements

To define an element of a packet filter using the Packet Filter Manager:

  1. For a LAN interface, select one of:

    Allow
    Allow packets which match the filter to pass through the interface.

    Block
    Stop packets which match the filter from passing through the interface.

    For a WAN (PPP) interface, select one of:

    Match
    Allow packets which match the filter to pass through the interface (passin or passout), to bring up the interface (bringup), or to keep up the interface open (keepup).

    Match except
    Allow packets which do not match the filter to pass through the interface (passin or passout), to bring up the interface (bringup), or to keep the interface open (keepup).


    NOTE: For passin and passout filters, Match is equivalent to Allow, and Match except is equivalent to Block. The difference in terminology arises because the PPP bringup and keepup filters do not drop packets. bringup decides which packets can bring up a PPP interface. keepup decides which packets can reset the interface's idle timer.

  2. Select the services and ports to which you want the filter element to apply in one of the following ways:

  3. To add a service or port to the list, click on Add. Enter the details of the service or port using the following format:
    port/protocol	[name]
    
    port is the port number of the service, protocol is one of tcp or udp, and the optional name identifies the service. Click on OK to add your entry to the list of ports and services.

    To modify the definition of a service or port, select it, and then click on Modify. Edit the entry and then click on OK.

    To delete one or more services or ports from the list, select them, and then click on Delete.


    NOTE: You cannot modify or delete entries which have been obtained from the services(4tcp) file, or which are used by other filter elements.

  4. Select the direction of packets to which the filter element will be applied:


    NOTE: If you want to specify different origin and destination addresses, you must define a separate filter element (From and To) for each.

  5. Specify the test to be applied to these addresses in one of the following ways:

  6. If you selected Specific or All except in the previous step, click on Add to enter source or destination addresses which are not already listed. Select whether the address is for a host or network, enter an IP address or a resolvable name for a host or network, and then click on OK to add it to the list.


    NOTE: Network IP addresses must be specified without the trailing 0's in what would normally be the host portion of the address. For example, you would specify 200.20.34 rather than 200.20.34.0 (assuming that the network mask is 255.255.255.0).

    To modify an address, select it from the list, and then click on Modify. Edit the entry and then click on OK.

    To remove one or more addresses from the list, select them, and then click on Delete.


    NOTE: You cannot delete an address from the list if it is used by other filter elements.

When you have completed the definition of a filter element, click on Next to edit any additional filter elements.

If you want to edit a previously defined filter element after completing the definition of this filter element, click on Back.

To remove an element from a filter definition, click on Delete.

To stop editing filter elements and save the complete filter, click on Finish. The filter will not become active until you apply it to an interface by selecting Filter -> Load.


© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999