Header
Home | Set as homepage | Add to favorites
  Search the Site     » Advanced Search
Sections
Syndication


Blogroll:

||||| ALL Cisco-Network ARTICLES |||||  
CCIE Journey,
The CCIE Journey,


Configure Reflexive Access Lists

Sep 09,2009 by alperen

image

Configure Reflexive Access Lists

Reflexive access lists aren’t applied directly to an interface but, instead, are nested into an extended-named IP access list that’s applied to an interface. Because of the concept of nesting, reflexive access lists don’t have the usual implicit deny-all at the end of the list.

Two primary commands need to be configured in building reflexive access lists: the reflect command and the evaluate command. In addition, the ip reflexive-list timeout command is for setting the idle timer.

The reflect Statement

The keyword reflect in a permit statement is the key to creating the return entries in the temporary access list. The reflect statement in an outbound ACL creates the entries in the inbound ACL when packets matching the condition(s) are recognized.

The ACL that contains the reflect statement can also contain regular permit and deny statements, either before or after the reflect statement. If a match occurs, the packet will be processed but won’t trigger a temporary entry in the reflexive access list.

The basic syntax is

Rtr(config)#ip access-list extended name
Rtr(config-ext-nacl)#permit protocol source destination reflect name [timeout seconds]

protocol

Any TCP/IP protocol that can use named extended ACLs

source and destination

Same as any ACL source and destination, including keywords host and any, wildcard masks, and port numbers

name

Name of temporary reflexive ACL to be created

timeout

Optional idle timer for this line only that overrides the absolute timeout set by the ip reflexive-list timeout global configuration command (default is 300 seconds)

Examples follow the discussion of the evaluate statement in the next section.

The ip Reflexive-list timeout (Seconds) Command

The global mode command ip reflexive-list timeout seconds specifies the length of time reflexive access list statements remain in the ACL if no packets in that session are detected. Each new matching packet rests the timeout timer. If no timeout statement is specified, the default timeout value is 300 seconds. The next example shows changing the idle timeout to two minutes.

Internal Interface

The following is a simple example of a reflexive ACL applied to an internal interface allowing the LAN (192.168.0.0) users access to the Internet and the DNS servers. Typically, this implementation would be used if there’s another network (DMZ) of shared servers. Placing the ACL on the external interface would interfere with the outside access to the servers.

Interface ethernet 1
 ip access-group lan-in in
 ip access-group lan-out out
!
ip access-list extended lan-in
 deny icmp any any
 permit tcp any any eq dns reflect ok-packets timeout 120
 permit tcp any any eq www reflect ok-packets timeout 180
!
ip access-list extended lan-out
 deny icmp any any
 evaluate ok-packets

The two permit/reflect entries set their own timeout, two and three minutes, respectively. Without these timeout settings, they would be governed by the global default (300 seconds).


862 times read

Related news

» Viewing Reflexive Access Lists
by alperen posted on Sep 09,2009
» Using Named and Reflexive Access-Lists
by admin posted on Jul 21,2008
» Reflexive Access Lists
by alperen posted on Sep 09,2009
» Display Dynamic Access Lists
by alperen posted on Sep 09,2009
» Reflexive ACLs access-list cisco
by alperen posted on Jul 26,2009
Did you enjoy this article?
Rating: 5.00Rating: 5.00Rating: 5.00Rating: 5.00Rating: 5.00 (total 17 votes)

comment Comments (0 posted) 

More Top News
CCSP-Cisco Certified Security Professional
Most Popular
Most Commented
Featured Author