Shiva Logo

IPFilters and UserIPFilters Sections

You can use the [IPFilters] and [UserIPFilters] sections of the configuration file to configure IP filter definitions. You may also define IP filters in the [Users] section for a specific user or in the [PhoneGroupn:IP] section for a particular phone group.

Shiva devices use IP filters to filter remote clients based on source address, protocol, and port number. All IP packets, both incoming and outgoing between the LAN and the remote client, are filtered as they are received from and sent to the client application.

In the [UserIPFilters] section, you must configure each filter that is named in the [Users] section. When you configure a filter in the [UserIPFilters] section, any user may use this filter by specifying the filter name. Optionally, you may configure an IP filter directly in the [Users] section if the filter is to be used by that user only.

In the [IPFilters] section, you must configure each IP filter that is named in a [PhoneGroupn:IP] section. When you configure a filter in the [IPFilters] section, any phone group may use this filter by specifying the filter name. Optionally, you may configure an IP filter directly in a [PhoneGroupn:IP] section if the filter is to be used by that phone group only.

The command shell has a command, show ip filter, that displays the currently configured IP filters.

Parameter

<ip filter name>

Description

Specifies an IP filter

Syntax

See IP Filter Syntax that follows.

Default

Unset

Related Parameter

To enable a filter (defined in the [IPFilters] section) for a phone group, you must configure the IPFilter parameter in the [PhoneGroupn:IP] section.

Reboot

Required

IP Filter Syntax

Specify each IP filter on a separate line, using the following format:

<IP filter name>=<permission>,<address identifier>[!]=|
[,<protocol>][,<port>][,log or nolog]

Note: The square brackets ([ ]) indicate optional parameters. The pipe symbol ( | ) indicates that the command continues on the next line.

Syntax Definition

<IP filter name>

Logical name for the filter

<permission>

Specify one of the following permission types for the filter:

  • · permit_in = Permit incoming packets
  • · permit_out = Permit outgoing packets
  • · deny_in = Deny incoming packets
  • · deny_out = Deny outgoing packets

<address identifier>

Specify SRC or DST as follows:

SRC = x means that the Shiva® device filters packets that have source address x.

SRC != x means that the Shiva device filters packets that do not have source address x.

DST = x means that the Shiva device filters packets that have destination address x.

DST != x means that the Shiva device filters packets that do not have destination address x.

See the Value of x table that follows.

<protocol>

Specify one of the protocol values from the Protocol table that follows to have the IP filter look for packets of the specified protocol.

<port>

Specify one of the port values from the Port table that follows to have the IP filter look for packets on the specified port.

Note: You must use the port parameter only when the protocol is TCP or UDP. Do not specify this parameter otherwise.

<log or nolog>

Specify log to have the Shiva device always log a message when a filter match is found, even if VerboseSyslog is set to 0 in the System section.

Specify nolog to have the Shiva device not log a message when a filter match is found, unless the VerboseSyslog parameter is set to 1 in the [System] section.

Note: Nolog is the default value.

The following table describes values for "x" in the address identifier field of the IP filter definition:

Value of x Description

<IP address[:IP mask]>

Specifies the IP address in dotted-decimal notation

In the optional IP mask, set ones in the bits to be compared.

Note: Setting a mask of all zeros results in a match of every address (nothing is compared).

IP host name

Specifies the name of an IP host as defined in the [IPHOSTS] section

DNS

Specifies a DNS host

ALL

Specifies all hosts

Note: This is equivalent to the following IP address and mask:
255.255.255.255:0.0.0.0 or 1.1.1.1: 0.0.0.0

NONE

Specifies no hosts

Note: This is equivalent to the following IP address and mask: 0.0.0.0:255.255.255.255

NEGOTIATED

Specifies that the IP address is negotiated during IPCP

Note: This is equivalent to the following IP address and mask: 254.254.254.254: 0.0.0.0

The following table describes values for the protocol field of the IP filter definition:

Protocol Description

UDP

UDP packet

TCP

TCP packet

ICMP

ICMP packet (ping)

<valid IP protocol ID>

Packet of any valid IP protocol

any

All packets

Note: Any is the default value.

The following table describes values for the port field of the IP filter definition:

Port Description

equal = <port number>

Filter matches if the source or destination port is equal to the specified port number

less = <port number>

Filter matches if the source or destination port is less than or equal to the specified port number

greater = <port number>

Filter matches if the source or destination port is greater than or equal to the specified port number

diff = <port number>

Filter matches if the source or destination port is different to the specified port number

any

No checking on the port number

Related Information

Parameter Sections Overview

PhoneGroup*:IP Sections

Configuring IP Filters

[ Top of Page . . . ]