FreeRADIUS 4.0.0 and DHCP

Montana Bag montana.bag at gmail.com
Wed Jul 12 14:56:09 CEST 2017


Hello all!


I have a problem with "listen" section for the dhcp module.
I download and install last version freeradius 4.0.0 (with github)

I get this error:
Debug :   server dhcp {
Error : /usr/local/etc/raddb/sites-enabled/dhcp[23]: virtual server
dhcp MUST contain a 'namespace' option


After adding the required option (namespace = "dhcpv4"):
Debug :   server dhcp {
Debug :     namespace = "dhcpv4"
Error : /usr/local/etc/raddb/sites-enabled/dhcp[44]: Failed to link to
module "proto_dhcpv4": /usr/local/lib/proto_dhcpv4.so: undefined
symbol: common_socket_open : /usr/local/lib/proto_dhcpv4.so: undefined
symbol: common_socket_open
Error : /usr/local/etc/raddb/sites-enabled/dhcp[44]: Make sure it (and
all its dependent libraries!) are in the search path of your system's
ld
Error : /usr/local/etc/raddb/sites-enabled/dhcp[44]: Failed loading proto module

I change listen section:

        listen {
                type = dhcp

                transport = udp

                udp {
                        ipaddr = *
                        port = 67
                }
        }

But this did not work.


Full output of 'radiusd -X'

Info  : FreeRADIUS Version 4.0.0
Info  : Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
Info  : There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Info  : PARTICULAR PURPOSE
Info  : You may redistribute copies of FreeRADIUS under the terms of the
Info  : GNU General Public License
Info  : For more information about these matters, see the file named COPYRIGHT
Info  : Starting - reading configuration files ...
Debug : Including dictionary file "/usr/local/share/freeradius/dictionary"
Debug : Including dictionary file "/usr/local/etc/raddb/dictionary"
Debug : Including configuration file "/usr/local/etc/raddb/radiusd.conf"
Debug : Including configuration file "/usr/local/etc/raddb/clients.conf"
Debug : Including files in directory "/usr/local/etc/raddb/mods-enabled/"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/linelog"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/unpack"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/files"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/soh"
Debug : Including configuration file
"/usr/local/etc/raddb/mods-enabled/cache_eap"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/detail"
Debug : Including configuration file
"/usr/local/etc/raddb/mods-enabled/logintime"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/chap"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/unix"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/digest"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/dhcpv4"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/exec"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/pap"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/expr"
Debug : Including configuration file
"/usr/local/etc/raddb/mods-enabled/expiration"
Debug : Including configuration file
"/usr/local/etc/raddb/mods-enabled/ntlm_auth"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/always"
Debug : Including configuration file
"/usr/local/etc/raddb/mods-enabled/sradutmp"
Debug : Including configuration file
"/usr/local/etc/raddb/mods-enabled/detail.log"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/utf8"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/radutmp"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/echo"
Debug : Including configuration file
"/usr/local/etc/raddb/mods-enabled/attr_filter"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/passwd"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/client"
Debug : Including configuration file "/usr/local/etc/raddb/mods-enabled/mschap"
Debug : Including files in directory "/usr/local/etc/raddb/policy.d/"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/eap"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/vendor"
Debug : Including configuration file
"/usr/local/etc/raddb/policy.d/canonicalization"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/accounting"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/abfab-tr"
Debug : Including configuration file
"/usr/local/etc/raddb/policy.d/operator-name"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/debug"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/filter"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/cui"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/dhcp"
Debug : Including configuration file "/usr/local/etc/raddb/policy.d/control"
Debug : Including files in directory "/usr/local/etc/raddb/sites-enabled/"
Debug : Including configuration file "/usr/local/etc/raddb/sites-enabled/dhcp"
Debug : main {
Debug :   security {
Debug :     allow_core_dumps = no
Debug :     max_attributes = 200
Debug :     reject_delay = 1.000000
Debug :     status_server = yes
Debug :     allow_vulnerable_openssl = "yes"
Debug :   }
Debug :   name = "radiusd"
Debug :   prefix = "/usr/local"
Debug :   localstatedir = "/usr/local/var"
Debug :   run_dir = "/usr/local/var/run/radiusd"
Debug : }
Debug : main {
Debug :   security {
Debug :     allow_core_dumps = no
Debug :     max_attributes = 200
Debug :     reject_delay = 1.000000
Debug :     status_server = yes
Debug :     allow_vulnerable_openssl = "yes"
Debug :   }
Debug :   name = "radiusd"
Debug :   prefix = "/usr/local"
Debug :   localstatedir = "/usr/local/var"
Debug :   run_dir = "/usr/local/var/run/radiusd"
Debug :   sbindir = "/usr/local/sbin"
Debug :   logdir = "/usr/local/var/log/radius"
Debug :   libdir = "/usr/local/lib"
Debug :   radacctdir = "/usr/local/var/log/radius/radacct"
Debug :   hostname_lookups = no
Debug :   max_request_time = 30
Debug :   cleanup_delay = 5
Debug :   continuation_timeout = 15
Debug :   max_requests = 16384
Debug :   pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
Debug :   checkrad = "/usr/local/sbin/checkrad"
Debug :   debug_level = 0
Debug :   proxy_requests = yes
Debug :   log {
Debug :     stripped_names = no
Debug :     auth = no
Debug :     auth_badpass = no
Debug :     auth_goodpass = no
Debug :     colourise = yes
Debug :     msg_denied = "You are already logged in - access denied"
Debug :   }
Debug :   resources {
Debug :   }
Debug :   server dhcp {
Debug :     namespace = "dhcpv4"
Error : /usr/local/etc/raddb/sites-enabled/dhcp[44]: Failed to link to
module "proto_dhcpv4": /usr/local/lib/proto_dhcpv4.so: undefined
symbol: common_socket_open : /usr/local/lib/proto_dhcpv4.so: undefined
symbol: common_socket_open
Error : /usr/local/etc/raddb/sites-enabled/dhcp[44]: Make sure it (and
all its dependent libraries!) are in the search path of your system's
ld
Error : /usr/local/etc/raddb/sites-enabled/dhcp[44]: Failed loading proto module

uname -a
Linux srv-debian8-template 3.16.0-4-amd64 #1 SMP Debian
3.16.43-2+deb8u2 (2017-06-26) x86_64 GNU/Linux

radiusd -v
Info  : radiusd: FreeRADIUS version 4.0.0, for host
x86_64-unknown-linux-gnu, built on Jul 12 2017 at 14:06:38
Info  : FreeRADIUS Version 4.0.0
Info  : Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
Info  : There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Info  : PARTICULAR PURPOSE
Info  : You may redistribute copies of FreeRADIUS under the terms of the
Info  : GNU General Public License
Info  : For more information about these matters, see the file named COPYRIGHT


Before that, I used freeradius 4.0.0 with the dhcp module and it worked
How to properly configure the socket for DHCP?

Thanks for your help.

Ivan


More information about the Freeradius-Users mailing list