Security

 View Only
  • 1.  Clearpass-Open SSID MAC Auth

    Posted Apr 20, 2021 11:32 PM
    Hello,

    I am struggling with a fairly simple setup and am a bit stuck. I have an Aruba controller setup with an Open SSID and MAC Auth enabled. I have some rules setup in Clearpass to identify devices of a certain device type. I would like to allow those devices access and block all others.

    Right now when I use an unauthorized device, I don't get the "allow" role which is expected. However, the machine is still able to join the SSID but it just says "no internet" since the role it gets is "deny". What i'd like to accomplish is to completely not allow this device from joining the wireless at all unless it gets the "allow/accept" role from Clearpass. Is there a way that if the device type doesn't match what I want to allow, to send a disconnect to the controller for this session?


    ------------------------------
    Louis Scaringella
    ------------------------------


  • 2.  RE: Clearpass-Open SSID MAC Auth

    Posted Apr 21, 2021 07:11 AM
    You should just set the initial role on in your AAA profile to be "deny-all" role. If users pass authentication, and a role is returned it will use that role. If only a RADIUS accept is returned, they will get the default role in the AAA profile. If they do not authenticate, they will stay in the initial role. Since the SSID is Open, users will still be able to connect and will not be forced to stay off unless you blacklist the client.

    ------------------------------
    Dustin Burns
    ------------------------------



  • 3.  RE: Clearpass-Open SSID MAC Auth

    Posted Apr 21, 2021 09:46 AM

    Thank you for the information and that makes sense and was what I suspected. 


    The role is deny all by default, but was hoping to actually disconnect users to prevent confusion because this is for student BYOD IoT devices in dorms. 


    I have found that by adding a PSK and doing MAC auth as well, if the device type isn't allowed, even if the PSK is correct, the session isn't even allowed to connect at all so that may be the route I take. 


    Can you explain why that is exactly with PSK and MAC auth that returns a reject message?



    ------------------------------
    Louis Scaringella
    ------------------------------



  • 4.  RE: Clearpass-Open SSID MAC Auth

    Posted Apr 21, 2021 09:58 AM
    Maybe do a "show auth-tracebuf mac <MAC>" and see if mac-auth is happening first. I cant remember 100% if mac-auth happens before or after the PSK gets entered.

    ------------------------------
    Dustin Burns
    ------------------------------



  • 5.  RE: Clearpass-Open SSID MAC Auth

    Posted Apr 21, 2021 10:07 AM

    I'll try this shortly. Thanks again. 


    I do know that even with a correct PSK entered, if Clearpass sends a reject or deny, then the client can't even associate so something about this process allows the client to not connect at all. I just want to understand that better at a low level when explaining this to my client. 



    ------------------------------
    Louis Scaringella
    ------------------------------



  • 6.  RE: Clearpass-Open SSID MAC Auth

    Posted Apr 21, 2021 12:55 PM
    Here is that output. The first few are from the open SSID. The last 4 lines are with PSK and MAC auth setup on the SSID. What's interesting is there isn't any additional information in this beyond that. It just shows the mac auth request and then the station down.

    So I know the PSK is correct and I know that Clearpass sees the request and it gets the "deny/reject" message since this device type doesn't match any of my rules of allowed device types. 

    But i'm not sure what mechanism on the controller is actually causing the client (Windows 10 laptop) to fail to connect in this case. 

    (Aruba7005_64) [mynode] #show auth-tracebuf mac 18:3d:a2:0d:59:5c

    Auth Trace Buffer
    -----------------


    Apr 21 11:46:33 mac-auth-req -> 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 11:46:38 mac-auth-fail <- 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 11:46:38 station-up * 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - - open system
    Apr 21 11:47:27 station-down * 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 11:47:35 mac-auth-req -> 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 11:47:40 mac-auth-fail <- 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 11:47:40 station-up * 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - - open system
    Apr 21 11:48:38 station-down * 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 11:49:58 mac-auth-req -> 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 11:50:03 station-down * 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 11:51:51 mac-auth-req -> 18:3d:a2:0d:59:5c f0:5c:19:2c:56:f2 - -
    Apr 21 11:51:56 station-down * 18:3d:a2:0d:59:5c f0:5c:19:2c:56:f2 - -

    ------------------------------
    Louis Scaringella
    ------------------------------



  • 7.  RE: Clearpass-Open SSID MAC Auth

    Posted Apr 21, 2021 02:09 PM
    Here is more output from an attempt with successful MAC authentication for this system to compare. We can see that MAC auth is being attempted first and if it succeeds it verifies the PSK.

    Apr 21 13:03:15 mac-auth-req -> 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 13:03:15 mac-auth-success <- 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 13:03:15 station-up * 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - - wpa2 psk aes
    Apr 21 13:03:15 wpa2-key1 <- 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - 117
    Apr 21 13:03:15 wpa2-key2 -> 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - 119
    Apr 21 13:03:15 wpa2-key3 <- 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - 167
    Apr 21 13:03:15 wpa2-key4 -> 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - 95

    Here is a failure of MAC auth sequence:

    Apr 21 13:00:01 mac-auth-req -> 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 13:01:29 station-down * 18:3d:a2:0d:59:5c 18:64:72:4a:0e:52 - -
    Apr 21 13:01:29 mac-auth-req -> 18:3d:a2:0d:59:5c f0:5c:19:2c:56:f2 - -
    Apr 21 13:01:34 station-down * 18:3d:a2:0d:59:5c f0:5c:19:2c:56:f2 - -

    We can see that MAC auth is attempted, doesn't show a fail message because in this case Clearpass has the "Drop" profile applied. If I choose the "Deny" profile, there will be a MAC auth failure here, but if the PSK is verified access is still granted. So the key is to use the "Drop" profile and if it doesn't pass MAC auth on Clearpass, it doesn't respond to the controller at all, controller sees it as a timeout and doesn't allow the client to proceed.

    Of course with Open SSID this doesn't happen and the client is allowed to proceed even when they fail MAC auth and the Drop profile is delivered. The controller gets no response from CPPM, but it doesn't matter since it's open.

    ------------------------------
    Louis Scaringella
    ------------------------------