Security

Reply
Super Contributor I
Posts: 289
Registered: ‎02-07-2013

clearpass regular expression support

Hi,

I'm trying to perform some form of User-Name validation on  our wireless network  to stop invalid usernames from eduroam visitors being proxied off to our Tier-1 RADIUS servers. As these are our outward facing RADIUS servers, I've got a preproxy.conf file that has

 

if("%{User-Name}" =~ /^([^@]*)(@([-[:alnum:].]+))$/) {

.... stuff.....

}

 

I'd like to do something similar in clearpass using the match_regex operator when defining a service rule.

needless to say the above /^....$/ doesn't work. Are there any tools for checking reg expressions or is it a case of start simple and work up to complicated ones?

 

Rgds

Alex

 

MVP
Posts: 702
Registered: ‎03-25-2009

Re: clearpass regular expression support

Nothing within clearpass but there's a bunch of tools on the web.

http://www.regexr.com/

http://www.regular-expressions.info/refquick.html

 

Regexes..  fun stuff :P

Koen (ACMX #351 | ACDX #547 | ACCP)

-- Found something helpful, important, or cool? Click the Kudos Star in a post.
-- Problem Solved? Click "Accept as Solution" in a post.
Search Airheads
Showing results for 
Search instead for 
Did you mean: