Security

 View Only
  • 1.  regular expression not working in 6.12

    Posted Dec 16, 2024 10:34 AM
    Edited by EE-78a2cb Dec 17, 2024 04:36 AM

    [edited with additional information]

    Hi all,

    upgrade from 6.10 to 6.12  In the 6.10 config 2 regular expressions are used to assign separate roles for load-balancing based on mac address (even/odd). The expressions are used in role mappings.In 6.12 these regular expressions don't work so roles are not assigned and authentication fails.

    expression 1: radius:ietf calling-station-id matches-regex ^([0-9a-fA-F]{2}){5}([0-9a-fA-F]{1}([13579bdfBDF]))$ assigns role1

    expression 2: radius:ietf calling-station-id matches-regex^([0-9a-fA-F]{2}){5}([0-9a-fA-F]{1}([24680aceACE]))$ assigns role2

    the roles are assigning differten vlan enforcement profiles.

    what do I need to change to get these expressions working in 6.12? A regex reader does not show any error in the syntax.

    thank you.

    Erik



    ------------------------------
    Erik Eckhardt
    ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
    ------------------------------



  • 2.  RE: regular expression not working in 6.12

    Posted Dec 16, 2024 01:27 PM

    Where and how are you using the RegEx?  What shows in the log?  Anything on the Alert tab?

    Is the value you're evaluating against non-delimited?

    What is it that you are load-balancing against/for?



    ------------------------------
    Carson Hulcher, ACEX#110
    ------------------------------



  • 3.  RE: regular expression not working in 6.12

    Posted Dec 16, 2024 02:20 PM

    these expressions are used in a role-mapping. pretty straightforward

    role mapping

    expression 1 > role 1

    expression 2> role 2

    enforcement policy

    role 1 > vlan 1 profile

    role 2> vlan 2 profile

    Role is not assigned so alert shows default profile: [default deny profile]

      access tracker shows access denied with non of the roles assigned in 6.12  Access tracker shows role assigned in 6.10 same role mapping

    I'll make screen shots tomorrow 

    thanks.

    Erik



    ------------------------------
    Erik Eckhardt
    ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
    ------------------------------



  • 4.  RE: regular expression not working in 6.12

    Posted Dec 17, 2024 03:43 AM

    screenshots 6.12.3

    role mapping condition 3 and 6 have been added to get a working setup. default role has been changed for getting a working setup for condition 7 an 8

    . access tracker screenshots are from a authentication before these

    6.12.3 role mapping

    changes.



    ------------------------------
    Erik Eckhardt
    ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
    ------------------------------



  • 5.  RE: regular expression not working in 6.12

    Posted Dec 17, 2024 03:47 AM

    screenshots 6.10



    ------------------------------
    Erik Eckhardt
    ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
    ------------------------------



  • 6.  RE: regular expression not working in 6.12

    Posted Dec 17, 2024 10:24 AM

    If you look at the source data, Radius:IETF:Calling-Station-Id, you'll see that the MAC address is hyphen delimited, and your expression doesn't account for the hyphens.

    RegEx for MAC address that is hyphen delimited ^(?:[0-9A-Fa-f]{2}[-]){5}(?:[0-9A-Fa-f]{2})$

    If your wireless environment is HPE Aruba Networking, and the point of different roles based on the MAC address is to place devices in different VLANs, you'd be better off using a VLAN pool.



    ------------------------------
    Carson Hulcher, ACEX#110
    ------------------------------



  • 7.  RE: regular expression not working in 6.12

    Posted Dec 17, 2024 11:02 AM

    Thanks Carson. I will run some test and report back.

    Unfortunately the customer is moving away from Aruba Wireless. 



    ------------------------------
    Erik Eckhardt
    ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
    ------------------------------



  • 8.  RE: regular expression not working in 6.12

    Posted Dec 18, 2024 04:47 AM

    adding [-] in the regular expression did not work. I even tried the expression in post 6. None of them assigned the role so the default role is assigned.

    When I change the source data from radius:ietf calling-station-id to connection:client-mac-address with the original regular expression the role is assigned. 

    Testing with radius:ietf calling-station-id equels mac-address of test cliet(copied from access tracker input tab) did not assign the role either. Tests with other radius:ietf attributes from the radius request input tab information did not assign any role either. Atributes from other dictionaries (in this case radius:aruba) did assign the role. Looks like the radius:ietf dictionary is no longer allowed in role mappings. Screenshots are from my lab environment. Lab is using Clearpass 6.12.3

    I will change the customers role mapping using connection:client-mac-address

    rgds, Erik



    ------------------------------
    Erik Eckhardt
    ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
    ------------------------------