*** glibc detected *** /usr/local/sbin/radiusd: malloc(): memory corruption: 0x000000000e253360 ***

2012-10-03 Thread Armando Oliveira
Hello

 Got this on 2.1.5. The server was ok until now (it's running without
 problems within the last 2 years), and now it crashes several time per
 day.

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


Re: *** glibc detected *** /usr/local/sbin/radiusd: malloc(): memory corruption: 0x000000000e253360 ***

2012-10-03 Thread Phil Mayers

On 03/10/12 17:25, Armando Oliveira wrote:

Hello

  Got this on 2.1.5. The server was ok until now (it's running without
  problems within the last 2 years), and now it crashes several time per
  day.

  Any help ?


Sorry, but no-one here is going to help you with a version that old.

Upgrade to 2.2.0.

I did run into similar double-free problems in older versions; I think 
it was Postgres or OpenSSL-related but never chased it - I just upgraded.

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


Re: *** glibc detected *** /usr/local/sbin/radiusd: malloc(): memory corruption: 0x000000000e253360 ***

2012-10-03 Thread Armando Oliveira
ok thanks

On Wed, Oct 3, 2012 at 5:50 PM, Phil Mayers  wrote:
> On 03/10/12 17:25, Armando Oliveira wrote:
>>
>> Hello
>>
>>   Got this on 2.1.5. The server was ok until now (it's running without
>>   problems within the last 2 years), and now it crashes several time per
>>   day.
>>
>>   Any help ?
>
>
> Sorry, but no-one here is going to help you with a version that old.
>
> Upgrade to 2.2.0.
>
> I did run into similar double-free problems in older versions; I think it
> was Postgres or OpenSSL-related but never chased it - I just upgraded.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
-
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


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


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 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
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: sqlcounter instance not found in modules section

2012-10-03 Thread Russell Stockhammer



On Wed, 3 Oct 2012, Fajar A. Nugraha wrote:




At times like this it's handy if you pasted the WHOLE output of
radiusd -X. Among others, it will show whether it reads the correct
file. Usually you edit one file while FR loads the other.



Interestingly enough when I run radiusd -X it loads perfectly then any 
time I run radiusd normally it works as well...  But if I change the name 
of a sqlcounter instance and run radiusd normally it will error until 
radiusd -X is run again  Very strange!!!


I spend all last night testing this and it seams I was always doign the 
right thing config wise it was just radiusd didn't read all the config 
files until it was run with the debug -X argument once.


If anyone can replicate this it might be a bug or it could just be a bug 
in my compile.


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