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

    Arpwatch email notifications not including hostname or vendor

    Scheduled Pinned Locked Moved DHCP and DNS
    14 Posts 4 Posters 3.8k Views 4 Watching
    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.
    • A Offline
      alexm2019 @lburr
      last edited by

      @lburr
      Hi, I have the vendor bit working ok. I'm on the 2.5.2 pfsense version, there is a tick box on the settings page of arpwatch to update vendors. Tick that, hit save, it downloads the file and vendors will appear.

      It's the missing host names that are really getting to me. They are in the diagnostics/arp table page but do not turn up on the arpwatch database at all. Manual check every time...

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @alexm2019
        last edited by

        @alexm2019 said in Arpwatch email notifications not including hostname or vendor:

        It's the missing host names that are really getting to me.

        Host names are known to the local 'pfSense' DNS when you select "DHCP registration" :

        bd2ff88a-55ef-4b3a-acf5-59c7fd1476d2-image.png

        But, as widely known, that comes with a price (see the other several hundreds forum threads about what happens when you activate this option).
        Important note : not ever DHCP client communicates a host name when its registering with the DHCP server.

        That's where "Static DHCP" comes in nicely. YOU define the host name for every device you enter there.

        As such, for me, arpwatch knows all the names of all my networks devices, as I've made an "Static DHCP MAC lease" entry for all those I need to know by name and or address.

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

        A P 2 Replies Last reply Reply Quote 0
        • A Offline
          alexm2019 @Gertjan
          last edited by

          @gertjan
          Thank you!
          Flushing the resolution cache on each DHCP lease seems like a bad idea. I haven't read up the issues others have had yet. Will look into it later.
          I've got almost everything on static DHCP reservations already so have ticked that. Annoyingly the notifications I would be interested in information on are the extra things that turn up... ie. will not be on the static dhcp list anyway. Small step in the right direction I guess.

          1 Reply Last reply Reply Quote 0
          • P Offline
            pulsartiger @Gertjan
            last edited by

            @gertjan

            Hello. I just started using Arpwatch today. Ive been using static DHCP mappings for many of my devices on my network (via Services/DHCP Server/LAN) but the Arpwatch database is not showing the hostnames that I gave my devices, they are all blank. The 'Vendor' is also "unknown", so its basically making Arpwatch useless. Any ideas why this is happening? I would like by the hostnames that I set and also the Vendor to show in the Arpwatch database. Thanks.

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG Offline
              Gertjan @pulsartiger
              last edited by

              @pulsartiger

              "arpwatch" is just the program, and it needs a look up table to match MAC addresses to vendor names. Some sort of text database, actually just a text file.

              49ff4178-c352-41bc-b428-4878b4efafdc-image.png
              You told it to download the database :

              1c3a4ed2-633f-4089-b489-e2010c22796b-image.png

              ?

              The data base was downloaded : In /usr/local/arpwatch/ you should find :

              3e70ac47-c962-470b-b738-dd7cb11b3f57-image.png

              It's the "ethercodes.dat" file (977 KB) that gets downloaded from http://standards-oui.ieee.org/oui/oui.csv
              For me, the "arp_em1.dat" file is the list with devices found on my em1 interface = my LAN interface, which is the database list shwon in the first image.

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

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                pulsartiger @Gertjan
                last edited by

                @gertjan said in Arpwatch email notifications not including hostname or vendor:

                @pulsartiger

                "arpwatch" is just the program, and it needs a look up table to match MAC addresses to vendor names. Some sort of text database, actually just a text file.

                Ah, thank you. I have the 'Vendor' column updated now. I saw that setting but its a bit misleading. It states "Updates the ethernet vendor database". Since I just installed Arpwatch, I assumed the database was downloaded and I didnt need to update it. That setting actually download the database for the first time. ๐Ÿ‘

                @Gertjan Any ideas why the 'Hostname' column isnt updating with the hostnames that I have in Services/DHCP Server/LAN ? (Static DHCP mappings)

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG Offline
                  Gertjan @pulsartiger
                  last edited by Gertjan

                  @pulsartiger said in Arpwatch email notifications not including hostname or vendor:

                  Any ideas why the 'Hostname' column ...

                  4968659a-1c52-4a76-960b-26e578dace33-image.png

                  So, on the command line, when I use 'arp' :

                  [2.5.2-RELEASE][root@pfsense.my.place]/root: arp pfsense
                  pfsense.my.place (192.168.1.1) at 00:15:17:xx:ab:cd on em1 permanent [ethernet]
                  

                  'arp' uses internal 'FreeBSD' tables, and uses probably some jedi mind tricks (a DNS reverse request ?), when it has the MAC and IP, it can obtain the host name - if known locally. The guy who is paid to know all these things : the resolver : unbound.

                  You said you use a lot of Static DHCP lease, so go have a look into here

                  cat /etc/hosts
                  

                  as all DHCP static leases details are stored over there.

                  That file, the famous /etc/hosts, is included by unbound, the Resolver, see the line

                  # Static host entries
                  include: /var/unbound/host_entries.conf
                  

                  in /var/unbound/unbound.conf

                  The "/var/unbound/host_entries.conf" file is created from /etc/hosts.

                  To make a long story short :
                  If the resolver (unbound) works, arp and thus arpwatch knows all about hosts from the /etc/hosts.

                  Btw : There is a condition : This option should be enabled :

                  Page Services > DNS Resolver > General Settings

                  d349a02b-73c5-4d89-9682-eec1e505e91d-image.png

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

                  P 1 Reply Last reply Reply Quote 0
                  • P Offline
                    pulsartiger @Gertjan
                    last edited by

                    @gertjan said in Arpwatch email notifications not including hostname or vendor:

                    Page Services > DNS Resolver > General Settings

                    @Gertjan - Yep, I checked that setting off after finding this thread when searching for an answer. It doesnt appear that Arpwatch updates the hostnames if this setting is enabled after devices are in the list. I ended up clear the databases and now my devices show the Hostnames. Thanks for the help on this! ๐Ÿ‘

                    P 1 Reply Last reply Reply Quote 1
                    • P Offline
                      pulsartiger @pulsartiger
                      last edited by pulsartiger

                      @Gertjan

                      I'm back again. I just realized that I have several devices that I do not have a static IP address assigned to them but I do have a static mapping, which I assigned a Hostname. Is it possible for Arpwatch to see these mappings or does it only look at static IP addresses?

                      EDIT: I am a bit confused. I dont recall how I set the Hostnames of my devices that I did not assign a static IP address for. When I go into 'Status / DHCP Leases', I see all of my devices. The ones that I have a static IP address for are at the top (with a person icon next to them), my other devices are below the static IP address. When I first setup pfsense, I set the Hostnames. I dont recall how I did this.

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG Offline
                        Gertjan @pulsartiger
                        last edited by

                        @pulsartiger said in Arpwatch email notifications not including hostname or vendor:

                        I dont recall how I did this.

                        Then recall.
                        Go to Services > DHCP Server> LAN and go to the bottom of the page.
                        Look under "DHCP Static Mappings for this Interface (total: xx)"

                        The "Hostname' column will be the host name.

                        I have some Static DHCP mappings listed that are actually devices NOT using DHCP, they have a static IP setup. Arpwatch doesn't mind. It will list all 'live' MAC with IP devices.

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

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