You want to filter application data based on the time of day.
To filter application data based on the time of day, use the following commands:
configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#
periodic weekdays 9:00 to 17:00Router1(config-time-range)#
ip access-list extended
deny tcp any any eq www time-range
permit ip any anyRouter1(config-ext-nacl)#
This feature relies on an accurate system clock to function properly. It is highly recommended that you use NTP to synchronize the router’s clock. See Chapter 14 for more information regarding NTP.
Timed-based access-lists allow you to filter application data based on the time of day. In our example, we’ve built an access-list that denies HTTP traffic during the work hours, Monday to Friday, from 9:00 to 17:00. Timed-based access-lists also allows control over other router features, based on the time of day, such as policy-based routing, CAR statements, ACL logging, on-demand link activation, or security policies, to name a few.
To configure a timed-based access-list, you must first configure a time-range:
configure terminalEnter configuration commands, one per ...