Hello,
I need assistance from any one who has an idea. I need to restrict the number of hours a user should be up and browsing per day. ie, if a user is to be allowed access for say, one month, i need to be able to restrict his/her uptime to say, 2hrs per day for the one month. Once this uptime limit is reached, the hotspot should log the user out, and allow the user access again only on the next day.
please hw do i do this...? Am quite new to mikrotik...
The best way is to use the following script and scheduler to reset your users uptime and also left time,which means after running the script, even if your user's uptime limit has reached,it resets and that user can connect again.
I have some users which are allowed to use the internet for 45 minutes per day for 1 year. I created a 45min-named profile and assigned a limitation in which I put an uptime limit = 45m(45 minutes)
then write these two commands in New Terminal:
/ system script
add name="rst-PPPoE-cnt" source="/tool user-manager user reset-counters
number=1,2,5,6" policy=ftp,reboot,read,write,policy,test,winbox,password
note: the number 1,2,5,6 are the number of users which you want to reset the counters for.
in /tool user-manager user> when you type "print" you can see the numbers assigned to users
then:
/ system scheduler
add name="rst-PPPoE-user-cnt" on-event=rst-PPPoE-cnt start-date=may/13/2013 start-time=00:00:01 interval=1d
it works perfectly!!!!