cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
368
Views
0
Helpful
1
Replies

blocking sites with class-map

blacktulip
Level 1
Level 1

i have 3750 as DG for my station, connected to 3845 which is connected to ADSL.

i want to block a site, so i wrote in the 3845:

class-map match-any scum

match protocol http url "*microsoft*"

!

policy-map block

class scum

drop

!

interface GigabitEthernet0/0

service-policy input block

it doesn't work. why?

1 Accepted Solution

Accepted Solutions

Edison Ortiz
Hall of Fame
Hall of Fame

You should match a host instead of an url, try this syntax:

class-map match-any scum

match protocol http host "www.microsoft*"

View solution in original post

1 Reply 1

Edison Ortiz
Hall of Fame
Hall of Fame

You should match a host instead of an url, try this syntax:

class-map match-any scum

match protocol http host "www.microsoft*"

Review Cisco Networking for a $25 gift card