We have developed a billing system that communitcates with freeradius. We are defining users’ rate-limits with Mikrotik-Rate-Limit parameter. We can also define burst for our customers.
Now we need to ilmplement a different queue type like; the download speed will be 8Mb between 00:00-08:00, and it will be 4Mb in other times in the day.
How can I implement such queue together with freeradius.
I do return from Radius to mikrotik AdressList parameter, so RoS adds IP of user to that list
And than I apply mangle marking, queue tree. You may use conditional mangle rules, for example different connection marks in a day and at night and than traffic will flow through different queues
In Router OS you have the function “Scheduler” (under systems). There you can setup router OS command that will run on a certain time. For example, you have two ISP’s, and one is unlimited at night, and you want to route everyone after 20:00 to that ISP. Then create a schedule command that will run at 20:01 with enable route 0.0.0.0/24 gateway=192.168.1.254… Or whatever… And also disabale at 7:00 and also two rules for the other ISP.