Create class maps that match on protocol http url, set the appropriate policy maps to drop or set the dscp value and then nest the policy maps.
Network Based Application Recognization (NBAR)
Scenario:
As the owner of a small company you notice some of your employees are slacking off at the job and spending their time at Facebook, Twitter and some other sites. You want to configure your network so these sites are blocked. While you are at it you also want to block some of the worms that are on the Internet.
Goal:
- All IP addresses have been preconfigured for you.
- OSPF has been preconfigure for full connectivity.
- Configure router Sluggish so all traffic from Twitter is dropped on the FastEthernet 1/0 interface.
- Configure router Sluggish so it can detect the NIMDA worm and drops the traffic on the FastEthernet 1/0 interface.
- Configure router Sluggish so it marks Youtube traffic down to DSCP 0 on the FastEthernet 1/0 interface.
IOS:
c3640-jk9s-mz.124-16.bin
Topology:

Video Solution:
You need to register to download the GNS3 Topology File. (Registration is Free!)
- Related Articles
Comments (5)
-
SteveOcchO86 2011-11-20 22:01:13Can't edit my post, may also want to enable ip nbar protocol discovery on the interfaces
-
ReneMolenaar 2011-11-24 20:48:54Hi Steve,
That's how to do it
The Cisco website has an example of how to use NBAR to detect worms:http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_tech_note09186a0080110d17.shtml
Rene
-
nour 2012-04-23 08:56:29idea, just enabling the ip nbar protocol discovery on the interface and creat class- map ospf and apply drop on this class under the policy map , you will find the ospf in loading state not full state

-
ReneMolenaar 2012-04-23 12:34:58Quote:dea, just enabling the ip nbar protocol discovery on the interface and creat class- map ospf and apply drop on this class under the policy map , you will find the ospf in loading state not full stateThat'll work but that's a "very" quick and dirty method of getting the job done
Better to keep the OSPF adjacency up and running and filter using another method 





