different answers depending on the time
Marcin
marcin at nicram.net
Wed Nov 16 11:55:48 CET 2016
Thank your.
I understand That %H represents hours.
Can I do with this way?
if ( %H > 22 and %H < 10 )
16.11.2016 8:18 AM "Бен Томпсон" <b.thompson at latera.ru> napisał(a):
> http://lists.freeradius.org/pipermail/freeradius-users/
> 2012-February/059049.html
>
> On 16 November 2016 at 10:04, Marcin <marcin at nicram.net> wrote:
>
> > Hi
> >
> > Now my configuration responses to NAS with Mikrotik-Rate-Limit regardless
> > of the time and get data from database.
> > I'd like to speed up speed depending on time and when client will connect
> > between 23 and 11 I'd like to multiply his speed.
> > I can create another column for night speeds in database.
> > In freeradius configuration i can create another section, similar to
> > present, which will get data from night speeds
> > is there any solution to configure freeradius to different answer
> depending
> > on time? something like this, depending on condition?
> >
> > if ( time between 11 and 23){
> > normal_speeds
> > } else {
> > night_speeds
> > }
> >
> >
> > --
> > Pozdrawiam
> > Marcin / nicraM
> > -
> > List info/subscribe/unsubscribe? See http://www.freeradius.org/
> > list/users.html
>
>
>
>
> --
> Бен Томпсон,
> инженер отдела внедрения и техподдержки,
> компания "Латера" | www.latera.ru
>
> тел.: +7 (499) 940-95-05, доб. 221
> E-mail: b.thompson at latera.ru
>
> Присоединяйтесь к нам в социальных сетях
> [image: Встроенное изображение 1]
> <https://www.facebook.com/pages/%D0%91%D0%B8%D0%BB%D0%
> BB%D0%B8%D0%BD%D0%B3-%D0%93%D0%B8%D0%B4%D1%80%D0%B0/622692344514207>
> [image: Встроенное изображение 2] <https://twitter.com/Hydra_billing_>
> [image:
> Встроенное изображение 3]
> <http://www.youtube.com/channel/UC0SHZ4fnWJ443xUwYEAbT5g?spfreload=10>
> [image:
> Встроенное изображение 5]
> <https://www.linkedin.com/company/9347770?trk=hp-feed-company-name>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html
>
More information about the Freeradius-Users
mailing list