802.1x and MAC Authentication
Connor Herring
connorrjherring at gmail.com
Mon Sep 23 14:42:33 UTC 2024
Hi All,
I am attempting to setup my server so that it now checks a MAC address and
then provided the MAC address is ok it then moves on to performing EAP
authentication. This seems to be working fine but I noticed something in
the logs that I wanted to query. I am using this guide
<https://wiki.freeradius.org/guide/Mac-auth#mac-auth-and-802-1x>.
Whenever the RADIUS server sends an Access-Challenge, it still sends the
usual EAP-Message, Message-Authenticator, and State attributes, however it
now also sends a Reply-Message on the line above these in the format of the
one in the aforementioned guide:
Reply-Message = "Device with MAC Address %{Calling-Station-Id}
authorized for network access"
Doesn't seem like something to worry about just wondered if there was any
way around this?
Further to this the guide says:
if (!ok) {
# Reject if the MAC address was not permitted.
reject
}
# If this is NOT 802.1x, mac-auth
if (!EAP-Message) {
# MAC address has already been checked, so accept
update control {
Auth-Type := Accept
Unless I am misunderstanding this is saying, "check the MAC address, if
this isn't correct then continue. If it is correct but someone isn't using
EAP then just allow them through". Surely unless someone were to comment
out all authentication modules besides EAP in the default server, this
would just allow someone to get onto the network with a correct MAC even if
they don't have auth credentials?
Kind regards,
Connor
More information about the Freeradius-Users
mailing list