[RADIATOR] Accounting Hook ?

Patrik Forsberg patrik.forsberg at globalconnect.se
Mon Feb 14 09:05:45 UTC 2022


Hello,

Hm yea that's food for thought .. I'm using Farm atm to cope with increased load but might have to split out auth and accounting by themselves as well.. it is tempting as it would add a lot of other benefits as well.. thanks ??

---
Best Regards,
Patrik

> -----Original Message-----
> From: Hugh Irvine <hugh at irvine.com.au>
> Sent: den 11 februari 2022 22:24
> To: Patrik Forsberg <patrik.forsberg at globalconnect.se>
> Cc: radiator at lists.open.com.au
> Subject: Re: [RADIATOR] Accounting Hook ?
> 
> 
> Hi Patrik -
> 
> Good to hear from you as always.
> 
> I recommend running separate instances for authentication and accounting.
> 
> Ie. one process on ports 1645 and 1812, and another process on 1646 and
> 1813.
> 
> That way you have all of the authentication requests being processed by one
> instance and all of the accounting requests being processed by a separate
> instance.
> 
> Then you can deal with the accounting requests much more easily.
> 
> This has the added advantage of much better performance overall.
> 
> As you say, there are a variety of hooks available at different times during
> packet processing depending on when you want to modify the packet.
> 
> You can use a PreClientHook, PreProcessingHook, PreAuthHook, or even any
> of the hooks in a chained AuthBy INTERNAL clause.
> 
> hope that helps
> 
> cheers
> 
> Hugh
> 
> 
> > On 12 Feb 2022, at 01:16, Patrik Forsberg
> <patrik.forsberg at globalconnect.se> wrote:
> >
> > Hello,
> > Is there a hook I can use to rewrite the accounting record ?
> > Looking at the manual the closest I can find is PreProcessingHook ?
> >
> > I’m trying to create a more generic accounting setup but the way I use it I
> only need specific records from the accounting package and depending on
> vendor this record is different so I figured if I can hook into the accounting
> process before it gets used for “logging”(I’m using <AuthBy SQL> and use
> that with AccountingTable and so forth) I can rewrite/add a new record I can
> later use in logging/AcctColumnDef.
> > Using AuthBy I might get away with using PreAuthHook on that specific
> AuthBy clause ?
> >
> > ---
> > Best Regards,
> > Patrik
> >
> > _______________________________________________
> > radiator mailing list
> > radiator at lists.open.com.au
> >
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.o
> pen.com.au%2Fmailman%2Flistinfo%2Fradiator&data=04%7C01%7Cpatr
> ik.forsberg%40globalconnect.se%7C792c03da127a49f8cdff08d9eda4cb1b%7C
> dfbb0d3b8276458197a42b844a84ea35%7C0%7C0%7C637802114650486564%7
> CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJ
> BTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=KL3SShB63%2F%2Fc14
> j7wWpbgPfNILr6ftYks5Uvh1HzvKM%3D&reserved=0



More information about the radiator mailing list