cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
748
Views
0
Helpful
2
Replies

Allow only specific URLs on 861 router using MQC

I configured a Cisco 861 router to allow only youtube.com and block all other URLs.

I used the below configuration but is not working. Actually everything is blocked even the access to the router.

Is there any other way to acheive this requirement?

class-map match-any YOUTUBE

match protocol http host *youtube.com*

class-map match-all YOUTUBE-ONLY

match not class-map YOUTUBE

policy-map WEB-ACCESS

class YOUTUBE-ONLY

  drop

interface Vlan1

service-policy input WEB-ACCESS

2 Replies 2

blau grana
Level 7
Level 7

Hi Michalis

Try to modify policy-map WEB-ACCESS ->

policy-map WEB-ACCESS

class YOUTUBE-ONLY

  drop

class class-default

Best Regards

Please rate helpful posts

Best Regards Please rate all helpful posts and close solved questions

Thanks Blau for your response.

I solved the problem by adding "match protocol http" to match only http protocol and not all traffic.

class-map match-all YOUTUBE-ONLY

  match not class-map YOUTUBE

  match protocol http

Review Cisco Networking for a $25 gift card