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.
    • C
      Cino
      last edited by

      I added the code and was able to see it fine without the widescreen package, 1024x768. Fits perfectly!

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

        I edited the file, copied it to the directory but couldn't see anything.

        Should I have to restart the webserver - if yes how could I do that ?
        The Layout with mac AND vendor together is very interesting for me!

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

          do you have the nmap package installed? You need that for it to display the vendor names

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

            Hi,

            yes I did.
            Installed the nmpa package
            downloades the diag_arp.php file
            edited the file Notepadd++
            uploaded it
            copied it from /tmp/ to /usr/local/www/

            it now only shows me the complete vendor name without any mac.

            Strange - it should work…I just did copy & paste...

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

              Did you replace the section as outlined above?  I did leave some of the other lines in there to show where it goes.

              Here, to make it easier, I added an attachment of my ARP file.

              EDIT: Decided to just upload all three.  Just make sure to get rid of the .txt at the end.

              diag_arp.php.txt
              status_dhcp_leases.php.txt
              status_interfaces.php.txt

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

                I didn't get it work … :(

                I deleted /usr/local/www/diag_arp.php and copied there thge new on. I checked it with time and date.
                I restarted the webcopnfigurator from the console but with no success.

                I have iperf, nmap and openvpn export utility installed.
                I am using this snapshot:
                2.0-RC2 (amd64) built on Sun May 15 04:20:20 EDT 2011

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

                  I am so stupid…
                  Your last post did it.

                  Of course I have to edit all three .php files and not only just one....next time I will read the thread a second time ;-)

                  Thank you very much for your patience!!
                  Now it looks very well!

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

                    Can't say I haven't done that before to myself.  :P

                    Glad you like it  :D

                    1 Reply Last reply Reply Quote 0
                    • 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.