[Kea-users] mixing raw and udp sockets

Peter Davies peterd at isc.org
Thu Jun 19 08:47:03 UTC 2025


Hi Jaco,
    I am afraid it is not possible to mix the "udp" and "raw" socket types.

The "interfaces-config"."interfaces" contain a list of interfaces with 
an optional
IP address for Kea to listen to.

The "interface-config"."dhcp-socket-type" option contains information 
about the
socket type to use.

Kea will not load a configuration containing multiple occurrences of 
"interfaces-config".

If you need to mix socket types, you will need to run multiple Kea 
processes.

Alternately, you could investigate the possibility of relaying the local 
broadcast
traffic and using the "udp" socket type.

/Peter


On 18/06/2025 15.26, Jaco Kroon wrote:
> Hi All,
>
> ISC dhcpd always refused to bind non-ethernet sockets.  Which was 
> fine, but resulted in some issues.
>
> I'm now in a situation where I've got a setup where I've got a couple 
> of local interfaces (ethernet), which needs to bind raw, and then a 
> tun0 interface which is not ethernet, and based on testing have to use 
> udp sockets else kea-dhcp4 will not receive the incoming (relayed) 
> DHCP frames.
>
> Is there any way to mix and match socket types within a single 
> kea-dhcp4 instance?
>
> "interfaces": [ "tun0/172.17.0.0", "eth0", "eth1" ]
>
> Is the current setup, and eth* works when "dhcp-socket-type":"raw", 
> and "tun0/..." when "dhcp-socket-type":"udp".
>
> Suggestions and ideas?
>
> Kind regards,
> Jaco

-- 
Peter Davies
Support Engineer
Internet Systems Corporation



More information about the Kea-users mailing list