ProCurve 2610 Manual page 296

2610 / 2610-pwr series
Table of Contents

Advertisement

Access Control Lists (ACLs)
Editing ACLs and Creating an ACL Offline
no ip access-list extended 103
ip access-list extended "103"
deny tcp 0.0.0.0 255.255.255.255 10.10.10.2 0.0.0.0 eq 23 log
permit ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255
exit
Figure 9-26. Example of an Offline ACL File Designed To Replace An Existing ACL
9-64
To create a new ACL, just open a text file in the appropriate directory
on a TFTP server accessible to the switch.
2. Use the text editor to create or edit the ACL(s).
3. Use copy tftp command-file to download the file as a list of commands to
the switch.
Creating an ACL Offline
Use a text editor that allows you to create an ASCII text file (.txt).
If you are replacing an ACL on the switch with a new ACL that uses the same
number or name syntax, begin the command file with a "no" command to
remove the earlier version of the ACL from the switch's running-config file.
Otherwise, the switch will append the new ACEs in the ACL you download to
the existing ACL. For example, if you plan to use the copy command to replace
ACL "103", you would place this command at the beginning of the edited file:
no ip access-list extended 103
For example, suppose that you wanted to create an extended ACL to fulfill
the following requirements (Assume a subnet mask of 255.255.255.0.):
ID: 160
Deny Telnet access to a server at 10.10.10.100 from these three IP
addresses on port 2 (with ACL logging):
10.10.20.17
10.10.20.23
10.10.20.40
Allow any inbound access from all other addresses on port 2:
Removes an existing ACL and replaces it
with a new version with the same identity.
To append new ACEs to the ACL instead of
replacing it, you would omit the first line.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents