misbehaving nas's send accounting to both primary and secondary servers

Joe Maimon jmaimon at ttec.com
Thu Oct 1 02:36:54 CEST 2009


What is the best way to deal with misbehaving nas's that send accounting 
to both the primary and secondary server, even while receiving replies 
to both queries.

This results in multiple accounting records in sql, with duplicate 
acctsessionid and acctuniqueid values.

Assuming the NAS cannot be properly configured, either for technical or 
other reasons, these are the potential options.

- configure only one of the primary or secondary on the NAS

- get the server to recognize the existing record and update it instead 
of inserting a new one

Now there is account_start_query_alt, but that appears to only be called 
if the account_start_query fails.

With the default mysql schema, I dont think there is anything to cause 
that query to ever fail.

Tips and advice are greatly appreciated.

Thanks,

Joe



More information about the Freeradius-Users mailing list