30
2011
Time-Based access lists
An access list is a sequential list consisting of at least one permit statement and possibly one or more deny statements that apply to IP addresses and possibly upper-layer IP protocols. Time-based ACLs is a Cisco feature introduced in the Release 12.0.1.T to allow access control based on time. The time range, identified by a name, can be ‘absolute‘ or ‘periodic‘.
Use time-based access list is easy and can be useful in some situations. To implement it, you need:
- Define time-range
- Define ACL, where the time-range is applied to
- Apply ACL; for istance: to the interface, to the vty, to the control-plane, …
Examples #1: Periodic Time
Permit SSH router access on the weekends from 8:00 to 22:00.
- Define time-range
Ciscozine(config)#time-range time-ssh Ciscozine(config-time-range)#periodic weekend 08:00 to 22:00 - Define ACL
Ciscozine(config)#ip access-list extended permit-ssh Ciscozine(config-ext-nacl)#permit tcp any any eq 22 time-range time-ssh - Apply ACL
Ciscozine(config)#line vty 0 4 Ciscozine(config-line)#access-class permit-ssh in
Example #2: Absolute time
Block SNMP protocol from 1st March 2011:
- Define time-range
Ciscozine(config)#time-range time-snmp Ciscozine(config-time-range)#absolute start 00:00 1 March 2011 - Define ACL
Ciscozine(config)#ip access-list extended deny-snmp Ciscozine(config-ext-nacl)#deny udp an an eq snmp time-range time-snmp Ciscozine(config-ext-nacl)#permit ip any any - Apply ACL
Ciscozine(config)#interface fastEthernet 0/1 Ciscozine(config-if)#ip access-group deny-snmp in
Remember: To check if a time-based access lists is active or not, use the ‘show ip access-list’ or the ‘show time-range’ command
Below the video with the two examples:
References: http://www.cisco.com/…products_tech_note.shtml#timebasedtimerange
Related Posts
- Senior Executives Say Cloud-Based Collaboration Leads to Higher Business Performance http://t.co/mG2W0O7z88
- Telefonica and Cisco Complete 4,000 kilometer 100Gbps IPoDWDM Trial http://t.co/7c0uqzH6bG
- Mozilla Releases Multiple Updates http://t.co/Kqldpe1MZ7
Email Updates
Archives
- May 2013
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008

