Page 1 of 2
Feature request: Wifi On/Off Scheduling
Posted: Tue Nov 22, 2011 10:21 am
by b4nd0ler0
Hi all,
Would it be possible to implement wifi scheduling to turn on/off the wireless interfaces at specific times and days of the week?
I think people may find this useful in a number of ways:
1- Allows internet access control to wifi-connected devices
2- Saves energy and EMF-exposure* when wifi is not needed
3- Make you wlan also a bit more secure as it's not available to would-be intruders when not in use
I own a Netgear WNDR3700 v1 wireless router currently with stock firmware and would like very much to stick Gargoyle on it but one thing holding me down is this feature. Latest stock firmware implements as "Schedule-based WiFi on/off"
http://support.netgear.com/app/answers/ ... -1.0.16.98
Thank you and regards
* As a non-ionizing radiation I do not believe that wifi EMF is harmful but turning it off when not needed will not harm either.
Re: Feature request: Wifi On/Off Scheduling
Posted: Wed Dec 14, 2011 2:31 am
by ispyisail
Re: Feature request: Wifi On/Off Scheduling
Posted: Wed Dec 14, 2011 6:49 am
by b4nd0ler0
Many thanks, that page wasn't on the wiki last time I looked!
That's good enough for me although as usual some people might prefer to do it through the web UI instead of fiddling around with the crontab.
Rgds
Re: Feature request: Wifi On/Off Scheduling
Posted: Wed Dec 14, 2011 8:56 am
by hnl_dk
b4nd0ler0 wrote:Many thanks, that page wasn't on the wiki last time I looked!
That's good enough for me although as usual some people might prefer to do it through the web UI instead of fiddling around with the crontab.
Rgds
it would be even cooler, if it would be possible to select some mac addresses that do not apply to the limits and then instead of turning on/off wifi, just restrict access to the rest of the mac addresses.
Re: Feature request: Wifi On/Off Scheduling
Posted: Mon Jan 02, 2012 2:43 pm
by schmetterling
I'd like implement wifi sheduler feature on WRT160NL (Gargoyle 1.5.2)
After first using a command
wifi up I saw:
Code: Select all
root@Gargoyle:~# wifi up
command failed: No such device (-19)
Configuration file: /var/run/hostapd-phy0.conf
Using interface wlan0 with hwaddr 00:23:69:XX:XX:XX and ssid 'Gargoyle'
What is mean
command failed: No such device (-19), which appeared only first time? Maybe is a bug?
wifi up and
wifi down works correctly.
According to your article:
http://www.gargoyle-router.com/wiki/dok ... ia_crontab
I have error message:
Code: Select all
root@Gargoyle:~# edit /etc/crontabs/root
-ash: edit: not found
Where is problem?
Re: Feature request: Wifi On/Off Scheduling
Posted: Mon Jan 02, 2012 4:00 pm
by ispyisail
Where is problem?
wiki changed
you will need to google how-to "vi", its a bit tricky to use, in fact I never use it.
I use nano
Code: Select all
opkg update
opkg install nano
nano /etc/crontabs/root
but its up to you
Re: Feature request: Wifi On/Off Scheduling
Posted: Tue Jan 03, 2012 2:05 pm
by schmetterling
thanks for explanation, I installed nano - it's more userfrendly;)
I noticed problem - yesterday I wrote:
wifi up and wifi down works correctly
Today, after putting into ssh console
wifi down command, router (WRT160NL) is freezing - I can not ping it via lan (from directly connected PC) and my PC and Smartfon do not see my wifi. Router is alive again after re-connecting power.
What's happend?
Re: Feature request: Wifi On/Off Scheduling
Posted: Tue Jan 03, 2012 3:15 pm
by ispyisail
What's happend?
can you cut a paste the full command and response
Re: Feature request: Wifi On/Off Scheduling
Posted: Tue Jan 03, 2012 4:42 pm
by DoesItMatter
schmetterling wrote:
Today, after putting into ssh console wifi down command, router (WRT160NL) is freezing - I can not ping it via lan (from directly connected PC) and my PC and Smartfon do not see my wifi. Router is alive again after re-connecting power.
You are putty-ing into the router via a LAN pc correct?
Do not issue the "wifi down" command via a wifi-connected PC
Try this:
1) Reboot the router
2) Login to router via putty through a LAN connected PC
3) issue command "wifi down" and see what happens to router
Re: Feature request: Wifi On/Off Scheduling
Posted: Wed Jan 04, 2012 3:36 pm
by schmetterling
Yes, I conected PC to WRT160NL direct via LAN and after issue "wifi down" (putty from PC) command, router is freezing. I can not ping it from PC via LAN and I do not see wifi on smatfon...
I do not known where is problem...I made hard reset of router and problem exist still - wifi down command frezees my router.