Re: SQLCounter configuration

2009-02-26 Thread alt_
immediatly return reject to user and do not process 'if' clause -- View this message in context: http://www.nabble.com/SQLCounter-configuration-tp21384983p22219985.html Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http

Re: SQLCounter configuration

2009-02-26 Thread Alan DeKok
alt_ wrote: Can you show some examples please? I try to do like this: noresetBytecounter if (reject) { update reply { Reply-Message := Traffic limit exceeded. } } but if noresetBytecounter return reject freeradius immediatly return reject to

Re: SQLCounter configuration

2009-02-26 Thread Alexander Solodukhin
On Thu, 26 Feb 2009 12:03:22 +0200, Alan DeKok al...@deployingradius.com wrote: alt_ wrote: Can you show some examples please? I try to do like this: noresetBytecounter if (reject) { update reply { Reply-Message := Traffic limit exceeded. } } but if

Re: SQLCounter configuration

2009-02-26 Thread Alan DeKok
Alexander Solodukhin wrote: /etc/freeradius/sites-enabled/default[412]: SQL Counter modules aren't allowed in 'post-auth' sections -- they have no such method. The REJECT handler needs to be put into the post-auth section. Not the sqlcounter module. Please READ the default configuration

Re: SQLCounter configuration

2009-02-26 Thread tnt
Can you show some examples please? I try to do like this: noresetBytecounter if (reject) { update reply { Reply-Message := Traffic limit exceeded. } } but if noresetBytecounter return reject freeradius immediatly return reject to user and do not

Re: SQLCounter configuration

2009-02-26 Thread Alexander Solodukhin
On Thu, 26 Feb 2009 13:19:06 +0200, t...@kalik.net wrote: Can you show some examples please? I try to do like this: noresetBytecounter if (reject) { update reply { Reply-Message := Traffic limit exceeded. } } but if noresetBytecounter return reject

Re: SQLCounter configuration

2009-02-26 Thread tnt
Sorry, i read mans and comments in config and try to do like you say but it's not work as i need. I have sqlcounter: sqlcounter noresetBytecounter { counter-name = Total-Max-Octets check-name = Max-Octets reply-name = ChilliSpot-Max-Total-Octets sqlmod-inst =

Re: SQLCounter configuration

2009-02-26 Thread Alexander Solodukhin
On Thu, 26 Feb 2009 16:55:00 +0200, t...@kalik.net wrote: Sorry, i read mans and comments in config and try to do like you say but it's not work as i need. I have sqlcounter: sqlcounter noresetBytecounter { counter-name = Total-Max-Octets check-name = Max-Octets

Re: SQLCounter configuration

2009-02-26 Thread tnt
I can do like this: if (!reply:ChilliSpot-Max-Total-Octets) { update reply { Reply-Message := Traffic limit exceeded. } } but if user enter wrong password Traffic limit exceeded. error message will be displayed. I had a look at the

Re: SQLCounter configuration

2009-02-26 Thread Alexander Solodukhin
On Thu, 26 Feb 2009 20:56:03 +0200, t...@kalik.net wrote: I can do like this: if (!reply:ChilliSpot-Max-Total-Octets) { update reply { Reply-Message := Traffic limit exceeded. } } but if user enter wrong password Traffic limit exceeded.

Re: SQLCounter configuration

2009-02-26 Thread tnt
Thank you. I see this solution in the internet, but i need configurable Reply-Message, becouse i want to limit not only traffic, but session time too. Actually, I can recall that sqlcounter had configurable Reply-Message in early days (I had 1.0.5 where it was configurable). Download 1.0.5 and

Re: SQLCounter configuration

2009-01-11 Thread tnt
1) After the time or data volume for a period (say a month) is reached the user is automatically disconnected - as expected. Rather them not allowing to log in , I would like freeradius to return some other attributes (WISPr-Bandwidth-Max-Up and WISPr-Bandwidth-Max-Down work fine with

Re: SQLCounter configuration

2009-01-10 Thread Venkatesh K
On Sat, Jan 10, 2009 at 10:36 AM, Hanno Schupp hanno.sch...@gmail.com wrote: Dear All, I have a few questions regarding the rlm_sqlcounter module and its configuration. I have a freeradius 2.1.0 communicating with a router running chillispot 1.1 I set up counters for time, data volume, and

SQLCounter configuration

2009-01-09 Thread Hanno Schupp
Dear All, I have a few questions regarding the rlm_sqlcounter module and its configuration. I have a freeradius 2.1.0 communicating with a router running chillispot 1.1 I set up counters for time, data volume, and with different reset periods. All works fine and as expected. Here my