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

2 comments:

  1. I try put "match protocol secure-http host "www.youtube.com"" but the cisco router dont accpet

    R2(config-cmap)#match protocol secure-http host "www.youtube.com"
    ^
    % Invalid input detected at '^' marker.

    R2(config-cmap)#match protocol secure-http "www.youtube.com"
    ^
    % Invalid input detected at '^' marker.

    R2(config-cmap)#match protocol secure-http url "www.youtube.com"
    ^
    % Invalid input detected at '^' marker.

    ReplyDelete
  2. Your blog give many information thanks for share this informative article.
    access Mp3skull in UK

    ReplyDelete