Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    FreeRADIUS handing out IPs even when MAC auth fails

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 3 Posters 371 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • aaronsshA
      aaronssh
      last edited by aaronssh

      We have enabled 802.1x auth on our network switches to authenticate against FreeRADIUS using MAC addresses. We can see the requests come in and the FreeRADIUS logs correctly show approval of a registered MAC address and hand out the IP.

      • Login OK: [0004c0410cd] (from client NativeLAN port 5 cli 00-B0-4C-04-10-CD)
      • Sent Access-Accept Id 17 from 128.1.6.250:1812 to 128.1.5.8:33162 length 20

      But when we plug in a device with an unregistered MAC, we can see the request come in and it is marked to reject, but pfSense STILL gives it an IP address anyway.

      • Login incorrect (Failed retrieving values required to evaluate condition): [6c2b5933b2fb] (from client NativeLAN port cli 6C-2B-59-33-B2-FB)
      • Sent Access-Reject Id 18 from 128.1.6.250:1812 to 128.1.5.8:33162 length 20

      Why is pfSense giving out an IP even though auth fails and it is marked as reject? And how do I get it working?

      aaronsshA 1 Reply Last reply Reply Quote 0
      • aaronsshA
        aaronssh @aaronssh
        last edited by aaronssh

        Any ideas anyone? I'm stuck and out of ideas. Thank you in advance for your help,
        Aaron

        GertjanG keyserK 2 Replies Last reply Reply Quote 0
        • GertjanG
          Gertjan @aaronssh
          last edited by

          @aaronssh

          Not really.
          But I know a way so you can see all the details.
          In the GUI, stop FreeRadius :
          06bb3b83-869a-4d30-aad7-81a84f7a2e46-image.png

          ( the circled square ).

          Now, go SSH or console, option 8, and start radius in debug mode :

          radiusd -X
          

          Now you'll see what radius does in real time ...

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          aaronsshA 1 Reply Last reply Reply Quote 0
          • aaronsshA
            aaronssh @Gertjan
            last edited by aaronssh

            @Gertjan Yes, that is how I acquired the logs shown in my original post.

            1 Reply Last reply Reply Quote 0
            • keyserK
              keyser Rebel Alliance @aaronssh
              last edited by

              @aaronssh said in FreeRADIUS handing out IPs even when MAC auth fails:

              Any ideas anyone? I'm stuck and out of ideas. Thank you in advance for your help,
              Aaron

              The issue is not at pfsense But at your switch/wifi point. It obviously does not respect the radius reject and still puts the user on a VLAN. Pfsense DHCP knows nothing about authentication - is just serves IP addresses for clients asking. The switch or Wifi AP should deny the Client access to a LAN when it sees a reject from radius.

              Love the no fuss of using the official appliances :-)

              aaronsshA 1 Reply Last reply Reply Quote 1
              • aaronsshA
                aaronssh @keyser
                last edited by

                @keyser Thank you, I was wondering if that is was the case! I will follow up with the switch vendor.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.