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

    eapol_test build with wpa_supplicant

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 3 Posters 1.1k 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.
    • E
      Ethereal
      last edited by

      Hi all,

      Did anyone try to build eapol_test tool out of wpa_supplicant ?
      I'm using wpa_supplicant 2.6 and when I try to actually "make" eapol_test I get the below output:

      [2.4.4-DEVELOPMENT][admin@friday.localdomain]/usr/local/etc/wpasupplicant/wpa_supplicant-2.6/wpa_supplicant: make eapol_test.c 
      make: "/usr/local/etc/wpasupplicant/wpa_supplicant-2.6/wpa_supplicant/Makefile" line 1: Need an operator
      make: "/usr/local/etc/wpasupplicant/wpa_supplicant-2.6/wpa_supplicant/Makefile" line 3: Need an operator
      make: "/usr/local/etc/wpasupplicant/wpa_supplicant-2.6/wpa_supplicant/Makefile" line 5: Need an operator
      

      The output goes like that for over 1000 lines.

      Thanks,

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        pfSense does not include a full compiler environment. You can't make anything on the firewall.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • E
          Ethereal
          last edited by

          Thanks @jimp !
          Do you have maybe a suggestion or point me in the right direction ?

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Compile it on an equivalent FreeBSD installation. For example, 2.4.4 is based on FreeBSD 11.2.

            So compile on FreeBSD 11.2 then copy the resulting binary.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • E
              Ethereal
              last edited by

              Thanks @jimp,

              So I've built a VM running 11.2,
              1 - I've downloaded wpa_supplicant-2.6 > wget
              2 - Extracted the file.
              3 - cp defconfig .config
              4 - gmake eapol_test

              and then I get this:
              0_1541005293533_a207cb99-3360-4b95-a204-90491dfbd53c-image.png
              any thoughts?

              Cheers,
              N

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Don't use the source directly. Use ports.

                cd /usr/ports/security/wpa_supplicant
                env BATCH=yes make configure
                cd work/wpa_supplicant-2.6/wpa_supplicant
                gmake eapol_test
                

                Then the binary is in ./eapol_test

                Whether or not it works, I don't know.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 1
                • E
                  Ethereal
                  last edited by Ethereal

                  Thanks @jimp !! So I followed your suggestions and built it on a 11.2 BSD VM and moved it to pfSense.
                  eapol_test is now running on my pfsense VM.

                  Cheers,
                  N

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    And does it work as expected?

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • E
                      Ethereal
                      last edited by

                      I did not get a success authentication test yet, but I assume this is due to my configuration file or a cert. issue.
                      Cheers,
                      N

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