DHCP Radius proxy (IPv4 and IPv6)

Alan DeKok aland at deployingradius.com
Mon May 29 13:06:39 UTC 2023


On May 29, 2023, at 6:29 AM, Ľudovít Mikula <ludovit.mikula at mikori.sk> wrote:
> 
> 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.

  The example virtual servers should work.

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

  You've made a number of changes for reasons I don't understand.

  You should really start with the example, and then change as little as possible.  If the default doesn't work, then the default is wrong.  But if the default works and your changes break it, well... you know what happened.

  When you start off by changing random things and "it doesn't work", then you have no idea what the problem is.

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

  Why not just "listen {" as per the default?

>        listen unicast {

  Same thing here.

>                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

  You've broken it in unexpected ways.

  Also, are there *other* errors or warnings in the debug output?

  Alan DeKok.



More information about the Freeradius-Users mailing list