cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
442
Views
3
Helpful
7
Replies

To block URLs on cisco 7507 router

ror.sanjeev
Level 1
Level 1

Hi..I hv cisco 7507 router,I need to block some URLs or websites on this..can I do this and how..Please tell me ..

7 Replies 7

wasiimcisco
Level 1
Level 1

you can do this by enabling the Nbar on interface and then make class-map test do match protocol http url "*hotmail*"

then make policy-map test

class test

drop

apply the service on interface.

if helpful please rate

I have done same thing as:

class-map match-all test

match protocol http url "youtube"

!

!

policy-map test

class test

set ip dscp default

enable ip nbar protocol-discovery on Fa5/1/1

following are access-list applied on fa5/1/1

40 deny ip any any dscp default (105222matches)

50 permit ip any any log (868 matches)

But it blocks all the site not even youtube.I am unable to open any site like yahoo,google,rediff etc.

Please tell me..

You're denying all IP traffic with a DSCP of 0, which is what most traffic is by default.

Try something like this-

class-map match-all test

match protocol http host *youtube.com*

policy-map test

class test

drop

You can remove the the ACL line 40 & 50.

Hope that helps.

hi..there is no command like drop..

(config-pmap-c)#?

QoS policy-map class configuration commands:

bandwidth Bandwidth

exit Exit from QoS class action configuration mode

fair-queue Flow-based Fair Queueing

netflow-sampler NetFlow action

no Negate or set default values of a command

police Police

priority Low Latency Queueing

queue-limit Queue Max Threshold for Tail Drop

random-detect Weighted Random Early Detect (Precedence based

service-policy Configure Flow Next

set Set QoS values

shape Traffic Shaping

on this link,http://www.cisco.com/en/US/products/hw/routers/ps359/products_tech_note09186a00800fc176.shtml

it is written there,u can do with set dscp 1 but i m not able to do.

please tell,

thanks.

Take a look at Method 3 on the link you provided, that would be a way to do it as well.

I have also applied the method (3) from the link http://www.cisco.com/en/US/products/hw/routers/ps359/products_tech_note09186a00800fc176.shtml

still I am not able to block youtube.com.Can you please tell me the complete procedure and commands.

I am using Cisco IOS version 12.3(11)T3,cisco 7507 router.

Thanks,

Sanjeev

class-map match-all YOUTUBE

match protocol http host "*youtube.com*"

!

policy-map DROP_YOUTUBE

class YOUTUBE

drop

!

interface FastEthernet0/0

description TO INTERNET

service-policy output DROP_YOUTUBE

Hope that helps.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card