Community discussions

MikroTik App
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Topic Author
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Need help in Limiting Users' Daily Access

Sat Jun 11, 2011 1:27 pm

I need help in the following area pls!

I have a campus hotspot of about 3,000 users, The management requested that i limit all students to 3hrs per day each without accumulation. How do I achieve this task?

I am using User Manager 5.4 and 4.17 on a high configuration server systems. I have gone through the entire user manager and manual over and over looking for this solution and found no help!

I need ideas on this urgently.
 
siprox
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Fri Apr 01, 2011 11:14 am

Re: Need help in Limiting Users' Daily Access

Sat Jun 11, 2011 1:56 pm

I need help in the following area pls!

I have a campus hotspot of about 3,000 users, The management requested that i limit all students to 3hrs per day each without accumulation. How do I achieve this task?

I am using User Manager 5.4 and 4.17 on a high configuration server systems. I have gone through the entire user manager and manual over and over looking for this solution and found no help!

I need ideas on this urgently.
why you not create scheduler to activated/disable that user just 3 hours/perday.
example, user just can login on 09:00 till 12:00, otherwise disable it, user can login in the same clock but different day.
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Topic Author
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Need help in Limiting Users' Daily Access

Sat Jun 11, 2011 8:18 pm

Siprox,

I thought of that but that was not acceptable as some student might not be free at that time while others will be free, so the best which is their request is to be free to go online anytime of the day,

Also, that will over flood the network as everybody has to go online at a certain time in order to have access to the net.

Need more solutions pls.
 
User avatar
petrn
Member Candidate
Member Candidate
Posts: 180
Joined: Thu Jul 29, 2010 3:56 am
Location: Dubai

Re: Need help in Limiting Users' Daily Access

Sat Jun 11, 2011 10:41 pm

Hi,

give all users 3hours uptime, then reset counter by scheduled script every midnight or so ..
/tool user-manager user set [find <condition>] uptime-used=0
EDIT: seemed as good idea, looks it's not possible in V4 userman:
/tool user-manager user reset-counters [find <condition>] 
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Topic Author
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Need help in Limiting Users' Daily Access

Sun Jun 12, 2011 12:46 am

Hi,

give all users 3hours uptime, then reset counter by scheduled script every midnight or so ..
/tool user-manager user set [find <condition>] uptime-used=0
EDIT: seemed as good idea, looks it's not possible in V4 userman:
/tool user-manager user reset-counters [find <condition>] 
Interesting, can you pls give more details on how to achieve this? I will concentrate on v5.4 right now, so forget about v4.
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Topic Author
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Need help in Limiting Users' Daily Access

Mon Jun 13, 2011 12:01 am

I have not gotten any solution oh! Help pls, How do i use the solution above?

Petrn, Can you put more light to the solution as you proffer?
 
User avatar
petrn
Member Candidate
Member Candidate
Posts: 180
Joined: Thu Jul 29, 2010 3:56 am
Location: Dubai

Re: Need help in Limiting Users' Daily Access

Mon Jun 13, 2011 7:05 am

Hi,

here what i have tested in V5.4:
1. in userman->Profiles->Limitation create limitation with "uptime: 3h"
2. in userman->Profiles->Profiles create profile and select limitation from step 1
3. create/update users with profile from step 2
4. schedule counter reset:
/system schedule 
add disabled=no interval=1d name=hotspot-reset on-event=\
    "/tool user-manager user reset-counters [find]" policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date=\
    jun/13/2011 start-time=00:00:01
of course this assumes that all users in userman are students, but you can make script which will reset only selected users. And do your own testing - preferably not on live/production system.
If you need more detailed help/guidance look for MT consultants.
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Topic Author
Posts: 276
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Need help in Limiting Users' Daily Access

Tue Jun 14, 2011 8:07 pm

Thanks Petrn,

I have been studying the script above looking for a way of including the profile "students" so that instead of reseting all users, it look for users with profile "students" and then apply the reset command on them. Any one good at MT scripting and schedulling should help pls.

Who is online

Users browsing this forum: No registered users and 13 guests