Freeraadius stale sessions (no SQL scenario)

Roman romeo.r at gmail.com
Fri Nov 4 12:36:23 CET 2016


2016-11-04 13:00 GMT+02:00 <A.L.M.Buxey at lboro.ac.uk>:

> Hi,
>
> > Device always responds. No problems with connection nor device load. If I
> > leave the server running user will try to login for ages, if it was a
> snmp
> > connection problem, it would be able to login after some time. I have to
> > kill server, change the nas_type to other, start server, so the user can
> > login and server is not freezing anymore.
>
> guess what, when you set nas_type to other, then the server is NOT trying
> to SNMP
> connect....hey, but then it works.  i think the issue is quite clear.
>

I guess you are trying to troll me :) I'm not so stupid to see, if snmpwalk
or snmget working without checkrad process :)
Here are some tcpdump logs again (I cut the sensitive data from these)

......cut some unneeded interfaces .....
GetNextRequest(30)  interfaces.ifTable.ifEntry.ifDescr.41
GetResponse(49)
 interfaces.ifTable.ifEntry.ifDescr.15728810="<pppoe-huumorfm>"
GetNextRequest(33)  interfaces.ifTable.ifEntry.ifDescr.15728810
GetResponse(48)
 interfaces.ifTable.ifEntry.ifDescr.15728815="<pppoe-ttq0316>"
GetNextRequest(33)  interfaces.ifTable.ifEntry.ifDescr.15728815
GetResponse(47)
 interfaces.ifTable.ifEntry.ifDescr.15728816="<pppoe-oi1015>"
GetNextRequest(33)  interfaces.ifTable.ifEntry.ifDescr.15728816
GetResponse(48)
 interfaces.ifTable.ifEntry.ifDescr.15728837="<pppoe-linktel>"
GetNextRequest(33)  interfaces.ifTable.ifEntry.ifDescr.15728837
GetResponse(47)
 interfaces.ifTable.ifEntry.ifDescr.15728991="<pppoe-am0215>"
GetNextRequest(33)  interfaces.ifTable.ifEntry.ifDescr.15728991
GetResponse(47)
 interfaces.ifTable.ifEntry.ifDescr.15728997="<pppoe-lvoris>"
GetNextRequest(33)  interfaces.ifTable.ifEntry.ifDescr.15728997
GetResponse(48)
 interfaces.ifTable.ifEntry.ifDescr.15729014="<pppoe-arx0616>"
GetNextRequest(33)  interfaces.ifTable.ifEntry.ifDescr.15729014
GetResponse(52)
 interfaces.ifTable.ifEntry.ifDescr.15729015="<pppoe-koeruswfa24>"
GetNextRequest(33)  interfaces.ifTable.ifEntry.ifDescr.15729015
GetResponse(31)  interfaces.ifTable.ifEntry.ifType.1=6

Here freeradius process is freezing and I can only see requests from
NAS/PPPoE server to it without responses..

RADIUS, Access Request (1), id: 0xcf length: 150
RADIUS, Access Request (1), id: 0xd0 length: 150
RADIUS, Access Request (1), id: 0xcf length: 150
RADIUS, Access Request (1), id: 0xd0 length: 150


If I run snmpwalk constantly to the PPPoE/NAS server, it never has problems
with response:

snmpwalk -v1 -c secret PPPoE-Server-IP ifDesc

......cut some unneeded interfaces .....
IF-MIB::ifDescr.15728810 = STRING: <pppoe-huumorfm>
IF-MIB::ifDescr.15728815 = STRING: <pppoe-ttq0316>
IF-MIB::ifDescr.15728816 = STRING: <pppoe-oi1015>
IF-MIB::ifDescr.15728837 = STRING: <pppoe-linktel>
IF-MIB::ifDescr.15728991 = STRING: <pppoe-am0215>
IF-MIB::ifDescr.15728997 = STRING: <pppoe-lvoris>
IF-MIB::ifDescr.15729014 = STRING: <pppoe-arx0616>
IF-MIB::ifDescr.15729015 = STRING: <pppoe-koeruswfa24>


I can repeat this like each second and never get any timeouts. So I guess,
there is a problem in check process on the freeradius side :) The snmp part
of the checkrad script works fine. It freezes on the next step.


-- 
Best regards,
Roman.


More information about the Freeradius-Users mailing list