Re: traffic based accounting info
I am using pppd as "NAS" with the radius.so plugin. what do you think about this idea: I'll modify the kernel in order to add more statistics on the ppp interface (like #bytes per protocol or similar) and when the radius.so plugin ask the kernel for ppp statistics it will have all the needed information. At this time I think it can pass all the info to radius for accounting. does this idea sound correct to you? it can be of interest of other people on this list? Thnks, Antonio On Monday 27 June 2005 18:24, Alan DeKok wrote:
Antonio Mancuso <antonio.mancuso@digitaltelevision.it> wrote:
The Acc-Output-Octets and Acc-Input-Octets report the number of bytes passed through the ppp interface.
I need to strip from this #bytes all the traffic to POP3 and SMTP servers.
any idea?
If the NAS doesn't send that information, then it doesn't exist, and you can't discover it.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html ROUTING / This message may be Spam/Junk - Diese Email wird als Spam/Junk EMail eingestuft. Falls Sie diese Email nicht mehr erhalten moechten, erstellen Sie bitte eine Regel in Ihrem Mailclient, die diese Email automatisch loescht oder verschiebt (http:/ /www.schnell-im-netz.de/spam).
-- -- Esse-Gi s.r.l. c/o DigitalTelevision Tel: (+39) 02/45468220
Antonio Mancuso <antonio.mancuso@digitaltelevision.it> wrote:
I'll modify the kernel in order to add more statistics on the ppp interface (like #bytes per protocol or similar) and when the radius.so plugin ask the kernel for ppp statistics it will have all the needed information. At this time I think it can pass all the info to radius for accounting.
does this idea sound correct to you? it can be of interest of other people on this list?
Sure. Make it more general, though. e.g. bytes by destination port, not just bytes for POP & SMTP. Alan DeKok.
Okay guys, I finally figured out how to get FreeRadius in stalled and I have Dialup admin also installed however I keep getting reject messages like this one: Going to the next request --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Sending Access-Reject of id 41 to 127.0.0.1:33534 Waking up in 4 seconds... --- Walking the entire request list --- Cleaning up request 4 ID 41 with timestamp 42c048b6 Nothing to do. Sleeping until we see a request. Now I am not sure where to fix this at or even where to look for it I think the config files are all in /etc/raddb clients.conf, users, radiusd.conf, I do belive it is trying to use a radius db via MySql however i haven't got a luce if it's working properly, Please help This n00b is drowning, Michael A Cooper BCCISP.net http://www.bccisp.net 281-854-2079 "Technology that counts, voices that matter!" ----- Original Message ----- From: "Alan DeKok" <aland@ox.org> To: <antonio.mancuso@digitaltelevision.it>; "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Monday, June 27, 2005 11:59 AM Subject: Re: traffic based accounting info
Antonio Mancuso <antonio.mancuso@digitaltelevision.it> wrote:
I'll modify the kernel in order to add more statistics on the ppp interface (like #bytes per protocol or similar) and when the radius.so plugin ask the kernel for ppp statistics it will have all the needed information. At this time I think it can pass all the info to radius for accounting.
does this idea sound correct to you? it can be of interest of other people on this list?
Sure. Make it more general, though. e.g. bytes by destination port, not just bytes for POP & SMTP.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.2/29 - Release Date: 6/27/2005
Sorry about the previous SUBJECT line. I am using both cli and dialup-admin and I am getting the same result reject messgaes on every attempt. Please read previous post Thanks in advance, Michael A Cooper BCCISP.net http://www.bccisp.net 281-854-2079 "Technology that counts, voices that matter!" ----- Original Message ----- From: "Michael Cooper" <mcooper@bccisp.net> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Monday, June 27, 2005 1:47 PM Subject: Re: traffic based accounting info
Okay guys,
I finally figured out how to get FreeRadius in stalled and I have Dialup admin also installed however I keep getting reject messages like this one:
Going to the next request --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Sending Access-Reject of id 41 to 127.0.0.1:33534 Waking up in 4 seconds... --- Walking the entire request list --- Cleaning up request 4 ID 41 with timestamp 42c048b6 Nothing to do. Sleeping until we see a request.
Now I am not sure where to fix this at or even where to look for it I think the config files are all in /etc/raddb clients.conf, users, radiusd.conf,
I do belive it is trying to use a radius db via MySql however i haven't got a luce if it's working properly, Please help This n00b is drowning,
Michael A Cooper BCCISP.net http://www.bccisp.net 281-854-2079 "Technology that counts, voices that matter!" ----- Original Message ----- From: "Alan DeKok" <aland@ox.org> To: <antonio.mancuso@digitaltelevision.it>; "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Monday, June 27, 2005 11:59 AM Subject: Re: traffic based accounting info
Antonio Mancuso <antonio.mancuso@digitaltelevision.it> wrote:
I'll modify the kernel in order to add more statistics on the ppp interface (like #bytes per protocol or similar) and when the radius.so plugin ask the kernel for ppp statistics it will have all the needed information. At this time I think it can pass all the info to radius for accounting.
does this idea sound correct to you? it can be of interest of other people on this list?
Sure. Make it more general, though. e.g. bytes by destination port, not just bytes for POP & SMTP.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.2/29 - Release Date: 6/27/2005
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.2/29 - Release Date: 6/27/2005
"Michael Cooper" <mcooper@bccisp.net> wrote:
I am using both cli and dialup-admin and I am getting the same result reject messgaes on every attempt.
Run the server in debug mode to see why it's sending a reject. This is how EVERYONE debugs problems, Alan DeKok.
Sorry Alan this is my first major dive into FreeRadius if I am a little annoying please forgive me just trying to learn, Here is what i got from the debug mode on cli: [root@server1 mcooper]# radtest mcooper 123abc localhost:1645 1645 testpw Sending Access-Request of id 113 to 127.0.0.1:1645 User-Name = "mcooper" User-Password = "123abc" NAS-IP-Address = server1.bccisp.net NAS-Port = 1645 rad_recv: Access-Reject packet from host 127.0.0.1:1645, id=113, length=20 [root@server1 mcooper]# And here is what I see in the logs: Mon Jun 27 13:10:38 2005 : Info: Using deprecated naslist file. Support for this will go away soon. Mon Jun 27 13:10:38 2005 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Mon Jun 27 13:10:38 2005 : Error: ERROR: Cannot find a configuration entry for module "sql". Mon Jun 27 13:10:45 2005 : Info: Using deprecated naslist file. Support for this will go away soon. Mon Jun 27 13:10:45 2005 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Mon Jun 27 13:10:45 2005 : Error: ERROR: Cannot find a configuration entry for module "sql". Mon Jun 27 13:11:09 2005 : Info: Using deprecated naslist file. Support for this will go away soon. Mon Jun 27 13:11:09 2005 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Mon Jun 27 13:11:09 2005 : Error: ERROR: Cannot find a configuration entry for module "sql". Mon Jun 27 13:11:23 2005 : Info: Using deprecated naslist file. Support for this will go away soon. Mon Jun 27 13:11:23 2005 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Mon Jun 27 13:11:23 2005 : Info: Ready to process requests. Mon Jun 27 13:13:35 2005 : Info: Using deprecated naslist file. Support for this will go away soon. Mon Jun 27 13:13:35 2005 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Mon Jun 27 13:13:35 2005 : Info: Ready to process requests. wow this is Greek to me, I will be looking for Faqs on this subject as well todya if I find the result I will post it. Thanks in advance, Michael A Cooper BCCISP.net http://www.bccisp.net 281-854-2079 "Technology that counts, voices that matter!" ----- Original Message ----- From: "Michael Cooper" <mcooper@bccisp.net> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Monday, June 27, 2005 1:58 PM Subject: Re: Access-Reject
Sorry about the previous SUBJECT line.
I am using both cli and dialup-admin and I am getting the same result reject messgaes on every attempt.
Please read previous post
Thanks in advance, Michael A Cooper BCCISP.net http://www.bccisp.net 281-854-2079 "Technology that counts, voices that matter!" ----- Original Message ----- From: "Michael Cooper" <mcooper@bccisp.net> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Monday, June 27, 2005 1:47 PM Subject: Re: traffic based accounting info
Okay guys,
I finally figured out how to get FreeRadius in stalled and I have Dialup admin also installed however I keep getting reject messages like this one:
Going to the next request --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Waking up in 1 seconds... --- Walking the entire request list --- Sending Access-Reject of id 41 to 127.0.0.1:33534 Waking up in 4 seconds... --- Walking the entire request list --- Cleaning up request 4 ID 41 with timestamp 42c048b6 Nothing to do. Sleeping until we see a request.
Now I am not sure where to fix this at or even where to look for it I think the config files are all in /etc/raddb clients.conf, users, radiusd.conf,
I do belive it is trying to use a radius db via MySql however i haven't got a luce if it's working properly, Please help This n00b is drowning,
Michael A Cooper BCCISP.net http://www.bccisp.net 281-854-2079 "Technology that counts, voices that matter!" ----- Original Message ----- From: "Alan DeKok" <aland@ox.org> To: <antonio.mancuso@digitaltelevision.it>; "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Monday, June 27, 2005 11:59 AM Subject: Re: traffic based accounting info
Antonio Mancuso <antonio.mancuso@digitaltelevision.it> wrote:
I'll modify the kernel in order to add more statistics on the ppp interface (like #bytes per protocol or similar) and when the radius.so plugin ask the kernel for ppp statistics it will have all the needed information. At this time I think it can pass all the info to radius for accounting.
does this idea sound correct to you? it can be of interest of other people on this list?
Sure. Make it more general, though. e.g. bytes by destination port, not just bytes for POP & SMTP.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.2/29 - Release Date: 6/27/2005
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.2/29 - Release Date: 6/27/2005
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.2/29 - Release Date: 6/27/2005
participants (3)
-
Alan DeKok -
Antonio Mancuso -
Michael Cooper