Limiting non-business related applications during work hours
In this post we will explore how to limit or even stop your employees from using applications that are not related to the business during work hours.
In the following example I am going to use HTTP as an example for unwanted applications, you can specify any type of application you would like to limit or stop (file sharing, chatting, downloading ..)
Configuration Steps:
1- create your time range in which these applications will be deined as show below
!-- This timerange matches everyday from 9am to 5pm expcet weekends
time-range WEEKDAYS |
2- Identify non-business applications using an ACL and attach the time-range to it. If you want to drop this traffic completely you can just attach this ACL to an interface.
!-- Specify all types of traffic you need to limit
access-list 180 permit tcp any any eq www time-range WEEKDAYS |
3- Classify this traffic using class-map commands and configure your policy map to police this traffic to what ever suitable value may be 64Kbps or drop them as I am doing in the configuration below:
class-map match-all NON-WORK-APPS match access-group 180policy-map WORK-POLICY class NON-WORK-APPS drop |
4- Apply the policy map to the router interface in the right direction.
int f0/0 service-policy output WORK-POLICY |
Operation verfication:
R1#show clock 10:03:59.183 UTC Mon Jun 2 2008 !--Notice the ACL is active as the time is matching the time range. R1#sh access-list 180 R1#sh policy-map int f0/0 Service-policy output: WORK-POLICY Class-map: WORK-APPS (match-all) Class-map: class-default (match-any) !-- using telnet to port 80 to test the configuration R1#telnet 192.168.12.2 80 !-- Notice the increment in the dropped number of packets R1#sh policy-map int f0/0 Service-policy output: WORK-POLICY Class-map: WORK-APPS (match-all) Class-map: class-default (match-any) |
Now lets set the clock outside our defined time range to check the operation.
R1#clock set 18:0:0 2 june 2008
R1#show access-list 180 !-- telnet to port 80 succeeded R1#telnet 192.168.12.2 80 |
That was a basic example you can modify to suite your organization policy by changing any of the configuration parameters.