Add a rule for an extended IPv4 ACL
You can add a rule for an extended IPv4 ACL.
To add a rule for an extended IPv4 ACL:
- Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select Security > ACL > Advanced > IP Extended Rules.
If no rules exists, the Extended ACL Rule Table shows the message No rules have been configured for this ACL. If one or more rule exists for the ACL, the rules display in the Extended ACL Rule Table.
- From the ACL ID/Name menu, select the IP ACL for which you want to add a rule.
For extended IP ACLs, this must be an ID in the range from 101 to 199 or a name.
- Click the Add button.
- Configure the following options for the rule:
-
Sequence Number: Enter a number in the range from 1 to 2147483647 that is used to identify the rule. An extended IP ACL can contain up to 1023 rules.
-
Action: Select the ACL forwarding action, which is one of the following:
-
Permit: Forward packets that meet the ACL criteria.
Egress Queue: If the selection from the Action menu is Permit, select the hardware egress queue identifier that is used to handle all packets matching this IP ACL rule. The range of queue IDs is from 0 to 7.
-
Deny: Drop packets that meet the ACL criteria.
This option is available if the selection from the Action menu is Deny.
If you select Enable, logging is enabled for this ACL rule (subject to resource availability on the switch).
If the access list trap flag is also enabled, periodic traps are generated, indicating the number of times the rule was evoked during the report interval, which is fixed at five minutes.
-
-
Interface: For a Permit action, use either a mirror interface or a redirect interface:
-
Select the Mirror radio button and use the menu to specify the egress interface to which the matching traffic stream is copied, in addition to being forwarded normally by the device.
-
Select the Redirect radio button and use the menu to specify the egress interface to which the matching traffic stream is forced, bypassing any forwarding decision normally performed by the device.
-
-
Match Every: Select one of the radio buttons to specify whether all packets must match the selected IP ACL rule:
-
False: Not all packets need to match the selected IP ACL rule. You can configure other match criteria on the page.
-
True: All packets must match the selected IP ACL rule and are either permitted or denied. In this case, you cannot configure other match criteria on the page.
-
-
Protocol Type: From the menu, select a protocol that a packet’s IP protocol must be matched against: IP, ICMP, IGMP, TCP, UDP, EIGRP, GRE, IPINIP, OSPF, PIM, or Other. If you select Other, enter a protocol number from 0 to 255.
-
TCP Flag: If you select TCP from the Protocol Type menu, for each TCP flag, you can specify whether or not a packet’s TCP flag must match. The TCP flag values are URG, ACK, PSH, RST, SYN, and FIN. You can set each TCP flag separately to one of the following options:
-
Ignore: The packet’s TCP flag is ignored. This is the default setting.
-
Set: A packet matches this ACL rule if the TCP flag in this packet is set.
-
Clear: A packet matches this ACL rule if the TCP flag in this packet is not set.
Note: If the RST and ACK flags are set, the option Established is available, indicating that a match occurs if either the RST- or ACK-specified bits are set in the packet’s header. -
-
Src: In the Src field, enter a source IP address, using dotted-decimal notation, to be compared to a packet’s source IP address as a match criterion for the selected IP ACL rule:
-
If you select the IP Address radio button, enter an IP address or an IP address range. You can enter a relevant wildcard mask to apply this criteria. If this field is left empty, it means any.
-
If you select the Host radio button, the wildcard mask is configured as 0.0.0.0. If this field is left empty, it means any.
The wildcard mask determines which bits are used and which bits are ignored. A wildcard mask of 0.0.0.0 indicates that none of the bits are important. A wildcard of 255.255.255.255 indicates that all of the bits are important.
-
-
Src L4: The options are available only if the selection from the Protocol Type menu is TCP or UDP. Use the source L4 port option to specify relevant matching conditions for L4 port numbers in the extended ACL rule.
You can select either the Port radio button or the Range radio button:
-
Port: If you select the Port radio button, you can either enter the port number yourself or select one of the following protocols from the menu:
- The source IP TCP port protocols are Domain, Echo, FTP, FTP data, www-http, SMTP, Telnet, POP2, POP3, and BGP.
- The source IP UDP port protocols are Domain, Echo, SNMP, NTP, RIP, Time, Who, and TFTP.
Each of these values translates into its equivalent port number, which is used as both the start and end of the port range.
Select Other from the menu to enter a port number. If you select Other from the menu but leave the field blank, it means any.
The relevant matching conditions for L4 port numbers are as follows:- Equal: The IP ACL rule matches if the Layer 4 source port number is equal to the specified port number or port key.
- Not Equal: The IP ACL rule matches if the Layer 4 source port number is not equal to the specified port number or port key.
- Less Than: The IP ACL rule matches if the Layer 4 source port number is a lower number than the specified port number or port key.
- Greater Than: The IP ACL rule matches if the Layer 4 source port number is a higher number than the specified port number or port key.
-
Range: If you select the Range radio button, the IP ACL rule matches only if the Layer 4 source port number is within the specified port range. The starting port, ending port, and all ports in between are a part of the Layer 4 port range.
The Start Port and End Port fields identify the first and last ports that are part of the port range. The values can range from 0 to 65535.
You can either enter the port range yourself or select one of the following protocols from the menu:- The source IP TCP port protocols are Domain, Echo, FTP, FTP data, www-http, SMTP, Telnet, POP2, POP3, and BGP.
- The source IP UDP port protocols are Domain, Echo, SNMP, NTP, RIP, Time, Who, and TFTP.
Each of these values translates into its equivalent port number, which is used as both the start and end of the port range. Select Other from the menu to enter a port number. If you select Other from the menu but leave the field blank, it means any.
The wildcard mask determines which bits are used and which bits are ignored. A wildcard mask of 0.0.0.0 indicates that none of the bits are important. A wildcard of 255.255.255.255 indicates that all of the bits are important.
-
-
Dst: In the Dst field, enter a destination IP address, using dotted-decimal notation, to be compared to a packet’s destination IP address as a match criteria for the selected IP ACL rule:
-
If you select the IP Address radio button, enter an IP address with a relevant wildcard mask to apply this criteria. If this field is left empty, it means any.
-
If you select the Host radio button, the wildcard mask is configured as 0.0.0.0. If this field is left empty, it means any.
The wildcard mask determines which bits are used and which bits are ignored. A wildcard mask of 0.0.0.0 indicates that none of the bits are important. A wildcard of 255.255.255.255 indicates that all of the bits are important.
-
-
Dst L4: The options are available only if the selection from the Protocol Type menu is TCP or UDP. Use the destination L4 port option to specify relevant matching conditions for L4 port numbers in the extended ACL rule.
You can select either the Port radio button or the Range radio button:-
Port: If you select the Port radio button, you can either enter the port number yourself or select one of the following protocols from the menu.
- The destination IP TCP port protocols are Domain, Echo, FTP, FTP data, www-http, SMTP, Telnet, POP2, POP3, and BGP.
- The destination IP UDP port protocols are Domain, Echo, SNMP, NTP, RIP, Time, Who, and TFTP.
Each of these values translates into its equivalent port number, which is used as both the start and end of the port range.
Select Other from the menu to enter a port number. If you select Other from the menu but leave the field blank, it means any.
The relevant matching conditions for L4 port numbers are as follows:- Equal: The IP ACL rule matches if the Layer 4 source port number is equal to the specified port number or port key.
- Not Equal: The IP ACL rule matches if the Layer 4 source port number is not equal to the specified port number or port key.
- Less Than: The IP ACL rule matches if the Layer 4 source port number is a lower number than the specified port number or port key.
- Greater Than: The IP ACL rule matches if the Layer 4 source port number is a higher number than the specified port number or port key.
-
Range: If you select the Range radio button, the IP ACL rule matches only if the Layer 4 destination port number is within the specified port range. The starting port, ending port, and all ports in between are a part of the Layer 4 port range.
The Start Port and End Port fields identify the first and last ports that are part of the port range. They values can range from 0 to 65535.
You can either select the enter the port range yourself or select one of the following protocols from the menu:- The destination IP TCP port protocols are Domain, Echo, FTP, FTP data, www-http, SMTP, Telnet, POP2, POP3, and BGP.
- The destination IP UDP port protocols are Domain, Echo, SNMP, NTP, RIP, Time, Who, and TFTP.
Each of these values translates into its equivalent port number, which is used as both the start and end of the port range.
Select Other from the menu to enter a port number. If you select Other from the menu but leave the field blank, it means any.
The wildcard mask determines which bits are used and which bits are ignored. A wildcard mask of 0.0.0.0 indicates that none of the bits are important. A wildcard of 255.255.255.255 indicates that all of the bits are important.
-
-
IGMP Type: If your selection from the Protocol Type menu is IGMP and you specify the IGMP type, the IP ACL rule matches the specified IGMP message type. The range is from 0 to 255. If this field is left empty, it means any.
-
ICMP: If your selection from the Protocol Type menu is ICMP, you can select either the Type or Message radio button:
-
If you select the Type radio button, note the following:
- The Type and Code fields are enabled only if the protocol is ICMP. Use these fields to specify a match condition for ICMP packets:
- If you specify information in the Type field, the IP ACL rule matches the specified ICMP message type. The type number can be from 0 to 255.
- If you specify information in the Code field, the IP ACL rule matches the specified ICMP message code. The code can be from 0 to 255.
- If these fields are left empty, it means any.
-
If you select the Message radio button, from the menu, select the type of the ICMP message to match with the selected IP ACL rule. Specifying a type of message implies that both the ICMP type and ICMP code are specified. The ICMP message is decoded into the corresponding ICMP type and ICMP code within the ICMP type.
The IPv4 ICMP message types are Echo, echo-reply, host-redirect, mobile-redirect, net-redirect, net-unreachable, redirect, packet-too-big, port-unreachable, source-quench, router-solicitation, router-advertisement, TTL-exceeded, time-exceeded, and unreachable.
-
-
Fragments: Either select the Enable radio button to allow initial fragments (that is, the fragment bit is asserted) or leave the default Disable radio button selected to prevent initial fragments from being used.
This option is not valid for rules that match L4 information such as a TCP port number, because that information is carried in the initial packet.
-
Service Type: Select a service type match condition for the extended IP ACL rule.
The possible values are IP DSCP, IP precedence, and IP TOS, which are alternative methods to specify a match criterion for the same service type field in the IP header. Each method uses a different user notation. After you make a selection is made, you can specify the appropriate values.-
IP DSCP: This is an optional configuration. Specify the IP DiffServ Code Point (DSCP) field. The DSCP is defined as the high-order 6 bits of the service type octet in the IP header. Enter an integer from 0 to 63. To select the IP DSCP, select one of the DSCP keywords from the menu. To specify a numeric value, select Other and a field displays in which you can enter numeric value of the DSCP.
-
IP Precedence: This is an optional configuration. The IP precedence field in a packet is defined as the high-order three bits of the service type octet in the IP header. Enter an integer from 0 to 7.
-
IP TOS: This is an optional configuration. The IP ToS field in a packet is defined as all 8 bits of the service type octet in the IP header. The ToS bits value is a hexadecimal number from 00 to 09 and to aa to ff. The ToS mask value is a hexadecimal number from 00 to FF. The ToS mask denotes the bit positions in the ToS bits value that are used for comparison against the IP ToS field in a packet.
For example, to check for an IP ToS value for which bit 7 is set and is the most significant value, for which bit 5 is set, and for which bit 1 is cleared, use a ToS bits value of 0xA0 and a ToS mask of 0xFF.
-
-
Rate Limit Conform Data Rate: Specify the value of the conforming data rate, which is the data rate at which confirming traffic is limited. The range is from 1 to 4294967295 Kbps.
-
Rate Limit Burst Size: Specify the value of the burst size, which is the size at which bursts of traffic above the confirming data rate are permitted. The range is from 1 to 128 Kbps.
-
Time Range: From the Time Range menu, select the timer schedule that must be associated with the rule. For more information about timer schedules, see Timer schedules. If you did not set up any timer schedules, the menu does not present any options.
-
- Click the Apply button.
Your settings are saved.
The Rule Status field in the table shows if the rule is active or inactive. Blank means that no timer schedule is associated with the rule.
- To save the settings to the running configuration, click the Save icon.