Copying accounting packets

2005-02-17 Thread Terry J Fike Jr
Hello All,
I'm looking for information on what others have done in similar 
situations.  What i have to do is copy the accounting packets from one 
particular NAS device to another radius server.  I know i can use 
radrelay for this if i copy all the accounting packets from that NAS 
device into one file but here is my dilemma.

I am flat filing all accounting packets from the different NAS devices 
by IP then by date.  Then once a day, i copy all these into a database 
for accounting/billing purposes.  (yes i realize this is a little clunky 
but i lose almost no data this way, and the overall system runs faster, 
and i have a guaranteed backup if my database takes a major nosedive for 
the trashcan and the normal database backups fail as well)

To add to the fun, I'm about to have to start forwarding all (from all 
NAS devices) accounting packets to a web content filtering system.  So I 
suppose the question is, will there be a problem running two sets of 
radrelay (one on all accounting packets, and one on accounting packets 
from just one NAS)? or is there a better way to do this and I'm just 
being blind?
--
Terry J Fike Jr
System Administrator
MTA Solutions
907-793-4100
[EMAIL PROTECTED]

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Copying accounting packets

2005-02-17 Thread Thor Spruyt
Terry J Fike Jr wrote:
Hello All,
I'm looking for information on what others have done in similar
situations.  What i have to do is copy the accounting packets from one
particular NAS device to another radius server.  I know i can use
radrelay for this if i copy all the accounting packets from that NAS
device into one file but here is my dilemma.
I am flat filing all accounting packets from the different NAS devices
by IP then by date.  Then once a day, i copy all these into a database
for accounting/billing purposes.  (yes i realize this is a little
clunky but i lose almost no data this way, and the overall system
runs faster, and i have a guaranteed backup if my database takes a
major nosedive for the trashcan and the normal database backups fail
as well)
To add to the fun, I'm about to have to start forwarding all (from all
NAS devices) accounting packets to a web content filtering system. So I 
suppose the question is, will there be a problem running two
sets of radrelay (one on all accounting packets, and one on
accounting packets from just one NAS)? or is there a better way to do
this and I'm just being blind?
Never let more than 1 radrelay process the same logfile!
For each radrelay, you should configure a seperate rlm_detail instance, 
which logs the needed packets to a different logfile which radrelay can read 
from.

So for your situation, you need 3 rlm_detail instances:
- 1 to log all requests to seperate logfiles based on source ip and time
- 1 to log all requests to a single logfile
- 1 to log requests from a particular NAS to a single logfile
--
Groeten, Regards, Salutations,
Thor Spruyt
M: +32 (0)475 67 22 65
E: [EMAIL PROTECTED]
W: www.thor-spruyt.com
www.salesguide.be
www.telenethotspot.be
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Copying accounting packets

2005-02-17 Thread Terry J Fike Jr
 Never let more than 1 radrelay process the same logfile!

 For each radrelay, you should configure a seperate rlm_detail instance,
 which logs the needed packets to a different logfile which radrelay 
can read
 from.

 So for your situation, you need 3 rlm_detail instances:
 - 1 to log all requests to seperate logfiles based on source ip and time
 - 1 to log all requests to a single logfile
 - 1 to log requests from a particular NAS to a single logfile
 --
 Groeten, Regards, Salutations,
Okay, sounds like what i was thinking.  Thanks very much!
t-
--
Terry J Fike Jr
System Administrator
MTA Solutions
907-793-4100
[EMAIL PROTECTED]
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: copying accounting

2004-06-17 Thread Alan DeKok
Alexander Serkin [EMAIL PROTECTED] wrote:
 Ok. I can use radrelay. But. I do not understand the reason why the 
 replicate-to-realm is being removed from server.

  It made the server more complicated and prone to failure.

 There are two operators now wich we have roaming agreements with.
 But what will we do if their amount grows to 10, 20?
 We'll have to start up to 20 instances of radrelay.
 And monitor their states. Not good, is it?

  Or, write small patches to radrelay, so that it reads 10-20 detail
files.

  Alan DeKok.


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: copying accounting

2004-06-16 Thread Alexander Serkin
Ok. I can use radrelay. But. I do not understand the reason why the 
replicate-to-realm is being removed from server.
There are two operators now wich we have roaming agreements with.
But what will we do if their amount grows to 10, 20?
We'll have to start up to 20 instances of radrelay.
And monitor their states. Not good, is it?

Alan DeKok wrote:
Alexander Serkin [EMAIL PROTECTED] wrote:
radrelay seem to do more than i need.

  So?  Replicate-To-Realm won't work.  If it does, you're using an
older version of the server, and that feature will STOP working when
you upgrade.
  Don't use Replicate-To-Realm.

Actually the task is to copy accounting for specific CLID of roaming
users to their home AAA server.
radrelay works directly with detail file which contains not only
roaming CLIDs.

  So... configure the server to have a variant of the detail module
which is used only to log the roaming users.
  Alan DeKok.
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
--
SY,
Alexander
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


copying accounting

2004-06-15 Thread Alexander Serkin
Is it possible to keep accounting for several realms locally along with sending 
it to third party AAA server?
I.e. i need to write accounting for customers visiting us from another network, 
but also send it to their home AAA server.

--
SY,
Alexander Serkin,
Moscow Cellular Communications
ph. +7(095)7952089
fa. +7(095)7952084
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: copying accounting

2004-06-15 Thread Alexander Serkin
Replicate-To-Realm seem to do what i want.
Copying accounting matching the check item in acct_users
to the realm specified while storing this accounting locally.
Am i right?
Alexander Serkin wrote:
Is it possible to keep accounting for several realms locally along with 
sending it to third party AAA server?
I.e. i need to write accounting for customers visiting us from another 
network, but also send it to their home AAA server.


--
Sincerely Yours,
Alexander Serkin,
Moscow Cellular Communications
ph. +7(095)7952089
fa. +7(095)7952084
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: copying accounting

2004-06-15 Thread Robert Haskins
I thought radrelay was the way to replicate accounting to other servers.
Alexander Serkin wrote:
Replicate-To-Realm seem to do what i want.
Copying accounting matching the check item in acct_users
to the realm specified while storing this accounting locally.
Am i right?
Alexander Serkin wrote:
Is it possible to keep accounting for several realms locally along 
with sending it to third party AAA server?
I.e. i need to write accounting for customers visiting us from another 
network, but also send it to their home AAA server.




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: copying accounting

2004-06-15 Thread Alan DeKok
Alexander Serkin [EMAIL PROTECTED] wrote:
 Replicate-To-Realm seem to do what i want.
 Copying accounting matching the check item in acct_users
 to the realm specified while storing this accounting locally.
 Am i right?

  That attribute is not supported.  Use radrelay.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: copying accounting

2004-06-15 Thread Alexander Serkin
radrelay seem to do more than i need.
Actually the task is to copy accounting for specific CLID of roaming users to 
their home AAA server.
radrelay works directly with detail file which contains not only roaming CLIDs.

Alan DeKok wrote:
Alexander Serkin [EMAIL PROTECTED] wrote:
Replicate-To-Realm seem to do what i want.
Copying accounting matching the check item in acct_users
to the realm specified while storing this accounting locally.
Am i right?

  That attribute is not supported.  Use radrelay.
  Alan DeKok.
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
--
Sincerely Yours,
Alexander Serkin,
Moscow Cellular Communications
ph. +7(095)7952089
fa. +7(095)7952084
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: copying accounting

2004-06-15 Thread Alan DeKok
Alexander Serkin [EMAIL PROTECTED] wrote:
 radrelay seem to do more than i need.

  So?  Replicate-To-Realm won't work.  If it does, you're using an
older version of the server, and that feature will STOP working when
you upgrade.

  Don't use Replicate-To-Realm.

 Actually the task is to copy accounting for specific CLID of roaming
 users to their home AAA server.

 radrelay works directly with detail file which contains not only
 roaming CLIDs.

  So... configure the server to have a variant of the detail module
which is used only to log the roaming users.

  Alan DeKok.


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: copying accounting

2004-06-15 Thread Guy Fraser
This is the default behavior as far as I know.
User logs in to NAS with [EMAIL PROTECTED]
NAS sends accounting record to your radius server.
Your radius server  performs its configured accounting steps and proxies
the accounting to the some-realm radius accounting server.
The some-realm radius server performs its configured accounting steps.
Both radius servers should have accounting records for the transaction.
I use this method to bill ISP's who resell our modem pools, and when
we use other ISP's modem pools, we use our records to verify what they
bill us.
Hope this clears up your question.
Alexander Serkin wrote:
Is it possible to keep accounting for several realms locally along 
with sending it to third party AAA server?
I.e. i need to write accounting for customers visiting us from another 
network, but also send it to their home AAA server.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html