Controlling hotspot times?

Is there a way to control when hotspot users can login? For example, set up a profile for some users who can login all the time, and others can only login between 10am and 2pm?

I have the RB532 and RouterOS v3.3.

Thanks!

Seth

That is something that is more on the RADIUS side of things than on the router or Hotspot itself.

If you are using local authentication, you could probably write a script that would disable certain user names at a specified time and re-enable them when you wanted them to.

Can I run a radius server on the Mikrotik, or does it have to be on an x86 box?

User Manager is a RADIUS server you can run on top of a MikroTik. I’ve never used it so I’m not sure if you would be able to have the options of specifying what time frames access codes would be active during or not.

It’s fairly simple with RADIUS to specify this is when a code begins and this is when a code ends, but being able to program a code that will only allow access at certain times of the day would be a lot more complex. I wouldn’t expect an easy out of the box solution to it.

An easy way, if running radius on an x86 server would be to direct all the login pages to a php page whereby you can apply logic to the process before sending the details back to the hotpot.

for instance, get usernae and password, check valid by querying mysql server first, determine if login allowed at this time and if so, pass the login details back to the mikrotik servlet to do the radius authentication.