How to Block or Limit the use of Bittorrent and P2P using NBAR on Cisco Router

Posted on Updated on


class-map match-any DenyP2PTraffic
description Deny Peer To Peer Traffic and Torrent
match protocol bittorrent
match protocol edonkey
match protocol fasttrack
match protocol gnutella
match protocol kazaa2
match protocol winmx
match protocol directconnect
match protocol irc

policy-map DenyP2PTraffic
class DenyP2PTraffic
drop

OR == To Limit ==

class DenyP2PTraffic
police cir 8000
conform-action drop
exceed-action drop

interface Tunnel100
description Tunnel_to_xxx
ip nbar protocol-discovery
service-policy input DenyP2PTraffic
service-policy output DenyP2PTraffic

interface FastEthernet0/1.40
description Guest_Pool
ip nbar protocol-discovery
service-policy input DenyP2PTraffic
service-policy output DenyP2PTraffic

interface FastEthernet0/1.131
description To_Internal_Data
ip nbar protocol-discovery
service-policy input DenyP2PTraffic
service-policy output DenyP2PTraffic

 

 

show policy-map interface fa0/1.131

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s