enable or disable guest wifi on schedule

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
alex3137
Posts: 26
Joined: Tue Feb 21, 2017 10:59 am

enable or disable guest wifi on schedule

Post by alex3137 »

Hello

Is it possible to schedule when the guest wifi is enabled ?

Thanks

Lantis
Moderator
Posts: 5592
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: enable or disable guest wifi on schedule

Post by Lantis »

You'd need to write a script to turn it on/off, then trigger that with CRON.
There's plenty of examples on the internet.

To just disable the guest network, you'll want to create an option called "disabled" under the wifi-iface and set it to 1, then restart the "wifi"
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ektus
Posts: 183
Joined: Sun Aug 11, 2013 2:26 am
Location: Germany

Re: enable or disable guest wifi on schedule

Post by ektus »

There's the "WIFI Schedule" plugin that can toggle wifi on a daily or weekly schedule. Maybe that one could be expanded to not only toggle the entire wifi, but also parts of it (guest, 2.4GHz, 5GHz).


Regards
Ektus.

Lantis
Moderator
Posts: 5592
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: enable or disable guest wifi on schedule

Post by Lantis »

Are you volunteering :P

But yes that would be one way of doing it.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

alex3137
Posts: 26
Joined: Tue Feb 21, 2017 10:59 am

Re: enable or disable guest wifi on schedule

Post by alex3137 »

Lantis wrote:You'd need to write a script to turn it on/off, then trigger that with CRON.
There's plenty of examples on the internet.

To just disable the guest network, you'll want to create an option called "disabled" under the wifi-iface and set it to 1, then restart the "wifi"


Ok thanks I should be able to write this.

alex3137
Posts: 26
Joined: Tue Feb 21, 2017 10:59 am

Re: enable or disable guest wifi on schedule

Post by alex3137 »

Can you confirm in which file and what is the name of the guest wifi interface ?

I looked in /etc/config/network and see nothing corresponding to the guest wifi interface.

Lantis
Moderator
Posts: 5592
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: enable or disable guest wifi on schedule

Post by Lantis »

It will be in /etc/config/wireless

It will be a section with a name of
"ap_gn_g" or "ap_gn_a"
The "gn" meaning Guest Network, and the G or A meaning 2.4 or 5GHz networks.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply