RE: NBAR url match

From: Basel (basel.sharif@gmail.com)
Date: Sat Jan 10 2009 - 15:44:01 ARST


Yes the | means OR, you can consider the | operator as match any in the
match statement being used, like

match protocol http url "*.gif*|*.jpeg|*.jpg*"

means match any one of those extensions.

 

The way you did nested class-map is fine but more configs lines.

 

Regards,

Basel

 

From: John Edom [mailto:jedom123@gmail.com]
Sent: Saturday, January 10, 2009 8:24 PM
To: Basel
Cc: GS
Subject: Re: NBAR url match

 

here | is for OR operation means match any ?

this can also be done using nested class like

class-map match-any URL
  match proto http url "*.gif*"
  match proto http url "*.jpeg*"
  match proto http url "*.jpg*"

class-map match-all HTTP
  match class URL
  match protocol http url "www.youtube.com <http://www.youtube.com/> "

please explain that pipe sign function ...

Regards

On Sat, Jan 10, 2009 at 8:50 PM, Basel <basel.sharif@gmail.com> wrote:

Hi,
You would need to use the | operator if you are matching those extensions
from specific websites like YouTube, hence you need 2 matching statements
one for the url of the website and one for all extensions need to be matched
while your class-map should match-all.

class-map match-all TEST
 match protocol http url "*.gif*|*.jpeg|*.jpg*"
 match protocol http url "www.youtube.com"

Regards,
Basel

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of John
Edom
Sent: Saturday, January 10, 2009 4:36 PM
To: GS
Subject: NBAR url match

hi,

Tell me is it correct to match http .gif, .jpeg, jpg images

class-map match-any HTTP
match proto http url "*.gif*"
match proto http url "*.jpeg*"
match proto http url "*.jpg*"

sorry for large font but what you should you clear :)

I have found some solution without * at end that seems correct as well and a
solution where only one statement configure and all images type separate
with | sign.

Regards

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sun Mar 01 2009 - 09:43:37 ARST