Filter Configuration
Defining IP filters
Stinger®
IP2000 Configuration Guide
10-5
Filtering on port numbers
IP filters can specify a port number to be compared to the source or destination port
(or both) in a packet. A port number of zero matches nothing. TCP and UDP port
numbers are typically assigned to services. For a list of well-known port assignments,
see RFC 1700, Assigned Numbers.
Note
For security purposes, Lucent Technologies recommends that you filter all
services from outside your domain that are not required. UDP-based services make
your network particularly vulnerable to certain types of security attacks.
The specified comparison operator determines when a match occurs. For source port
values, filters applied to traffic destined for an external system support the
none
(no
comparison is made) or
eql
(equal to) operators.
For other traffic, the following operators can be used to compare source port or
destination port values:
■
none
(no comparison is made)
■
eql
(equal to)
■
less
(less than)
■
gtr
(greater than)
Note
The
neq
(not equal to) operator is not supported for port comparisons.
The following commands show an illegal rule that uses the unsupported
neq
operator
to forward packets with a source port not equal to 50:
admin> set input-filters 1 valid-entry = yes
admin> set input-filters 1 Type = ip-filter
admin> set input-filters 1 forward = yes
admin> set input-filters 1 ip-filter protocol = 17
admin> set input-filters 1 ip-filter Src-Port-Cmp = neq
admin> set input-filters 1 ip-filter source-port = 50
If the filter containing this unsupported rule is applied to a connection or an
interface, the system logs the following warning message when the connection or the
interface goes into the UP state.
LOG warning, Shelf 1, Controller-1, Time: 02:23:31--
IP Filters: Not equal operation not supported for source port comparison
In this case, the faulty rule specifying the
neq
operator is not applied. The other rules
of the filter are applied to the traffic stream.
The following commands show a legal workaround using the
less
and
gtr
comparison operator in two rules to accomplish the same effect as using the
unsupported
neq
operator:
admin> set input-filters 1 valid-entry = yes
admin> set input-filters 1 Type = ip-filter
admin> set input-filters 1 forward = yes
admin> set input-filters 1 ip-filter protocol = 17
admin> set input-filters 1 ip-filter Src-Port-Cmp = less
admin> set input-filters 1 ip-filter source-port = 50
Содержание Stinger IP2000
Страница 1: ...Stinger IP2000 Configuration Guide Part Number 7820 0976 004 For software version 9 6 0 January 2004 ...
Страница 4: ......
Страница 12: ......
Страница 14: ......
Страница 34: ......
Страница 86: ......
Страница 100: ......
Страница 120: ......
Страница 150: ......
Страница 162: ......
Страница 208: ......