Duplicating accounting data between servers

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Aug 27 18:47:32 CEST 2015


> On Aug 27, 2015, at 12:31 PM, Chris Adams <cma at cmadams.net> wrote:
> 
> I am setting up a couple of servers FreeRADIUS 3.0.4 (CentOS 7).  They
> are pretty basic, handling RADIUS for dialup users.  The users are
> stored in SQL (each servers has a local MariaDB instance, provisioned by
> an external management system).
> 
> I have accounting data going to SQL as well, but then each server just
> has its own records (and of course NASes tend to flip back and forth on
> their own), so I would like to have FreeRADIUS duplicate the accounting
> records to both servers (so server A sends what it gets to server B and
> vice versa).
> 
> I see radrelay references in buffered-sql and the like, but what I don't
> see is how do I keep accounting records from looping?  If both servers
> are configured to copy to the other, what keeps records from bouncing
> back and forth?  Or will they only forward records they receive directly
> from NASes?  I couldn't find anything that explicitly documents that
> behavior.

If you're not proxying to either of those servers, just check for the presence of &Proxy-State.  If it's present, don't call the detail writer.

-Arran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20150827/bab5e62c/attachment-0001.sig>


More information about the Freeradius-Users mailing list