cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
822
Views
0
Helpful
2
Replies

Classmap match http url. How to deny some urls in ACE

Thomas Dohl
Level 1
Level 1

Hello,

 

I have an issue with URLs in classmaps on an Cisco ACE.

 

for example:

I have this classmap with following url matches:

class-map type http loadbalance match-any URLMAPPING

    50 NOT match http url /cms/TEST01/.*

    51 NOT match http url /cms/test01/.*

    52 NOT match http url /cms/abcd03/.*

    53 NOT match http url /cms01/abcd03/.*

   100 match http url /cms/.*

   101 match http url /cms01/.*

 

I need a deny statement for rule 50 to 53.

If one of the statements from 50 to 53 match, there shouldn't be a URL -mapping. If one the statements 100-101 match, there should be an URL -mapping. (like a standart ACL match)

Is there any solution for this case ?

Kind Regards

1 Accepted Solution

Accepted Solutions

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi Thomas,

Create two class-maps of type http. Put the first 3 statements in class-map 1 and other in class-map 2. Then do the below for the one which you need to drop:


policy-map type loadbalance http first-match urlmapping
  class 1
    drop
  class 2
    serverfarm test

Hope this helps.

Regards,

Kanwal

Note: Please mark answers if they are helpful.

 

 

 

 

View solution in original post

2 Replies 2

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi Thomas,

Create two class-maps of type http. Put the first 3 statements in class-map 1 and other in class-map 2. Then do the below for the one which you need to drop:


policy-map type loadbalance http first-match urlmapping
  class 1
    drop
  class 2
    serverfarm test

Hope this helps.

Regards,

Kanwal

Note: Please mark answers if they are helpful.

 

 

 

 

Hi Kanwal,

 

perfect, thank you.

 

Kind regards

Thomas

Review Cisco Networking for a $25 gift card