sql counter is not working

Alan DeKok aland at deployingradius.com
Wed Jun 24 14:55:45 CEST 2015


On Jun 24, 2015, at 8:21 AM, Randeep <randeep123 at gmail.com> wrote:
> We are having a unlimit plan with after 30GB there will be FUP applied.
> Initlially the speed will be 4 mbps and after 30G the speed will be 2mbps.

  That's possible.

> But the counter is not working:

  No, it's working as documented.  If you want it to do something else, configure it to do something else.

> It is just not letting the user log in. If the limit is reached it is
> sending access-reject instead of letting the user login with less internet
> speed. Please see then logs below.

  You should edit the "authorize" section, and do:

authorize {
	...

	sqlcounter {
		reject = 1
	}

	if (reject) {
		# set 2mbps

	}
	else {
		# set 4mbps
	}

  Alan DeKok.




More information about the Freeradius-Users mailing list