freeradius mac authentication error (mac address not found?)Auth-Type :- Reject in RADIUS users file matches inner tunnel request but sends Access-AcceptFreeradius authentication failed for unknown reasonActive Directory / Freeradius / ntlm_auth / mail attributeFreeradius authentication: LDAP group and SSID matchingFreeRadius configure two different authentication typesopenvpn radius-plugin does not assign framed-ip-address from freeradius to clientsrlm_rest : Handling MSCHAPFreeradius VLAN assignment with EAP-TLS and WiFi 802.1xWhat characters are allowed for the username and password in FreeRADIUS?multiotp with Active Directory + freeradius

SFINAE works with deduction but fails with substitution

If Earth is tilted, why is Polaris always above the same spot?

In a vacuum triode, what prevents the grid from acting as another anode?

In Endgame, why were these characters still around?

What is the minimal installation possible in order to run a .jar Java file?

Should my Json storage handle exceptions?

Was there ever a Kickstart that took advantage of 68020+ instructions that would work on an A2000?

To customize a predefined symbol with different colors

What happens if I start too many background jobs?

I caught several of my students plagiarizing. Could it be my fault as a teacher?

What word means "to make something obsolete"?

Why is `abs()` implemented differently?

Is there a legal ground for stripping the UK of its UN Veto if Scotland and/or N.Ireland split from the UK?

Why is B♯ higher than C♭ in 31-ET?

Do I have to make someone coauthor if he/she solves a problem in StackExchange, asked by myself, which is later used in my paper?

Are we obligated to aspire to be Talmidei Chachamim?

Which industry am I working in? Software development or financial services?

When and why did journal article titles become descriptive, rather than creatively allusive?

Catholic vs Protestant Support for Nazism in Germany

FindInstance and cosine system of equations

Can I get a paladin's steed by True Polymorphing into a monster that can cast Find Steed?

What happens to the Time Stone

What happens to matryoshka Mordenkainen's Magnificent Mansions?

Is Jon mad at Ghost for some reason and is that why he won't acknowledge him?



freeradius mac authentication error (mac address not found?)


Auth-Type :- Reject in RADIUS users file matches inner tunnel request but sends Access-AcceptFreeradius authentication failed for unknown reasonActive Directory / Freeradius / ntlm_auth / mail attributeFreeradius authentication: LDAP group and SSID matchingFreeRadius configure two different authentication typesopenvpn radius-plugin does not assign framed-ip-address from freeradius to clientsrlm_rest : Handling MSCHAPFreeradius VLAN assignment with EAP-TLS and WiFi 802.1xWhat characters are allowed for the username and password in FreeRADIUS?multiotp with Active Directory + freeradius






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















So I set up a freeradius 3.0 server on Debian 9 following the official documentation here and here. I have an authorized_mac file with the addresses of my devices and in the file /etc/freeradius/3.0/mods-enabled/files I indicated which file my mac addresses are in:



files authorized_macs 
# The default key attribute to use for matches. The content
# of this attribute is used to match the "name" of the
# entry.
key = "%Calling-Station-ID"

usersfile = $confdir/authorized_macs

# If you want to use the old Cistron 'users' file
# with FreeRADIUS, you should change the next line
# to 'compat = cistron'. You can the copy your 'users'
# file from Cistron.
#compat = no



My WiFi access point sends the MAC addresses to the radius server in the format 1A:2B:3C:4D:5E:6F but to be sure that the problem is not coming from there, my authorized_macs file looks like this:



1A:2B:3C:4D:5E:6F
Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

1a:2b:3c:4d:5e:6f
Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

1A2B3C4D5E6F
Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

1a2b3c4d5e6f
Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

1A-2B-3C-4D-5E-6F
Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

1a-2b-3c-4d-5e-6f
Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"


So when I start the freeradius server in debug mode (freeradius -X) and try to connect to the SSID with my device, an error occurs:



[...] -- line 777
(0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
(0) pap: WARNING: Authentication will fail unless a "known good" password is available
(0) [pap] = noop
(0) } # authorize = ok
(0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject
(0) Failed to authenticate the user
(0) Using Post-Auth-Type Reject
[...] -- line 783


Full logs available here. For information, 10.42.0.7 is my freeradius server and 10.42.0.22 is my WiFi access point. The SSID is named "testtt".



TL;DR: The configuration is correct according to the official documentation. The WiFi access point and the freeradius are well connected to each other but the radius server seems not to know the addresses even though they have been given...




EDIT



Here is the end of the file /etc/freeradius/3.0/sites-enabled/default :



server 
authorize
preprocess

# If cleaning up the Calling-Station-Id...
rewrite_calling_station_id

# Now check against the authorized_macs file
authorized_macs

if (!ok)
# No match was found, so reject
reject

else
# The MAC address was found, so update Auth-Type
# to accept this auth.
update control
Auth-Type := Accept













share|improve this question






























    0















    So I set up a freeradius 3.0 server on Debian 9 following the official documentation here and here. I have an authorized_mac file with the addresses of my devices and in the file /etc/freeradius/3.0/mods-enabled/files I indicated which file my mac addresses are in:



    files authorized_macs 
    # The default key attribute to use for matches. The content
    # of this attribute is used to match the "name" of the
    # entry.
    key = "%Calling-Station-ID"

    usersfile = $confdir/authorized_macs

    # If you want to use the old Cistron 'users' file
    # with FreeRADIUS, you should change the next line
    # to 'compat = cistron'. You can the copy your 'users'
    # file from Cistron.
    #compat = no



    My WiFi access point sends the MAC addresses to the radius server in the format 1A:2B:3C:4D:5E:6F but to be sure that the problem is not coming from there, my authorized_macs file looks like this:



    1A:2B:3C:4D:5E:6F
    Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

    1a:2b:3c:4d:5e:6f
    Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

    1A2B3C4D5E6F
    Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

    1a2b3c4d5e6f
    Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

    1A-2B-3C-4D-5E-6F
    Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

    1a-2b-3c-4d-5e-6f
    Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"


    So when I start the freeradius server in debug mode (freeradius -X) and try to connect to the SSID with my device, an error occurs:



    [...] -- line 777
    (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
    (0) pap: WARNING: Authentication will fail unless a "known good" password is available
    (0) [pap] = noop
    (0) } # authorize = ok
    (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject
    (0) Failed to authenticate the user
    (0) Using Post-Auth-Type Reject
    [...] -- line 783


    Full logs available here. For information, 10.42.0.7 is my freeradius server and 10.42.0.22 is my WiFi access point. The SSID is named "testtt".



    TL;DR: The configuration is correct according to the official documentation. The WiFi access point and the freeradius are well connected to each other but the radius server seems not to know the addresses even though they have been given...




    EDIT



    Here is the end of the file /etc/freeradius/3.0/sites-enabled/default :



    server 
    authorize
    preprocess

    # If cleaning up the Calling-Station-Id...
    rewrite_calling_station_id

    # Now check against the authorized_macs file
    authorized_macs

    if (!ok)
    # No match was found, so reject
    reject

    else
    # The MAC address was found, so update Auth-Type
    # to accept this auth.
    update control
    Auth-Type := Accept













    share|improve this question


























      0












      0








      0








      So I set up a freeradius 3.0 server on Debian 9 following the official documentation here and here. I have an authorized_mac file with the addresses of my devices and in the file /etc/freeradius/3.0/mods-enabled/files I indicated which file my mac addresses are in:



      files authorized_macs 
      # The default key attribute to use for matches. The content
      # of this attribute is used to match the "name" of the
      # entry.
      key = "%Calling-Station-ID"

      usersfile = $confdir/authorized_macs

      # If you want to use the old Cistron 'users' file
      # with FreeRADIUS, you should change the next line
      # to 'compat = cistron'. You can the copy your 'users'
      # file from Cistron.
      #compat = no



      My WiFi access point sends the MAC addresses to the radius server in the format 1A:2B:3C:4D:5E:6F but to be sure that the problem is not coming from there, my authorized_macs file looks like this:



      1A:2B:3C:4D:5E:6F
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1a:2b:3c:4d:5e:6f
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1A2B3C4D5E6F
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1a2b3c4d5e6f
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1A-2B-3C-4D-5E-6F
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1a-2b-3c-4d-5e-6f
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"


      So when I start the freeradius server in debug mode (freeradius -X) and try to connect to the SSID with my device, an error occurs:



      [...] -- line 777
      (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
      (0) pap: WARNING: Authentication will fail unless a "known good" password is available
      (0) [pap] = noop
      (0) } # authorize = ok
      (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject
      (0) Failed to authenticate the user
      (0) Using Post-Auth-Type Reject
      [...] -- line 783


      Full logs available here. For information, 10.42.0.7 is my freeradius server and 10.42.0.22 is my WiFi access point. The SSID is named "testtt".



      TL;DR: The configuration is correct according to the official documentation. The WiFi access point and the freeradius are well connected to each other but the radius server seems not to know the addresses even though they have been given...




      EDIT



      Here is the end of the file /etc/freeradius/3.0/sites-enabled/default :



      server 
      authorize
      preprocess

      # If cleaning up the Calling-Station-Id...
      rewrite_calling_station_id

      # Now check against the authorized_macs file
      authorized_macs

      if (!ok)
      # No match was found, so reject
      reject

      else
      # The MAC address was found, so update Auth-Type
      # to accept this auth.
      update control
      Auth-Type := Accept













      share|improve this question
















      So I set up a freeradius 3.0 server on Debian 9 following the official documentation here and here. I have an authorized_mac file with the addresses of my devices and in the file /etc/freeradius/3.0/mods-enabled/files I indicated which file my mac addresses are in:



      files authorized_macs 
      # The default key attribute to use for matches. The content
      # of this attribute is used to match the "name" of the
      # entry.
      key = "%Calling-Station-ID"

      usersfile = $confdir/authorized_macs

      # If you want to use the old Cistron 'users' file
      # with FreeRADIUS, you should change the next line
      # to 'compat = cistron'. You can the copy your 'users'
      # file from Cistron.
      #compat = no



      My WiFi access point sends the MAC addresses to the radius server in the format 1A:2B:3C:4D:5E:6F but to be sure that the problem is not coming from there, my authorized_macs file looks like this:



      1A:2B:3C:4D:5E:6F
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1a:2b:3c:4d:5e:6f
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1A2B3C4D5E6F
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1a2b3c4d5e6f
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1A-2B-3C-4D-5E-6F
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"

      1a-2b-3c-4d-5e-6f
      Reply-Message = "Device with MAC Address %Calling-Station-Id authorized for network access"


      So when I start the freeradius server in debug mode (freeradius -X) and try to connect to the SSID with my device, an error occurs:



      [...] -- line 777
      (0) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
      (0) pap: WARNING: Authentication will fail unless a "known good" password is available
      (0) [pap] = noop
      (0) } # authorize = ok
      (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject
      (0) Failed to authenticate the user
      (0) Using Post-Auth-Type Reject
      [...] -- line 783


      Full logs available here. For information, 10.42.0.7 is my freeradius server and 10.42.0.22 is my WiFi access point. The SSID is named "testtt".



      TL;DR: The configuration is correct according to the official documentation. The WiFi access point and the freeradius are well connected to each other but the radius server seems not to know the addresses even though they have been given...




      EDIT



      Here is the end of the file /etc/freeradius/3.0/sites-enabled/default :



      server 
      authorize
      preprocess

      # If cleaning up the Calling-Station-Id...
      rewrite_calling_station_id

      # Now check against the authorized_macs file
      authorized_macs

      if (!ok)
      # No match was found, so reject
      reject

      else
      # The MAC address was found, so update Auth-Type
      # to accept this auth.
      update control
      Auth-Type := Accept










      debian freeradius






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 23 at 8:48







      a_v_e_

















      asked Apr 23 at 8:27









      a_v_e_a_v_e_

      11




      11




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Problem solved.



          The piece of code I showed in my EDIT should not be added at the end of the file. In fact, the "authorize" section already exists and only this should be added after it (line 281):



          rewrite_calling_station_id
          # Now check against the authorized_macs file
          authorized_macs
          if (!ok)
          # No match was found, so reject
          reject

          else
          # The MAC address was found, so update Auth-Type
          # to accept this auth.
          update control
          Auth-Type := Accept







          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f964170%2ffreeradius-mac-authentication-error-mac-address-not-found%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Problem solved.



            The piece of code I showed in my EDIT should not be added at the end of the file. In fact, the "authorize" section already exists and only this should be added after it (line 281):



            rewrite_calling_station_id
            # Now check against the authorized_macs file
            authorized_macs
            if (!ok)
            # No match was found, so reject
            reject

            else
            # The MAC address was found, so update Auth-Type
            # to accept this auth.
            update control
            Auth-Type := Accept







            share|improve this answer



























              0














              Problem solved.



              The piece of code I showed in my EDIT should not be added at the end of the file. In fact, the "authorize" section already exists and only this should be added after it (line 281):



              rewrite_calling_station_id
              # Now check against the authorized_macs file
              authorized_macs
              if (!ok)
              # No match was found, so reject
              reject

              else
              # The MAC address was found, so update Auth-Type
              # to accept this auth.
              update control
              Auth-Type := Accept







              share|improve this answer

























                0












                0








                0







                Problem solved.



                The piece of code I showed in my EDIT should not be added at the end of the file. In fact, the "authorize" section already exists and only this should be added after it (line 281):



                rewrite_calling_station_id
                # Now check against the authorized_macs file
                authorized_macs
                if (!ok)
                # No match was found, so reject
                reject

                else
                # The MAC address was found, so update Auth-Type
                # to accept this auth.
                update control
                Auth-Type := Accept







                share|improve this answer













                Problem solved.



                The piece of code I showed in my EDIT should not be added at the end of the file. In fact, the "authorize" section already exists and only this should be added after it (line 281):



                rewrite_calling_station_id
                # Now check against the authorized_macs file
                authorized_macs
                if (!ok)
                # No match was found, so reject
                reject

                else
                # The MAC address was found, so update Auth-Type
                # to accept this auth.
                update control
                Auth-Type := Accept








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 23 at 9:39









                a_v_e_a_v_e_

                11




                11



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f964170%2ffreeradius-mac-authentication-error-mac-address-not-found%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                    What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                    Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos