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

regex matching on ACE30

nileshrathi
Level 1
Level 1

Hi All,

Could anybody advice how would you match a url that includes = sign under an http class-map?

Regards,

Nilesh

2 Replies 2

nileshrathi
Level 1
Level 1

Basically I need to block any url that contains name=internal for example as below

/ajax/summary/records?check=jQuery88_170&full=true&number=3&name=internal&area=GB&_=1

and

/ajax/summary/records?check=jQuery67_02&full=true&number=5&name=internal&area=ASIA&_=1

Regards,

Nilesh

Hi Nilesh,

To block the name=interval you would need to do two things.

1) create an http parameter map where you would need to do "parsing non-strict" in order to involve "=" character.

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA4_2_x/release/note/ACE_mod_rn_A42x.html#wp808715

2) Use the following regex match value:

parameter-map type http test=

  case-insensitive

  persistence-rebalance

parsing non-strict

class-map type http loadbalance match-all test=

  2 match http url .*name\=interval.*

policy-map type loadbalance http first-match PL7

  class test=

    serverfarm 22

policy-map multi-match test

  class VIP-10

    loadbalance vip inservice

    loadbalance policy PL7

    loadbalance vip icmp-reply

    appl-parameter http advanced-options test=

Read the link for the parsing non-strict.

Hope this helps.

Regards,
Abhishek Purohit
CCIE-S- 35269

Regards, Abhishek Purohit CCIE-S- 35269
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: