Security

last person joined: yesterday 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

clearpass regular expression support

This thread has been viewed 6 times
  • 1.  clearpass regular expression support

    Posted Apr 08, 2015 04:29 AM

    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

     



  • 2.  RE: clearpass regular expression support

    MVP
    Posted Apr 08, 2015 04:35 AM

    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