02-28-2013 09:18 PM - edited 03-04-2019 07:10 PM
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
02-28-2013 11:40 PM
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
03-03-2013 10:58 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide