Hi, When debugging freeradius config, we use radiusd -X which can offer a lot of useful datas like rad_recv: Access-Request packet from host 172.21.175.132 port 32769, id=166, length=332 User-Name = "nagios@ac-orleans-tours.fr" NAS-IP-Address = 172.21.175.132 NAS-Identifier = "hello" NAS-Port = 0 Called-Station-Id = "2C-B0-5D-A4-52-00:WIFI-ACAD" Calling-Station-Id = "8C-77-12-53-62-0E" Framed-MTU = 1400 NAS-Port-Type = Wireless-802.11 Connect-Info = "CONNECT 0Mbps 802.11g" but in standard running mode (service radius start), even with debug = 2 set, there is no such detailed log. How can we have such detail logs in running mode ? -- Emmanuel BILLOT CATEL - Dpt. Système et Réseaux Rectorat - Académie d'Orléans-Tours 10, rue Molière - 45000 Orléans Tél : 02 38 79 45 57
On 28.03.2013 09:27, Billot wrote:
How can we have such detail logs in running mode ?
you can enable debugging while the server is running with radmin (you need to enable the control-socket virtual server) radmin> debug level 4 radmin> debug file my-radius-debug.log the file will be in your ${logdir} Olivier -- Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mail: olivier@heliosnet.org
Ok thanks but is it possible to have it permanently with a config item like raddbdir = ${sysconfdir}/raddb radacctdir = ${logdir}/radacct debug_level = 4 ? Le 28/03/13, Olivier Beytrison <olivier@heliosnet.org> a écrit :
On 28.03.2013 09:27, Billot wrote:
How can we have such detail logs in running mode ?
you can enable debugging while the server is running with radmin (you need to enable the control-socket virtual server)
radmin> debug level 4 radmin> debug file my-radius-debug.log
the file will be in your ${logdir}
Olivier --
Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mail: olivier@heliosnet.org - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Emmanuel BILLOT CATEL - Dpt. Système et Réseaux Rectorat - Académie d'Orléans-Tours 10, rue Molière - 45000 Orléans Tél : 02 38 79 45 57
On 28.03.2013 10:31, Billot wrote:
Ok thanks but is it possible to have it permanently with a config item like
raddbdir = ${sysconfdir}/raddb radacctdir = ${logdir}/radacct debug_level = 4
edit your startup script and add -xl /path/to/my/debugfile add more x for more debugging Be aware that this file will grow quickly depending on the amount of request your server handle. Olivier -- Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mail: olivier@heliosnet.org
participants (2)
-
Billot -
Olivier Beytrison