December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to use a reflexive ACL, embedded in a named ACL.
A basic named ACL is similar to the numbered ACLs that we discussed earlier in this chapter. They can work like either Standard or Extended IP ACLs:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip access-list standardRouter1(config-std-nacl)#STANDARD-ACLremarkRouter1(config-std-nacl)#This is a standard ACLpermit any logRouter1(config-std-nacl)#exitRouter1(config)#ip access-list extendedRouter1(config-ext-nacl)#EXTENDED-ACLremarkRouter1(config-ext-nacl)#This is an extended ACLdeny tcp any any eq wwwRouter1(config-ext-nacl)#permit ip any any logRouter1(config-ext-nacl)#exitRouter1(config)#interfaceRouter1(config-if)#Serial0/1ip access-groupSTANDARD-ACLinRouter1(config-if)#exitRouter1(config)#endRouter1#
You can embed a reflexive ACL inside of a named Extended IP ACL. The reflect keyword defines the reflexive ACL rule, and the evaluate command executes it. The following example filters ICMP packets so that you can initiate a PING test from one side of the network, but not the other:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip access-list extendedRouter1(config-ext-nacl)#PING-OUTpermit icmp any any reflectICMP-REFLECTtimeoutRouter1(config-ext-nacl)#15permit ip any anyRouter1(config-ext-nacl)#exitRouter1(config)#ip access-list ...