09-23-2015 02:01 AM
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
Solved! Go to Solution.
09-28-2015 10:08 AM
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.
09-28-2015 10:08 AM
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.
09-28-2015 10:44 PM
Hi Kanwal,
perfect, thank you.
Kind regards
Thomas
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide