Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

blocking sites with class-map

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
Hall of Fame Super Bronze

Re: blocking sites with class-map

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

class-map match-any scum

match protocol http host "www.microsoft*"

1 REPLY
Hall of Fame Super Bronze

Re: blocking sites with class-map

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

class-map match-any scum

match protocol http host "www.microsoft*"

128
Views
0
Helpful
1
Replies