Access-list [list number] [permit | deny] [protocol] [source address] [source-mask] [destination address] [destination-mask] [operator] [port] [log]
1.List Number-A number between 100 and 199 (Think of it as the name of the list.)
2.Permit | Deny-Whether to permit or deny this packet of information if conditions match
3.Protocol-Type of protocol for this packet (i.e., IP, ICMP, UDP, TCP, or protocol number)
4.Source Address-Number of the network or host that the packet is from (Use the
dotted-decimal format 192.168.1.12 or use the keyword ANY as an abbreviation for an address of 0.0.0.0 255.255.255.255 or use HOST and the dotted-decimal address.)
5.Source Mask-The network mask to use with the source address (Cisco masks are a little different, 0 = octet must match exactly; 255 = octet is not significant or doesn't matter.)
6.Destination Address-The address that the packet is going to, or ANY
7.Destination Mask-The network mask to use with the destination address (if you specify one)
8.Operator (optional entry)-This applies to TCP or UDP ports only
eq=equal lt=less than gt=greater than neq=not equal
range=a range of ports; you must specify two different port numbers est=established connections
9.Port (optional entry)-TCP/UDP destination port number or service
10.Log-Whether to log (if logging is enabled) this entry to the console
A sample inbound ACL would be:
access-list 100 deny ip 10.0.0.0 0.255.255.255 any log access-list 100 deny ip 172.16.0.0 0.15.255.255 any log access-list 100 deny ip 192.168.0.0 0.0.255.255 any log access-list 100 deny ip any host 127.0.0.1 log
access-list 100 permit ip any [your network IP address] [your network mask] est access-list 100 deny ip [your network IP address] [your network mask] any log access-list 100 deny tcp any any eq 22222
access-list 100 deny tcp any any range 60000 60020 log access-list 100 deny udp any any eq snmp log access-list 100 permit ip any any
Reference: http://articles.techrepublic.com.com/5100-1035_11-1058307.html
Leading the way in IT testing and certification tools, www.testking.com