Page 1 of 1

Wifi use by time and mac address

Posted: Sat Oct 06, 2018 4:49 pm
by jetpr
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.

Re: Wifi use by time and mac address

Posted: Sat Oct 06, 2018 8:58 pm
by nescafe2002
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.

Re: Wifi use by time and mac address

Posted: Sun Oct 07, 2018 12:31 am
by mistry7
Add hotspot
Enable trail,
Set it to 2 hours and you are done

Re: Wifi use by time and mac address

Posted: Sun Oct 07, 2018 11:17 am
by Jotne
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)

Re: Wifi use by time and mac address

Posted: Tue Oct 09, 2018 9:47 am
by WeWiNet
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.

Re: Wifi use by time and mac address

Posted: Fri Oct 26, 2018 12:40 pm
by Klose
I have never used the mikroTik. So want to know, does it have a function like Parental Control?