DHCP Radius proxy (IPv4 and IPv6)

Ľudovít Mikula ludovit.mikula at mikori.sk
Mon May 29 10:29:58 UTC 2023


So, I have succesfully configured DHCPv4 as you suggested.

I am trying hard to configure DHCPv6 with freeradius v4 (current 
master), but I must be missing something as even the basic configuration 
is not working.

This is my config - pretty much the very basic as defined in 
sites-available:

server dhcpv6 {
         namespace = dhcpv6
         all_dhcp_servers_and_relays = FF02::1:2
         interface = eth0
         port = 547

         listen multicast {
                 type = Solicit
                 transport = udp

                 udp {
                         max_attributes = 200
                         ipaddr = ${...all_dhcp_servers_and_relays}
                         port = ${...port}
                         interface = ${...interface}
                 }
         }

         listen unicast {
                 type = Request
                 type = Information-Request
                 transport = udp

                 udp {
                         max_attributes = 200
                         ipaddr = 2001:3200:3200::10
                         port = ${...port}
                         interface = ${...interface}
                 }
         }

         dhcpv6 {
         }

     # recv and send parts unchanged and removed for brevity
}


I'm using ISC DHCP Client 4.4.1 for testing: dhclient -v -d -6
and I get this errors in freeradius:

freeradius  | Mon May 29 10:09:32 2023: Debug : proto_dhcpv6_udp - 
Received Solicit XID 00db48c1 length 56 dhcpv6_udp server ff02::1:2 port 
547 on interface eth0
freeradius  | Mon May 29 10:09:32 2023: ERROR : (0)  ERROR: Virtual 
server "(null)" not compiled
freeradius  | Mon May 29 10:09:32 2023: ERROR : (0)  ERROR: Protocol 
failed to set 'process' function
freeradius  | Mon May 29 10:09:32 2023: Debug : proto_dhcpv6_udp - 
cleaning up request in 5.000000s


Ludo


More information about the Freeradius-Users mailing list