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

    DHCP Leases, Interfaces, & ARP Table Tab Vendor MAC Change w/ 5-15 Snap

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    29 Posts 4 Posters 7.5k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      I don't like that it replaces the MAC column, often I want/need the MAC and not the vendor, but I also don't want another column.

      I prefer the more subtle approach of putting the vendor in a tooltip when you hover over the MAC, or on a second line below the MAC in a smaller font.

      Basically either flip the parameters in diag_arp.php:

      						if(isset($mac_man[$mac_hi])){ print "{$mac}"; }
      

      Or replace these two lines:

      						if(isset($mac_man[$mac_hi])){ print "{$mac_man[$mac_hi]}"; }
      						else{ print $mac; }
      

      with

      						print $mac;
      						if(isset($mac_man[$mac_hi])){ print "
      _{$mac_man[$mac_hi]}_"; }
      

      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
      • L
        LostInIgnorance
        last edited by

        I'll use that on a customer since he has a small screen and we don't have the widescreen installed on his. Ā I think he'll like that change a lot. Ā Thanks JimP!!

        As for me personally, I have way too much white space with the widescreen and would like to fill it up with something useful instead of having 4 columns of info and the rest is white space between.Ā  Looks bad on the interfaces tab with 2/3 of the screen not being used.Ā  Looking into modifying that next.

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

          I just checked in the two-line version:
          https://github.com/bsdperimeter/pfsense/commit/701989fbe44f22fc7ea1848ac7c14f361178e5c2

          Myself and probably many others rely on having the MAC there to copy and paste as needed, so we don't want to lose that capability just because the nmap package is loaded.

          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
          • L
            LostInIgnorance
            last edited by

            That the whole reason I decided to edit it.Ā  I enjoy having all the information in one place. To not only see the mac, but verify it with the company, and the ip.Ā  Then I definitely know I have the correct device.

            1 Reply Last reply Reply Quote 0
            • N
              Nachtfalke
              last edited by

              If there is a way to use the vencor and mac information without the nmap package I would prefer this way. ;)

              1 Reply Last reply Reply Quote 0
              • C
                Cino
                last edited by

                not my call, but I like the tooltip idea. This way the page is clean and i just hover my mouse over to see the vendor info.. I did notice something tho. If a client online, it doesn't show me the vendor info.. i've attach a screenshot for you to see

                dhcp.jpg
                dhcp.jpg_thumb

                1 Reply Last reply Reply Quote 0
                • L
                  LostInIgnorance
                  last edited by

                  ~~I think it might work if you post the vendor mac table in the same place. Ā Let me know if this works!

                  Uninstall nmap. Download attachment and remove the .txt. Un 7zip it. Ā Drop attached file into /usr/local/share/nmap/~~

                  @jimp:

                  mkdir -p /usr/local/share/nmap/; fetch -o /usr/local/share/nmap/nmap-mac-prefixes http://nmap.org/svn/nmap-mac-prefixes
                  

                  NOTE: This is the newest update from nmap for the mac prefex listing. Ā It is not the one included into the nmap package. (had to manually update it)

                  @Cino - Ā Like 192.168.0.10 Ā  :D

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

                    Just fixed the other display as well, should be consistent now for online/offline.

                    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
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      You could just do this also:

                      mkdir -p /usr/local/share/nmap/; fetch -o /usr/local/share/nmap/nmap-mac-prefixes http://nmap.org/svn/nmap-mac-prefixes
                      

                      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
                      • N
                        Nachtfalke
                        last edited by

                        @LostInIgnorance
                        is working but I could not open your 7z file. Just downloaded mac-prefixes on the homepage.

                        1 Reply Last reply Reply Quote 0
                        • L
                          LostInIgnorance
                          last edited by

                          @Nachtfalke - Deleted 7zip file from post to get rid of confusion and reposted what JimP had put.Ā  I couldn't download it either for some odd reason.

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