Freeradius2 + MySQL + Accouting
Regards, I have a server configured with freeradius2 rlm_mysql and have authentication working well. But the Accouting is only done on start and stop. Wanted it to be done every 5 minutes (300 interim-update) but is not working. Radtest result: Sending Access-Request of id 250 to 127.0.0.1 port 1812 User-Name = "cebolark2" User-Password = "xxxxx" NAS-IP-Address = xxxxxxx NAS-Port = 0 rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id = 250, length = 59 Acct-Status-Type = Interim-Update Acct-Interim-Interval = 300 Calling-Station-Id = "C89CDC4B8CA9" Filter-Id = "m2048" Framed-IP-Address = yyy.yyy.yyy.yyy But the table radcct not updated, only start and stop. -- []'s ----------------------------------------- .'. Wederson Rodrigues .'. (CeBoLaRk) VIP - Vilhena Internet Provider Gerente de T.I. http://www.vipvilhena.com.br MSN: cebolark@hotmail.com SKYPE: cebolark EMAIL: wederson@vipvilhena.com.br INOC VOIP: 28240*100 Celular: 0xx69 8437-0186 Fixo: 0xx69 3322-2244 -----------------------------------------
On 17 Sep 2013, at 18:41, Wederson Rodrigues <wederson@vipvilhena.com.br> wrote:
Regards,
I have a server configured with freeradius2 rlm_mysql and have authentication working well. But the Accouting is only done on start and stop. Wanted it to be done every 5 minutes (300 interim-update) but is not working.
I'm guessing your not expecting radtest to carry on running in the background and generate accounting traffic right? and you're just using it for testing? This functionality is highly NAS dependent, not all NAS support it as it's not required behaviour by any of the RADIUS rfcs. Consult the manuals for your NAS to check it is supported, and if that fails contact their support team and raise a feature request. I'm not sure which you're returning Acct-Status-Type in an Access-Accept, or Calling-Station-ID it is not correct/appropriate to insert them into the reply. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
participants (2)
-
Arran Cudbard-Bell -
Wederson Rodrigues