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
------------------------------
Original Message:
Sent: Apr 21, 2021 10:06 AM
From: Louis Scaringella
Subject: Clearpass-Open SSID MAC Auth
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
------------------------------
Original Message:
Sent: Apr 21, 2021 09:57 AM
From: Dustin Burns
Subject: Clearpass-Open SSID MAC Auth
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
Original Message:
Sent: Apr 21, 2021 09:46 AM
From: Louis Scaringella
Subject: Clearpass-Open SSID MAC Auth
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
Original Message:
Sent: Apr 21, 2021 07:11 AM
From: Dustin Burns
Subject: Clearpass-Open SSID MAC Auth
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