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

    DHCP issues

    Scheduled Pinned Locked Moved DHCP and DNS
    26 Posts 2 Posters 2.9k 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.
    • I
      interessierter
      last edited by

      Hi!

      The system run now since years with this package and mostly the same configuration. Is use the DNSBL for getting IP lists and block if there is a request coming. When I disable the service, there is no change in the behavior, also when I disable pfBlocker

      1 Reply Last reply Reply Quote 0
      • I
        interessierter
        last edited by

        PS: On the gui I have no option anymore to uninstall this services, they are not listed andmore in the installed packages view. That is since there was a need to recover the firewall and restore from backup

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

          @interessierter said in DHCP issues:

          no option anymore to uninstall this services

          So the settings are rather 'non-defined'.
          A good reason the re set it up - clean.

          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
          • I
            interessierter
            last edited by

            No the installed software is simply not in the section of installed addin.

            I have reinstalled and restores with a backup 3 weeks ago

            1 Reply Last reply Reply Quote 0
            • I
              interessierter
              last edited by

              It seems like that every time the DHCP server is writing this one in the Log:

              May 2 09:50:08 dhcpleases Sending HUP signal to dns daemon(86307)

              The DNS Resolver restart

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

                @interessierter said in DHCP issues:

                It seems like that every time the DHCP server is writing this one in the Log:
                May 2 09:50:08 dhcpleases Sending HUP signal to dns daemon(86307)
                The DNS Resolver restart

                That's normal.

                THe question to be asked is : what is the reason that a device (more, devices ?) are asking every 3 seconds for a new lease ?

                What is the lease time setup in pfSense => DHCP server ?
                What is the lease time received by a (the) device(s) ? ( on a Windows PC, ise "ipconfig /all" and you see the lease start and end)

                Also,
                If this option is set (checked) :

                a8e2bb89-4700-4d18-bbda-371eeec31011-image.png

                Then yeah, you're asking that unbound, the Resolver, gets restarted when a new DHCP gets registered.

                For this and more reasons, it is very advisable to declare all your known devices with a DHCP-static -leases on pfSense.
                This way unbound doesn't get hammered any more if some stupid device is re asking a new lease every XX seconds.

                Still, look for this device, and throw it out of the windows - out of the Wifi range if you have one.

                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
                • I
                  interessierter
                  last edited by

                  DHCP registration is checked as this makes sense why not?

                  And you are right, it seems like my dhcp lease is only 3 secs valid. But where is the option to change this? I have never touched this

                  1 Reply Last reply Reply Quote 0
                  • I
                    interessierter
                    last edited by

                    I have checked again the settings. The field was simply empty in the GUI, and the default is 7200 sec. I have no idea why he was refreshing it all 3 secs. I have added now 7200 sec in the field, now the lease time is at it should be.

                    I will follow up if the DNS server is still crashing however, it seems like the Backup/Restore is not really propery working right now

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

                      @interessierter said in DHCP issues:

                      The field was simply empty in the GUI, and the default is 7200 sec. I have no idea why he was refreshing it all 3 secs. I have added now 7200 sec in the field, now the lease time is at it should be.

                      If the 'device' wants a certain lease time, it can have it.
                      All devices are not equally 'designed' ;) Some exists to really do the max to break your network - a lease time of 3 seconds make no sense at all.
                      If a device doesn't specify a requested lease time, pfSEnse will offer it's default value, that is 7200 seconds. Still, keep in mind that the 'device' can override this, and re asks a new lease when ever it wants.
                      Best solution is : see if this behaviour can be changed for this device. You have to change it's settings.
                      If not => it belongs in the waste bin.

                      @interessierter said in DHCP issues:

                      DHCP registration is checked as this makes sense why not?

                      Again : every new lease WILL restart the resolver, so that it includes the new IP and it's hostname.
                      That is, this functionality is logic, if you want to be able to resolve the hostname of your device. Very useful if you want to connect to it from another device.
                      But ask yourself : do you really want to connect to your phone ? The answer is probably : no.

                      And again : in company networks, and well setup private home networks, all devices are staticliy mappedDHCP leases. Only unknown devices are left 'non configured', because you don't know their MAC address anyway.
                      That is : unknown devices (visitors to your network etc) belong on a dedicated - non private - network.

                      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
                      • I
                        interessierter
                        last edited by

                        I know that other devices can maybe overwrite the offer of the lease time. After I changed the value to 7200, the server no starts again all 7 minutes. Sure the situation is better, but not entirely done right now.

                        I have found out, that my sony beamer is asking all 5secs for a IP. And this device have already his static dhcp IP address, but not set directly on the device.

                        Yes I want to connect my device to wlan, but its a different network and so out of scope here anyway

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

                          @interessierter said in DHCP issues:

                          And this device have already his static dhcp IP address, but not set directly on the device.

                          Devices that have a static DHCP on pfSense are included in the DNS for live, so no DNS restarts will happens when these devices asking for a new lease.

                          @interessierter said in DHCP issues:

                          that my sony beamer is asking all 5secs for a IP.

                          Normally, devices start their DHCP-client that asks for a lease when it's interface goes up (which implies it was down just before). Check that device.
                          Or, by default :

                          @Gertjan said in DHCP issues:

                          throw it out of the windows

                          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.