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
http://lists.freeradius.org/pipermail/freeradius-users/2012-February/059049.... On 16 November 2016 at 10:04, Marcin <marcin@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@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>
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@latera.ru> napisał(a):
http://lists.freeradius.org/pipermail/freeradius-users/ 2012-February/059049.html
On 16 November 2016 at 10:04, Marcin <marcin@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@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
Ok, I understand. but in documentation http://freeradius.org/radiusd/man/unlang.html there is nothing about time and date. 2016-11-16 15:04 GMT+01:00 Alan DeKok <aland@deployingradius.com>:
On Nov 16, 2016, at 5:55 AM, Marcin <marcin@nicram.net> wrote:
Thank your. I understand That %H represents hours. Can I do with this way? if ( %H > 22 and %H < 10 )
Read "man unlang". The syntax is documented.
if (("%H" > 22) && ("%H" < 10)) ...
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
-- Pozdrawiam Marcin / nicraM
On Nov 16, 2016, at 10:29 AM, Marcin <marcin@nicram.net> wrote:
Ok, I understand. but in documentation http://freeradius.org/radiusd/man/unlang.html there is nothing about time and date.
http://wiki.freeradius.org/config/run_time_variables Alan DeKok.
Ok, Thank You very much. Thanks for support 2016-11-16 16:33 GMT+01:00 Alan DeKok <aland@deployingradius.com>:
On Nov 16, 2016, at 10:29 AM, Marcin <marcin@nicram.net> wrote:
Ok, I understand. but in documentation http://freeradius.org/radiusd/man/unlang.html there is nothing about time and date.
http://wiki.freeradius.org/config/run_time_variables
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
-- Pozdrawiam Marcin / nicraM
participants (3)
-
Alan DeKok -
Marcin -
Бен Томпсон