OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: trdeal on June 18, 2025, 10:30:32 AM

Title: 25.1.8_1 Kea DHCPv4 and DHCPv6 still issues
Post by: trdeal on June 18, 2025, 10:30:32 AM
Hi,
Upgraded to 25.1.8_1 and tried replacing ISC DHCPv4 and DHCPv6 with Kea DHCPv4 and DHCPv6.
When Kea DHCPv4 is configured with a RAW socket type, then I can see the DHCP interactions for both IPv4 and IPv6 on one VLAN but not the other, when I configure Kea DHCPv4 with a UDP socket then I can see DHCPv6 interactions but no DHCPv4 entries and my client does not obtain an IPv4 address. While my client can appear to renew its IPv6 address, the IPv4 address renewal fails.
My client on another VLAN there is no interaction recorded in the logs for IPv6 or IPv4 with the socket configured as RAW or UDP..
When I stop and start the Kea DHCPv4 service the logs report that it is the DHCPv6 service that has been restarted, should it report that DHCPv4 service has restarted?
Title: Re: 25.1.8_1 Kea DHCPv4 and DHCPv6 still issues
Post by: mattiarainieri on June 25, 2025, 10:21:25 PM
I also have some strange behavior, very similar to the one described by you.
I've got 2 different VLANs, tagged on the same physical interface.
When the socket type is set to "RAW" the DHCPv4 distributes IPv4 addresses only on one VLAN. I've also configured both subnets, but sometimes it takes the IP address from the wrong one.
Since the used ISP is IPv4 only, I've enabled only the v4 version, and i can confirm it does not work when the sock type is set to "UDP".
Title: Re: 25.1.8_1 Kea DHCPv4 and DHCPv6 still issues
Post by: IsaacFL on June 26, 2025, 04:23:18 AM
I'm using Kea for both ipv6 and ipv4 and not seeing this. I am using raw socket on ipv4 side. I don't see the setting for that on the IPv6 side
Title: Re: 25.1.8_1 Kea DHCPv4 and DHCPv6 still issues
Post by: dinguz on June 26, 2025, 06:05:21 AM
Have you tried rebooting after toggling udp/raw? I found out it sometimes didn't reload the associated firewall rules automatically after a change.
Title: Re: 25.1.8_1 Kea DHCPv4 and DHCPv6 still issues
Post by: mattiarainieri on June 26, 2025, 03:30:49 PM
Quote from: dinguz on June 26, 2025, 06:05:21 AMHave you tried rebooting after toggling udp/raw? I found out it sometimes didn't reload the associated firewall rules automatically after a change.

I've tried, but nothing happend.

Quote from: IsaacFL on June 26, 2025, 04:23:18 AMI'm using Kea for both ipv6 and ipv4 and not seeing this. I am using raw socket on ipv4 side. I don't see the setting for that on the IPv6 side

Are you using VLANs on the same physical interface?
Title: Re: 25.1.8_1 Kea DHCPv4 and DHCPv6 still issues
Post by: IsaacFL on June 26, 2025, 11:23:43 PM
Yes, I only have 2 physical interface and all vlans are on one(OPT1) and LAN with no vlans. Kea is active on all of them IPv6, and ipv4