Freeradius incorrect acctstoptime

Fajar A. Nugraha list at fajar.net
Sun Dec 11 13:20:22 CET 2016


On Sun, Dec 11, 2016 at 6:26 PM, Sachin via Freeradius-Users <
freeradius-users at lists.freeradius.org> wrote:

> It should terminate but only its own sessions and not write acctstoptime
> for session of other nas.
>
>
.. which is why teh query has "AND nasipaddress      =  '192.168.182.1'"


> If you look at the query i found and mentioned in last response FR is
> blindly updating all records based on few generic parameters in where
> condition which is incorrect IMHO.
>


FR made the assumption that each client (i.e. NAS) IP address belongs to a
unique NAS. Thus the query above.

If that's not the case (i.e. you have a masquerade NAT where many NAS
appears as a single IP address to FR), then you either need to change your
network setup, or find a unique parameter for each NAS from their sent
attributes.

Is there a way so that i can switch off this process/query update on nas
> reboot?
>
>
https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/raddb/sql/mysql/dialup.conf

(or if you're not using mysql, find the appropriate dialup.conf).

That file should be on /etc/raddb/sql/... (or /etc/freeradius on
ubuntu/debian). Try commenting out accounting_onoff_query, or change it to
something suitable for your case.

-- 
Fajar


More information about the Freeradius-Users mailing list