Thursday 13 October 2011

block social networking sites





Is your network bandwidth being consumed by unwanted traffic like P2P, Socialnetworking websites ?

Stop unwanted social networking websites in 3 simple steps

1. Create a class-map to match

class-map match-any SOCIAL_NETWORK
match protocol http host "www.youtube.com"
match protocol http host "www.facebook.com"
match protocol http host "www.twitter.com"
match protocol http host "*facebook*"
match protocol secure-http host "www.youtube.com"
match protocol secure-http host "www.facebook.com"
match protocol secure-http host "www.twitter.com"
match protocol secure-http host "*facebook*"

2. Create a policy-map to instruct what to do with the traffic.
policy-map DROP_SOCIAL_NETWORK
class SOCIAL_NETWORK
drop

3. Apply the policy on teh required interface
interface FastEthernet0/1
service-policy output DROP_SOCIAL_NET