Turning the SSID or MAC on and off according to a schedule

Turning the SSID or MAC on and off according to a schedule.

Hello, I'm a complete beginner and I'm turning to you because I'm hoping for some help.

I would like to turn one of my SSIDs ("children") on and off according to a schedule, similar to "wifischedule." Unfortunately, with wifischedule, I can only turn off the entire Wi-Fi, which causes problems for devices that require a constant connection, such as vacuum cleaners or IP cameras.

It would be even better if I could turn the Marc Andreessen on and off according to a schedule; then I would only need one SSID and not several.

Thank you for your help, and I apologize if I've published this post in the wrong category.

Andreas

I translated this text from German to English using Google Translate.

You can define a whitelist of MACs for the SSID, or a blacklist. Thus, this needs to be modified at certain date/time using a cron-job.

Look here: https://openwrt.org/docs/guide-user/network/wifi/basic and search for ‘'macfilter” “maclist”

Another possibility is using NFT rules. But most likely more tricky to implement.

Easiest to implement in your case would be to use multiple SSIDs; and to switch on/off the childs SSID using a cron job.

Thanks for the quick reply, but what do I have to do? Add something to the schedule?

If so, could you give me an example?

It currently says:

30 06 * * Mon,Tue,Wed,Thu,Fri,Sat,Sun /usr/bin/wifi_schedule.sh start Businesshours
30 00 * * Mon,Tue,Wed,Thu,Fri,Sat,Sun /usr/bin/wifi_schedule.sh forcestop Businesshours

This is from wifischedule

Have a look at this https://www.flofaber.com/log/openwrt-disable-wifi-at-given-time

1 Like

Thanks for the tip, I'll try that right away.

But does anyone have any other ideas for disabling it via the MAC address?

Obviously, two methods are not good enough. Then a 3rd one: Set up a script, periodically checking the connected clients (iw dev phy0-ap0 station dump). And disconnect, in case not allowed in actual instant of time. And, another script to disconnect client immediately after connection detected, when not allowed. Take your choice.

If I understand correctly, you prefer to have one SSID, you have a list of devices (MACs) that need constant internet access, and you want to block everything else for a certain period of time.

If so, you can achieve this with two firewall (traffic) rules - one that allows the listed MAC addresses all the time, and another that restricts everything else for the given time period.