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

Kea DHCP Feature Roadmap

DHCP and DNS
13
30
4.9k
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
    cmcdonald Netgate Developer @thermo
    last edited by cmcdonald Aug 27, 2024, 7:54 PM Aug 27, 2024, 7:38 PM

    Progress update:

    Unbound registration can be enabled/disabled for DHCP and DHCPv6 independently (yes this new integration supports v6). Updates occur asynchronously and never restart Unbound. In fact, enabling/disabling registration doesn't even restart Unbound. Instead, we work out what records need to be added/removed, make those changes via unbound-control and then write out a snippet of Unbound configuration that is used to "seed" Unbound with a set of lease records if Unbound is restarted for whatever reason.

    We try several options for determining the domain name. In order of precedence:

    1. domain-name option set in the response packet? (only applicable to v4)
    2. first search domain set in the response packet? (the first option for v6)
    3. finally, the system domain as a last resort

    The record ttl is one-third the lifetime of the lease. So if the lease has a lifetime of 7200 seconds, the record ttl is 2400 seconds.

    So if you have multiple address pools with different options, those leases could potentially have different domains used in the registration.

    Note: These final UI details are subject to change

    Here is the DHCPv4 global setting:
    login-to-view

    Per-subnet overrides:
    login-to-view

    • Use server default tracks the server policy
    • Enable unconditionally enables registration, regardless of default policy
    • Disable ... does the obvious thing.

    Need help fast? https://www.netgate.com/support

    K 1 Reply Last reply Aug 27, 2024, 8:02 PM Reply Quote 5
    • K
      keyser Rebel Alliance @cmcdonald
      last edited by Aug 27, 2024, 8:02 PM

      @cmcdonald This is REALLY excellent Christian🙏🤘Very good work and a simple/easy to understand UI to configure it.
      Exactly what have been severely missing in the pfSense DNS solution for years ♥️

      Love the no fuss of using the official appliances :-)

      M 1 Reply Last reply Aug 27, 2024, 8:04 PM Reply Quote 2
      • M
        mcury @keyser
        last edited by Aug 27, 2024, 8:04 PM

        Hello, thanks for the hard work, it is getting awesome indeed =)

        Let me ask,
        Will be possible to run DHCP relay on one interface but not the other ?
        I mean, run pfSense's DHCP for a guest VLAN and DHCP relay for another ?

        dead on arrival, nowhere to be found.

        K C 2 Replies Last reply Aug 27, 2024, 8:45 PM Reply Quote 0
        • K
          keyser Rebel Alliance @mcury
          last edited by Aug 27, 2024, 8:45 PM

          @mcury Yeah, that would be a VERY nice feature indeed. ESPECIALLY if the DHCP relay could be brought to work properly with DHCP servers at the other end of IPSec S2S tunnels

          Love the no fuss of using the official appliances :-)

          M 1 Reply Last reply Aug 27, 2024, 8:47 PM Reply Quote 0
          • M
            mcury @keyser
            last edited by Aug 27, 2024, 8:47 PM

            @keyser said in Kea DHCP Feature Roadmap:

            @mcury Yeah, that would be a VERY nice feature indeed. ESPECIALLY if the DHCP relay could be brought to work properly with DHCP servers at the other end of IPSec S2S tunnels

            I had to restore a laptop image through Synology ACB and I couldn't use PXE boot because of this.. The only way was to disable DHCP for all networks in pfSense, then use DHCP relay through the tunnel.

            dead on arrival, nowhere to be found.

            1 Reply Last reply Reply Quote 0
            • C
              cmcdonald Netgate Developer @mcury
              last edited by cmcdonald Aug 28, 2024, 2:03 AM Aug 28, 2024, 2:00 AM

              @mcury I've explored this and actually made some pretty decent progress on it. Though, that was a year or two ago. Once I complete the Kea integration I will look into this again. It is something I too have wanted in pfSense.

              Technically speaking, it is possible. However, the ISC dhcpd server and relay were not originally written with this use-case in mind. In fact, they share quite a bit of code. Along that same vein, the current dhcp relay in pfSense is still based on the EOL dhcpd code, so we are actively exploring alternatives here as well. One idea is to write a relay plugin for Kea and actually run the relay directly inside Kea. Another is to just write a new relay in something like Go. DHCP relaying isn't technically complicated, the hardest part is just parsing the packets. Everything else is just packet transforms. There is no active state to maintain as all the state needed to do DHCP relaying is self-contained in the DHCP packets themselves...so you could say DHCP relaying is a stateless operation from the perspective of the relay agent.

              Regardless of the direction we choose, I will make sure that we can run DHCP server and relay simultaneously on the same box (albeit on different interfaces of course).

              Need help fast? https://www.netgate.com/support

              M 1 Reply Last reply Aug 28, 2024, 2:52 AM Reply Quote 3
              • M
                mcury @cmcdonald
                last edited by Aug 28, 2024, 2:52 AM

                @cmcdonald That would be great
                Really thanks for all the efforts, if you need someone to help testing, just ping 👍

                dead on arrival, nowhere to be found.

                1 Reply Last reply Reply Quote 1
                • J
                  Jossk
                  last edited by Feb 6, 2025, 6:35 PM

                  Sorry to revive an old thread. It's now 2025, with no updates.

                  @cmcdonald Is there a roadmap (even an unofficial, no hard dates)?

                  And/or a feature comparison.

                  Thanks

                  S I 2 Replies Last reply Feb 6, 2025, 6:56 PM Reply Quote 0
                  • S
                    SteveITS Galactic Empire @Jossk
                    last edited by Feb 6, 2025, 6:56 PM

                    @Jossk There was:
                    https://docs.netgate.com/pfsense/en/latest/releases/24-11.html#general
                    ...which links to:
                    https://www.netgate.com/blog/improvements-to-kea-dhcp
                    and:
                    https://redmine.pfsense.org/issues/15650

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote 👍 helpful posts!

                    1 Reply Last reply Reply Quote 0
                    • I
                      imark77 @Jossk
                      last edited by Feb 6, 2025, 7:05 PM

                      @Jossk noo no problem that's something I would do anyway. Good to have relevant information together.

                      J 1 Reply Last reply Feb 6, 2025, 7:12 PM Reply Quote 0
                      • J
                        Jossk @imark77
                        last edited by Feb 6, 2025, 7:12 PM

                        @imark77 Thanks. As it stands, you have to do lots of digging around to see if feature parity matches your needs.

                        Would give you an upvote if I could.

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