Chapter 19: Access Control List Configuration Guide

These selection criteria are specified as fields of an ACL rule. The following syntax description shows the fields of an IP ACL rule:

acl <name> permitdeny ip <SrcAddr/Mask> <DstAddr/Mask> <SrcPort> <DstPort> <tos> <tos-mask> [accounting]

Note: The acl permitdeny ip command restricts traffic for all IP-based protocols, such as TCP, UDP, ICMP, and IGMP. Variants of the acl permitdeny ip command exist that allow you to restrict traffic for a specific IP-based protocol; for example, the acl permitdeny tcp command lets you restrict only TCP traffic. These variants have the same syntax and fields as the acl permitdeny ip command.

The following syntax description shows the fields of an IPX ACL rule:

acl <name> permitdeny ipx <SrcAddr> <SrcSocket> <DstAddr> <DstSocket> <SrcNetMask> <DstNetMask>

Each field in an ACL rule is position sensitive. For example, for a rule for TCP traffic, the source address must be followed by the destination address, followed by the source socket and the destination socket, and so on.

Not all fields of an ACL rule need to be specified. If a particular field is not specified, it is treated as a wildcard or “don't care” condition. However, if a field is specified, that particular field will be matched against the packet. Each protocol can have a number of different fields to match. For example, a rule for TCP can use socket port numbers, while a rule for IPX can use a network node address.

Since each field is position sensitive, it may be necessary to “skip” some fields in order to specify a value for another field. To skip a field, use the keyword any. For example, the following ACL rule denies SMTP traffic between any two hosts:

acl nosmtp deny tcp any any smtp smtp

Note that in the above example, the <tos> (Type of Service) field is not specified and is treated as a wildcard. The any keyword is needed only to skip a wildcard field in order to explicitly specify another field that is further down in the rule. If there are no other fields to specify, the any keyword is not necessary. For example, the following ACL permits all IP traffic to go through:

acl yesip permit ip

SmartSwitch Router User Reference Manual

261

Page 287
Image 287
Cabletron Systems 9032578-05 manual SmartSwitch Router User Reference Manual 261