Brocade Communications Systems 12.4.00a Manual De Usuario

Descargar
Página de 226
62
ServerIron ADX Security Guide
53-1002440-03
Configuring numbered and named ACLs
2
NOTE
This parameter applies only if you specified icmp as the <ip-protocol> value.
The log parameter enables SNMP traps and Syslog messages for packets denied by the ACL.
You can enable logging on ACLs and filters that support logging even when the ACLs and filters are 
already in use. To do so, re-enter the ACL or filter command and add the log parameter to the end 
of the ACL or filter. The software replaces the ACL or filter command with the new one. The new ACL 
or filter, with logging enabled, takes effect immediately.
Configuring standard or extended named ACLs 
To configure a named IP ACL, use the following CLI method.
The commands for configuring named ACL entries are different from the commands for configuring 
numbered ACL entries. The command to configure a numbered ACL is access-list. The command 
for configuring a named ACL is ip access-list. In addition, when you configure a numbered ACL 
entry, you specify all the command parameters on the same command. When you configure a 
named ACL, you specify the ACL type (standard or extended) and the ACL number with one 
command, which places you in the configuration level for that ACL. Once you enter the 
configuration level for the ACL, the command syntax is the same as the syntax for numbered ACLs. 
The following examples show how to configure a named standard ACL entry and a named extended 
ACL entry. 
Configuration example for standard ACL
To configure a named standard ACL entry, enter commands such as the following.
The commands in this example configure a standard ACL named “Net1”. The entries in this ACL 
deny packets from three source IP addresses from being forwarded on port 1/1. Since the implicit 
action for an ACL is “deny”, the last ACL entry in this ACL permits all packets that are not explicitly 
denied by the first three ACL entries. For an example of how to configure the same entries in a 
numbered ACL, refer to 
“Configuring standard numbered ACLs”
 on page 55.
Notice that the command prompt changes after you enter the ACL type and name. The “std” in the 
command prompt indicates that you are configuring entries for a standard ACL. For an extended 
ACL, this part of the command prompt is “ext“. The “nacl” indicates that are configuring a named 
ACL.
Syntax: ip access-list extended | standard <string> | <num>
The extended | standard parameter indicates the ACL type. 
ServerIronADX(config)# ip access-list standard Net1  
ServerIronADX(config-std-nacl)# deny host 209.157.22.26 log
ServerIronADX(config-std-nacl)# deny 209.157.29.12 log
ServerIronADX(config-std-nacl)# deny host IPHost1 log
ServerIronADX(config-std-nacl)# permit any 
ServerIronADX(config-std-nacl)# exit 
ServerIronADX(config)# int eth 1/1
ServerIronADX(config-if-1/1)# ip access-group Net1 out