Page 1 of 1

can I have a user with 2 hour internet for every day

Posted: Mon Feb 13, 2012 7:47 am
by javadsh
Hi, dears
can I have a user with 2 hour internet for every day that he/she use it during a day(he/she use 20 min and disconnect , again 60min and ... til that account finish for today) , and for tomorrow same senario and every day.

Re: can I have a user with 2 hour internet for every day

Posted: Mon Feb 13, 2012 6:56 pm
by dasiu
Yes, you can! :)

1. Create a simple hotspot (using the wizard), you can find many tutorials on this
2. Create the hotspot user and set the time restrictions for him (for example - 2 hours of activity)
3. Create a script, that resets the counters for the user (or for all hotspot users) - with scripting you can do magic :)
4. Create a scheduler entry, running the script everyday on midnight :).

Re: can I have a user with 2 hour internet for every day

Posted: Tue Feb 14, 2012 8:57 pm
by javadsh
thank alot dear, dasiu
there is script & schedule guide here:
http://wiki.mikrotik.com/wiki/Reset_Hotspot_user_count

Re: can I have a user with 2 hour internet for every day

Posted: Fri Jun 08, 2012 8:42 pm
by Etza
Hi
Can I do this reset for one user profile ???

Re: can I have a user with 2 hour internet for every day

Posted: Sat Jun 09, 2012 10:48 am
by Devil
Hi
Can I do this reset for one user profile ???
for resetting counters for users with default profile for example, use it like this:
/ip hotspot user reset-counters [find profile=default]