RE: matching pictures w/ mime

From: none (alsontra@hotmail.com)
Date: Fri Oct 01 2004 - 22:08:58 GMT-3


Hi John,
          Although I have not yet gotten it to work, I've been using the
following for matching mime type image:

match protocol http mime "*gif"
match protocol http mime "*jpg"

As I understand it, this will get the job done. When asked to get rid of
GIFs, JPGs or whatever, I've just recently started using the following (and
this does in fact work):

class-map match-any IMAGES
   match protocol http url "*.gif"
   match protocol http url "*.jpg"
   match protocol http mime "*gif"
   match protocol http mime "*jpg"
!
!
  policy-map QOS
   class IMAGES
    drop

Cisco offers the following example:

<snip>
The following example classifies, within class map foo, packets based on the
JPEG MIME type:

class-map foo
match protocol http mime "*jpeg"

</snip>
http://www.cisco.com/en/US/products/sw/iosswrel/ps1838/products_feature_guid
e09186a0080134add.html

Also:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_tech_note091
86a0080110d17.shtml

In addition, Scott and some others hashed this out very recently, the title
of the thread was "RE: MQC to filter MIME-types" - check the archives

HTH
Alsontra

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of John
Matus
Sent: Friday, October 01, 2004 5:43 PM
To: lab
Subject: matching pictures w/ mime

is this the correct syntax for matting images with mime?

class-map match-all image
    match proto http mime "image/*"

i'm used to matching with 'http url "*.jpg*", so i want to make sure the
syntax is right.

Regards,

John D. Matus
MCSE, CCNP
Office: 818-782-2061
Cell: 818-430-8372
jmatus@pacbell.net



This archive was generated by hypermail 2.1.4 : Sat Nov 06 2004 - 17:11:42 GMT-3