Community discussions

MikroTik App
 
jetpr
just joined
Topic Author
Posts: 1
Joined: Sat Oct 06, 2018 4:34 pm

Wifi use by time and mac address

Sat Oct 06, 2018 4:49 pm

Hello
How i config mikroTik to user wifi use by time and mac address in one day.

Example:
Let the user connect to internet for 2 Hours and then stop internet to the user until next day.
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Wifi use by time and mac address

Sat Oct 06, 2018 8:58 pm

viewtopic.php?t=139542&p=689580#p688946
Hotspot might be easiest. If you want to only have selected devices use the hotspot you can add their MAC in the access list and force them onto a VLAN+bridge that runs the hotspot without needing to use a new SSID. Otherwise, just make a new SSID with the hotspot on it. Even then I don't know if on hotspot you can lock a device out when it's used up it's allocation for a 24H period. It might need some extra scripting to support this.
 
mistry7
Forum Guru
Forum Guru
Posts: 1480
Joined: Tue Oct 13, 2009 11:57 am
Location: Germany

Re: Wifi use by time and mac address

Sun Oct 07, 2018 12:31 am

Add hotspot
Enable trail,
Set it to 2 hours and you are done
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Wifi use by time and mac address

Sun Oct 07, 2018 11:17 am

Why would you restrict use of Hotspot users?
I have found out when I do restrict some, they just find other ways to connect to internet and I loose all information on what is going on. (use 3G/4G)
 
WeWiNet
Long time Member
Long time Member
Posts: 597
Joined: Thu Sep 27, 2018 4:11 pm

Re: Wifi use by time and mac address

Tue Oct 09, 2018 9:47 am

If you do need/want people to go into hotspot splash page etc.
then a simple way without hotspot in firewall: you add IP address to two address lists:
one "allowed" with time-out of 2h
one "wait for renewal" with time out of say 24h (or 6h, whatever you want)
You then drop traffic based on source address list
Important is the below rule order within firewall:
- accept if in "allowed"
- drop if in "overtime"
- add to adress lists with timeout

If you want you can then also clean the address list at midnight via script to have your 24h renewal.
 
Klose
just joined
Posts: 13
Joined: Thu May 10, 2018 6:00 am

Re: Wifi use by time and mac address

Fri Oct 26, 2018 12:40 pm

I have never used the mikroTik. So want to know, does it have a function like Parental Control?

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 85 guests