How to set time based SSID broadcasting on Mikrotik

Hi Guys

I am new to the forum. I have a strange question.

I want to set my RB951Ui-2HnD that the Wireless SSID is only broadcasted or active for specific times.

We will be using it in a canteen area, and I only want the network to be accessible and the SSID broadcasted at certain time slots.

Is this possible, and how will I go about getting this setup?

Regards

Rudolph

Make two access-list rules; first one, to allow access during certain time and second on to deny access at all times. List order is important.

/interface wireless access-list
add comment="Allow access between 8am and 5pm" time=8h-17h,sun,mon,tue,wed,thu,fri,sat
add authentication=no comment="deny access" forwarding=no

The above rules will allow access between 8am and 5pm everyday while denying access at all other time.

Set up two scripts, one to disable the wlan and one to enable it.
Set up scheduler to run the scripts as needed.

user connected will be kicked off at 5pm?

I’m not usually a “solve it with scripts” guy, but this is definitely the right occasion for a script.

Agree 100% with Aug’s suggestion.

One more script might be useful - script which checks current time, and if in the “on hours” it enables the wireless interface, else it disables the wireless interface

Set up a “boot time” job to run this third script in case the device is powered down for a while.

Yes, all users will be kicked out at 5pm. You can modify the codes to reflect your preferred time by editing the value “time=8h-17h”