Re: Dialup Admin and PPPoE

2012-10-04 Thread Peter W
Am 04.10.2012 04:09, schrieb Serge Paquin:
> The NAS I have is a Cisco 7204VXR with an NPE-G2 so I assume (hope) it 
> supports Accounting Interim-Update.

Cisco 7204VXR definitely supports interim accounting (period >= 5min).
Look for:

aaa accounting ...
aaa accounting update newinfo periodic 5

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


RE: Dialup Admin and PPPoE

2012-10-03 Thread Serge Paquin
Thanks I'll give that a try.

The NAS I have is a Cisco 7204VXR with an NPE-G2 so I assume (hope) it supports 
Accounting Interim-Update.

Thanks for the suggestion.

Serge.

-Original Message-
From: freeradius-users-bounces+serge=skycomp...@lists.freeradius.org 
[mailto:freeradius-users-bounces+serge=skycomp...@lists.freeradius.org] On 
Behalf Of Fajar A. Nugraha
Sent: Wednesday, October 03, 2012 10:05 PM
To: FreeRadius users mailing list
Subject: Re: Dialup Admin and PPPoE

On Thu, Oct 4, 2012 at 8:35 AM, Serge  Paquin  wrote:
> Thank you.
>
> I believe our NAS supports this and is working.  If I go into the user it 
> will show they've been connected for days and shows and upload/download value.

That's not an indication of the nas suppoting Accounting Interim-Update.

However, since even chillispot and openvpn supports Accounting Interim-Update, 
I don't see why whatever-NAS-you-re-using wouldn't support it. It would be just 
silly :P

>
> The catch is the reporting.  This data doesn't get updated into the 
> statistics until the user logs off.
>
> I'm sure it's something specific with Dialup Admin since it's built from the 
> premise of a dialup ISP which will have typical log offs.
>
> I was just curious if there is a config or change to make to Dialup Admin 
> that would update statistics while an account is still logged on but not 
> duplicate data.

Probably nothing.

Try adding reply item "Acct-Interim-Interval := 300" to a test user (in 
radreply table, if you're using database backend), login, do stuff that uses 
bandwidth for 6 minutes or so, and check:
- whether the NAS sends acct interim update (easiest if you can run FR in debug 
mode)
- whether the acct entry is updated
- whether dialup admin correctly displays the updated acct record

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


Re: Dialup Admin and PPPoE

2012-10-03 Thread Fajar A. Nugraha
On Thu, Oct 4, 2012 at 8:35 AM, Serge  Paquin  wrote:
> Thank you.
>
> I believe our NAS supports this and is working.  If I go into the user it 
> will show they've been connected for days and shows and upload/download value.

That's not an indication of the nas suppoting Accounting Interim-Update.

However, since even chillispot and openvpn supports Accounting
Interim-Update, I don't see why whatever-NAS-you-re-using wouldn't
support it. It would be just silly :P

>
> The catch is the reporting.  This data doesn't get updated into the 
> statistics until the user logs off.
>
> I'm sure it's something specific with Dialup Admin since it's built from the 
> premise of a dialup ISP which will have typical log offs.
>
> I was just curious if there is a config or change to make to Dialup Admin 
> that would update statistics while an account is still logged on but not 
> duplicate data.

Probably nothing.

Try adding reply item "Acct-Interim-Interval := 300" to a test user
(in radreply table, if you're using database backend), login, do stuff
that uses bandwidth for 6 minutes or so, and check:
- whether the NAS sends acct interim update (easiest if you can run FR
in debug mode)
- whether the acct entry is updated
- whether dialup admin correctly displays the updated acct record

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


RE: Dialup Admin and PPPoE

2012-10-03 Thread Serge Paquin
Thank you.  

I believe our NAS supports this and is working.  If I go into the user it will 
show they've been connected for days and shows and upload/download value.

The catch is the reporting.  This data doesn't get updated into the statistics 
until the user logs off.

I'm sure it's something specific with Dialup Admin since it's built from the 
premise of a dialup ISP which will have typical log offs.

I was just curious if there is a config or change to make to Dialup Admin that 
would update statistics while an account is still logged on but not duplicate 
data.

Serge.

-Original Message-
From: freeradius-users-bounces+serge=skycomp...@lists.freeradius.org 
[mailto:freeradius-users-bounces+serge=skycomp...@lists.freeradius.org] On 
Behalf Of Blake Covarrubias
Sent: Wednesday, October 03, 2012 9:27 PM
To: FreeRadius users mailing list
Subject: Re: Dialup Admin and PPPoE

On Oct 3, 2012, at 18:13, "Serge  Paquin"  wrote:

> One item I haven't been able to figure out is how to have the Upload and 
> Download statistics updated on a regular basis

What you're looking for is Accounting Interim-Update. This functionality must 
be implemented by your NAS. Check with your NAS vendor regarding support for 
this feature.

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


Re: Dialup Admin and PPPoE

2012-10-03 Thread Blake Covarrubias
On Oct 3, 2012, at 18:13, "Serge  Paquin"  wrote:

> One item I haven't been able to figure out is how to have the Upload and 
> Download statistics updated on a regular basis

What you're looking for is Accounting Interim-Update. This functionality must 
be implemented by your NAS. Check with your NAS vendor regarding support for 
this feature.

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


Dialup Admin and PPPoE

2012-10-03 Thread Serge Paquin
Hello,

I've setup FreeRadius and Dialup Admin to manage it.

One item I haven't been able to figure out is how to have the Upload and 
Download statistics updated on a regular basis.

With PPPoE my users stay always on.  Looking at the code it seems that transfer 
statistics are only updated if there is a complete session with a log off.

Ideally I'd like something we could run every day or 12 hours or something that 
would update the transfer statistics even if the user is still online.

I've done a lot of searching and read all the documents so if I've missed 
something I apologize.  If somebody has some insight and can point me in the 
right direction it would be much appreciated.

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