Re: Proxying accounting to create a 'tee'

2009-10-07 Thread John Morrissey
On Tue, Aug 25, 2009 at 10:49:21AM +0100, Arran Cudbard-Bell wrote: I know it sounds a little clunky, but another option could be to use a chain of detail readers/writers? If you set the primary detail reader load factor to 100% the actual delay is likely to be pretty minimal... So you'd

Re: Proxying accounting to create a 'tee'

2009-10-07 Thread Arran Cudbard-Bell
I settled on something similar to this. The outer server (processing requests from the NAS) uses redundant-load-balance to write round-robin across several (currently 5) detail files. Five detail listeners (one for each detail file) then feed data to their final destinations (remote

Re: Proxying accounting to create a 'tee'

2009-08-29 Thread Alan DeKok
Arran Cudbard-Bell wrote: Ideally there'd be a mechanism to remove Accounting-Requests after X number of attempts at proxying. At the moment were using a request expiry time based on the length of the period between the request being received and it being proxied. OK. I'll take a look at

Re: Proxying accounting to create a 'tee'

2009-08-29 Thread Arran Cudbard-Bell
Alan DeKok wrote: Arran Cudbard-Bell wrote: Ideally there'd be a mechanism to remove Accounting-Requests after X number of attempts at proxying. At the moment were using a request expiry time based on the length of the period between the request being received and it being proxied.

Re: Proxying accounting to create a 'tee'

2009-08-29 Thread Alan DeKok
Arran Cudbard-Bell wrote: Sure, want me to open one for the unlang rcode inheritance bug too? Yes, thanks. Also you need to add the CSS files back in for the bug tracking system. Currently bugzilla is trying to load them from /bugzilla/skins/standard/global.css , but I get a 404 error when

Re: Proxying accounting to create a 'tee'

2009-08-29 Thread Arran Cudbard-Bell
Alan DeKok wrote: Arran Cudbard-Bell wrote: Sure, want me to open one for the unlang rcode inheritance bug too? Yes, thanks. Done. Also you need to add the CSS files back in for the bug tracking system. Currently bugzilla is trying to load them from

Re: Proxying accounting to create a 'tee'

2009-08-25 Thread Arran Cudbard-Bell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/08/2009 16:46, John Morrissey wrote: On Sat, Aug 22, 2009 at 01:59:00AM +0100, Arran Cudbard-Bell wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21/08/2009 21:15, John Morrissey wrote: On Sun, Aug 16, 2009 at 10:11:02AM +0200,

Re: Proxying accounting to create a 'tee'

2009-08-25 Thread Arran Cudbard-Bell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/08/2009 13:56, Alan DeKok wrote: Arran Cudbard-Bell wrote: No, that'll get you the timestamp of when the packet was read back into the server. The only way to calculate the original received timestamp is to write the original

Re: Proxying accounting to create a 'tee'

2009-08-24 Thread Arran Cudbard-Bell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/08/2009 18:17, Fajar A. Nugraha wrote: On Sun, Aug 23, 2009 at 11:54 PM, Ivan Kalikt...@kalik.net wrote: On Sat, Aug 22, 2009 at 5:53 PM, Arran Cudbard-Bella.cudbard-b...@sussex.ac.uk wrote: Fajar A. Nugraha wrote: In that setup, where does

Re: Proxying accounting to create a 'tee'

2009-08-24 Thread Alan DeKok
Arran Cudbard-Bell wrote: No, that'll get you the timestamp of when the packet was read back into the server. The only way to calculate the original received timestamp is to write the original Acct-Delay-Time into a custom attribute (say Acct-Delay-Time-Orig), subtract that from the current

Re: Proxying accounting to create a 'tee'

2009-08-24 Thread John Morrissey
On Sat, Aug 22, 2009 at 01:59:00AM +0100, Arran Cudbard-Bell wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21/08/2009 21:15, John Morrissey wrote: On Sun, Aug 16, 2009 at 10:11:02AM +0200, Alan DeKok wrote: vol...@ufamts.ru wrote: If home server does not respond, FR does not

Re: Proxying accounting to create a 'tee'

2009-08-24 Thread Ivan Kalik
Right. I was hoping there was a way for robust-proxy-accounting to respond to the NAS when the proxy isn't responding, since the accounting request has been successfully processed (i.e., written to the detail log and saved for later proxying). So it's still waiting to be processed - it

Re: Proxying accounting to create a 'tee'

2009-08-23 Thread Fajar A. Nugraha
On Sat, Aug 22, 2009 at 5:53 PM, Arran Cudbard-Bella.cudbard-b...@sussex.ac.uk wrote: Fajar A. Nugraha wrote: In that setup, where does one get AcctStartTime and AcctStopTime values? Or just use whatever functions are available in your scripting environment. - is it from the NAS? No, the

Re: Proxying accounting to create a 'tee'

2009-08-23 Thread Ivan Kalik
On Sat, Aug 22, 2009 at 5:53 PM, Arran Cudbard-Bella.cudbard-b...@sussex.ac.uk wrote: Fajar A. Nugraha wrote: In that setup, where does one get AcctStartTime and AcctStopTime values? Or just use whatever functions are available in your scripting environment. - is it from the NAS? No,

Re: Proxying accounting to create a 'tee'

2009-08-23 Thread Fajar A. Nugraha
On Sun, Aug 23, 2009 at 11:54 PM, Ivan Kalikt...@kalik.net wrote: On Sat, Aug 22, 2009 at 5:53 PM, Arran Cudbard-Bella.cudbard-b...@sussex.ac.uk wrote: Fajar A. Nugraha wrote: In that setup, where does one get AcctStartTime and AcctStopTime values? Or just use whatever functions are

Re: Proxying accounting to create a 'tee'

2009-08-22 Thread Fajar A. Nugraha
On Sat, Aug 22, 2009 at 7:59 AM, Arran Cudbard-Bella.cudbard-b...@sussex.ac.uk wrote: On 21/08/2009 21:15, John Morrissey wrote: Is decoupled-accounting (writing all detail to disk and replaying it serialized with a detail listener) the only way to configure FreeRADIUS to respond to the NAS?

Re: Proxying accounting to create a 'tee'

2009-08-22 Thread Ivan Kalik
Fajar A. Nugraha wrote: On Sat, Aug 22, 2009 at 7:59 AM, Arran Cudbard-Bella.cudbard-b...@sussex.ac.uk wrote: On 21/08/2009 21:15, John Morrissey wrote: Is decoupled-accounting (writing all detail to disk and replaying it serialized with a detail listener) the only way to

Re: Proxying accounting to create a 'tee'

2009-08-22 Thread Arran Cudbard-Bell
Fajar A. Nugraha wrote: On Sat, Aug 22, 2009 at 7:59 AM, Arran Cudbard-Bella.cudbard-b...@sussex.ac.uk wrote: On 21/08/2009 21:15, John Morrissey wrote: Is decoupled-accounting (writing all detail to disk and replaying it serialized with a detail listener) the only way to

Re: Proxying accounting to create a 'tee'

2009-08-21 Thread John Morrissey
On Sun, Aug 16, 2009 at 10:11:02AM +0200, Alan DeKok wrote: vol...@ufamts.ru wrote: If home server does not respond, FR does not respond too - NAS repeats request - FR writes request data to SQL again. So... configure the server to respond. See the file

Re: Proxying accounting to create a 'tee'

2009-08-21 Thread Arran Cudbard-Bell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21/08/2009 21:15, John Morrissey wrote: On Sun, Aug 16, 2009 at 10:11:02AM +0200, Alan DeKok wrote: vol...@ufamts.ru wrote: If home server does not respond, FR does not respond too - NAS repeats request - FR writes request data to SQL again.

Re: Proxying accounting to create a 'tee'

2009-08-17 Thread Arran Cudbard-Bell
vol...@ufamts.ru wrote: Alan DeKok wrote: What do you mean duplicate records? Alan DeKok. If home server does not respond, FR does not respond too - NAS repeats request - FR writes request data to SQL again. So we got two problems: 1) repeating requests 2) NAS does not receive

Re: Proxying accounting to create a 'tee'

2009-08-16 Thread Alan DeKok
vol...@ufamts.ru wrote: If home server does not respond, FR does not respond too - NAS repeats request - FR writes request data to SQL again. So... configure the server to respond. See the file raddb/sites-available/decoupled-accounting So we got two problems: 1) repeating requests 2)

Re: Proxying accounting to create a 'tee'

2009-08-15 Thread volkov
Alan DeKok wrote: What do you mean duplicate records? Alan DeKok. If home server does not respond, FR does not respond too - NAS repeats request - FR writes request data to SQL again. So we got two problems: 1) repeating requests 2) NAS does not receive response Or am I missing something? -

Proxying accounting to create a tee

2009-08-14 Thread John Morrissey
I'm looking to process RADIUS accounting locally (SQL) as well as proxy it to a remote host (to some third party software that also wants to receive a copy of all accounting). Is this possible with FreeRADIUS? john -- John Morrissey _o/\ __o j...@horde.net

Re: Proxying accounting to create a tee

2009-08-14 Thread Alan DeKok
John Morrissey wrote: I'm looking to process RADIUS accounting locally (SQL) as well as proxy it to a remote host (to some third party software that also wants to receive a copy of all accounting). Is this possible with FreeRADIUS? Yes. Just configure sql in the accounting section, *and*

Proxying accounting to create a 'tee'

2009-08-14 Thread volkov
John Morrissey wrote: I'm looking to process RADIUS accounting locally (SQL) as well as proxy it to a remote host (to some third party software that also wants to receive a copy of all accounting). Is this possible with FreeRADIUS? Check sites-available/copy-acct-to-home-server Best

Re: Proxying accounting to create a 'tee'

2009-08-14 Thread volkov
Alan DeKok wrote: Yes. Just configure sql in the accounting section, *and* configure it to proxy. Alan DeKok. But if proxy does not respond, FR will insert duplicate records into SQL table :( Is there some way to avoid it? Best regards, Denis Volkov - List info/subscribe/unsubscribe?

Re: Proxying accounting to create a tee

2009-08-14 Thread John Morrissey
On Fri, Aug 14, 2009 at 09:43:05PM +0200, Alan DeKok wrote: John Morrissey wrote: I'm looking to process RADIUS accounting locally (SQL) as well as proxy it to a remote host (to some third party software that also wants to receive a copy of all accounting). Yes. Just configure sql in

Re: Proxying accounting to create a 'tee'

2009-08-14 Thread volkov
But if *proxy* does not respond, FR will insert duplicate records into SQL table :( Is there some way to avoid it? Sorry, of course I meant Home server does not respond Best regards, Denis Volkov - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Proxying accounting to create a 'tee'

2009-08-14 Thread Arran Cudbard-Bell
On 14/08/2009 20:43, vol...@ufamts.ru wrote: John Morrissey wrote: I'm looking to process RADIUS accounting locally (SQL) as well as proxy it to a remote host (to some third party software that also wants to receive a copy of all accounting). Is this possible with FreeRADIUS? Yes. Works

Re: Proxying accounting to create a 'tee'

2009-08-14 Thread Alan DeKok
vol...@ufamts.ru wrote: Alan DeKok wrote: Yes. Just configure sql in the accounting section, *and* configure it to proxy. Alan DeKok. But if proxy does not respond, FR will insert duplicate records into SQL table :( Is there some way to avoid it? What do you mean duplicate records?