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

    Seeing Kea DHCP Issues after upgrade to 24.11

    Scheduled Pinned Locked Moved DHCP and DNS
    27 Posts 8 Posters 3.8k Views 13 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.
    • 3 Offline
      3aandl @ysam
      last edited by

      @ysam We had 7 VLANS here that were all /24 and we had no issues switching back. It is possible you may see a few hiccups as things renew IPs but overall, it was not a big deal. We also had boatloads of static leases.

      Y 1 Reply Last reply Reply Quote 0
      • Y Offline
        ysam @3aandl
        last edited by

        @3aandl Yup, you're right, we tested switching back standby pfsense and all went smooth so we also switched primary as well, no issues, but we also lost HA dhcp as well so now we stopped dhcp on standby for now..

        1 Reply Last reply Reply Quote 0
        • V Offline
          vMAC
          last edited by

          Is there a solution to this, as this is now the second time that this has happened in my network and I don't remember what the original solution was/is. I had this happen about 6 months ago and I think to fix it I just had to bump up the size of the subnet.

          I tried the below online and via putty and it doesn't generate any logs or outputs that I could find.

          @cmcdonald said in Seeing Kea DHCP Issues after upgrade to 24.11:

          @3aandl can you run at Diagnostics > Command Prompt

          echo '{"command":"config-get"}' | nc -U /var/run/kea4-ctrl-socket | jq

          and

          echo '{"command":"lease4-get-all"}' | nc -U /var/run/kea4-ctrl-socket | jq

          3 GertjanG L 3 Replies Last reply Reply Quote 0
          • 3 Offline
            3aandl @vMAC
            last edited by

            @vMAC I never heard anything back after uploading the files and from reading several forums it seems there are still a number of issues with KEA and it does not seem to be ready for "primetime". All of my issues disappeared after moving back to ISC

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

              @vMAC said in Seeing Kea DHCP Issues after upgrade to 24.11:

              echo '{"command":"config-get"}' | nc -U /var/run/kea4-ctrl-socket | jq

              and

              echo '{"command":"lease4-get-all"}' | nc -U /var/run/kea4-ctrl-socket | jq

              doesn't return a lot of info for you ?
              Wow .... not 'normal'.
              Actually, the process kea-ctrl (the kea control process) isn't listening to its "socket" for commands (you send to it using the commands shown above).
              It stopped running, or the socket is disconnected for 'some reason'.

              When I execute - onsodle or SSH ! - both commands shown, I receive a lot of info : the running state of the kea processes.

              Knowing that I severally modified the official config 24.11 kea IPv4 and IPv4 servers, and the control process "for testing new, not yet official implemented capabilities" see here and this was last week, and kea, all the process, are rock solid.
              I even have a new process now : kea-dhcp-ddns for my personal amusement (DNS IPv6 updates and reverse PTR updates) :

              [24.11-RELEASE][root@pfSense.bhf.tld]/root: ps ax | grep 'kea'
              30883  -  S        0:18.55 /usr/local/sbin/kea-dhcp4 -c /usr/local/etc/kea/kea-dhcp4.conf
              31322  -  S        0:06.73 /usr/local/sbin/kea-dhcp6 -c /usr/local/etc/kea/kea-dhcp6.conf
              37777  0- I        0:02.07 /usr/local/sbin/kea-dhcp-ddns -c /usr/local/etc/kea/kea-dhcp-ddns.conf
              41629  0- I        0:00.08 /usr/local/sbin/kea-ctrl-agent -c /usr/local/etc/kea/kea-ctrl-agent.conf
              

              True, this concerns 24.11, and I'm very happy about it.
              As good as ISC for me right now (touch wood).

              Btw : My setup is pretty vanilla.
              No VLAN's, just 3 classic LANs
              LAN : 192.168.1.1/24 with a pool 192.168.1.100 -> 192.168.1.250 - most of my devices use static MAC DHCP leases - two APs, a couple of (my own) wifi devices.
              LAN 2 : 192.168.2.1/24 with a pool 192.168.1.10 -> 192.168.1.250 - just 5 static leases (switch and 4 APs), as this is a captive portal. The rest is pool based = my captive portal visitors. Mostly wifi devices.
              LAN 3 : 192.168.3.1/24 some others stuff. Only a DHCP pool, not many 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
              • M mcury referenced this topic on
              • L Offline
                lazaro @vMAC
                last edited by

                @vMAC try with /tmp/kea4-ctrl-socket instead of /var/run/kea4-ctrl-socket

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

                  @lazaro said in Seeing Kea DHCP Issues after upgrade to 24.11:

                  of /var/run/kea4-ctrl-socket

                  That is where it is told to be / should be :

                  [25.03-BETA][root@pfSense.bhf.tld]/root: ll /var/run/kea4-ctrl-socket
                  srwxr-xr-x  1 root wheel 0 Jul  2 07:46 /var/run/kea4-ctrl-socket=
                  

                  This :

                  25.03-BETA][root@pfSense.bhf.tld]/root: grep -R 'kea4-ctrl-socket' /usr/local/etc/kea/*
                  /usr/local/etc/kea/kea-ctrl-agent.conf:            "socket-name": "/tmp/kea4-ctrl-socket"
                  /usr/local/etc/kea/kea-ctrl-agent.conf.sample:            "socket-name": "/tmp/kea4-ctrl-socket"
                  /usr/local/etc/kea/kea-dhcp4.conf:            "socket-name": "/var/run/kea4-ctrl-socket"
                  /usr/local/etc/kea/kea-dhcp4.conf.sample:        "socket-name": "/tmp/kea4-ctrl-socket"
                  

                  tells us that, for example, the "kea-ctrl-agent" process, that uses /usr/local/etc/kea/kea-ctrl-agent.conf as its config file, is told that the shared kea4-ctrl-socket is here : /tmp/
                  but ... the kea-ctrl-agent process isn't sued / started by pfSense.

                  [25.03-BETA][root@pfSense.bhf.tld]/usr/local/etc/kea: service kea status
                  DHCPv4 server: active
                  DHCPv6 server: active
                  DHCP DDNS: active
                  Control Agent: inactive
                  Kea DHCPv4 configuration file: /usr/local/etc/kea/kea-dhcp4.conf
                  Kea DHCPv6 configuration file: /usr/local/etc/kea/kea-dhcp6.conf
                  Kea DHCP DDNS configuration file: /usr/local/etc/kea/kea-dhcp-ddns.conf
                  Kea Control Agent configuration file: /usr/local/etc/kea/kea-ctrl-agent.conf
                  keactrl configuration file: /usr/local/etc/kea/keactrl.conf
                  

                  Note : I used the "DHCP DDNS" process also. That's of my own doing, and not yet implement in the offiacal pfSense.

                  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.