On Tue, 2004-07-20 at 11:48, jesk wrote:
> > Hiya,
> > We are adding rate limiting attributes to our radius entries on a per
> > customer basis, however the rates imposed will be one of 4 predefined
> > rates. Each rate also has a burst value which is pre determined, and
> > may be changed as we tweak.
> >
> > Ideally we would like to store a lookup of rates and their respective
> > burst values, thus making changes quick and efficient. Is there a nice
> > way that freeRADIUS could perform an additional lookup to determine the
> > correct burst for a given rate and add it (allong with the attribute) to
> > the radius reply?
> >
> > Thanks in advance for your help.
> >
> >
> > --
> > -----
> > Graeme Hinchliffe (BSc)
> > Core Internet Systems Designer
> > Zen Internet (http://www.zen.co.uk/)
> >
> > ICQ 3842605 (link)
> >
> > Direct: 0845 058 9074
> > Main : 0845 058 9000
> > Fax : 0845 058 9005
> >
>
> Hi Graeme,
>
> write a simple programm or script and use it for your replyitems.
>
> you can execute a programm for every reply item like this:
> Attribute-Name = `{%exec:/path/to/program args}`
>
> in the program itself you can use the environment variables
> for reading the nasipaddress or something else, all request items
> are placed into the enviroment of the forked programm.
>
> the output of the programm will be placed in the value of the
> attribute.
>
> look in radiusd.conf for exec and put 'exec' into the 'instantiate' section.
>
> best regards,
> christian
Hiya,
I thought about that but I don't want to make external calls as these
servers can periodically get a LOT of requests and I don't want to
increase load or lag on responses.
Thanks all the same, it's in my last resort pile :)
--
-----
Graeme Hinchliffe (BSc)
Core Internet Systems Designer
Zen Internet (http://www.zen.co.uk/)
ICQ 3842605 (link)
Direct: 0845 058 9074
Main : 0845 058 9000
Fax : 0845 058 9005
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html