What's new

Guest Scheduling and Set DNS

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

mad_daddy

Occasional Visitor
Hi All

Could anyone help with this script please??

Looking to schedule all my guests networks (i have 4 altogether (2 on 2.4G and 2 on 5G)) at 9am (on) and 10pm (off) - 7 days a week
Also looking to set all the guest networks DNS to the opendns.

At the moment i am looking at this thread:
http://www.snbforums.com/threads/feature-request-schedule-guest-network.18735/

But having difficulties with the script.
Also hoping all of this doesn't disturb my main wireless settings (i understand a reboot may be required when the wireless restart and i am happy with this)

update:
This is what i have put in my init-start file (please ignore times!!)

Edit:
The Schedule wifi required multiple scripts for this to work and the commands previously listed here did not work.

Please see here for solution i used:
http://www.snbforums.com/threads/time-of-day-limits-on-guest-access.19084/#post-136884


Tried dnsmasq.conf with these lines:

but killed internet!!!

can anyone help??

Any help appreciated!!!

Update:
See suggestion below for solution
 
Last edited:
Update 2:
Not sure if i have to use dnsmasq.conf, dnsmasq.conf.add or dnsmasq.postconf.

I know dnsmasq.conf replaces my original file hence the internet is killed, which means i have to play with the other two files.

I see so many people have asked for help with the same situation above but i cant find a definite solution.
I think i'm close though and once this is working i need a init-start script entry.

I will play around with the coding and if i crack this, i'll put up the scripts so others can use :)
 
Last edited:
why don't you use OpenDNS directly, without messing with dnsmasq

on your ASUS - WAN - choose "Connect to DNS Server automatically - NO"
type OpenDNS IP below
208.67.222.222
208.67.220.220

and you are good to go
 
Hi Peraburek
The reason why I dont want to use Opendns globally is that I want to have my main connection unrestricted and restrict my guest network for visitors and my children

Having said that by trial and error I have nearly got this config to work but because of time restraints and work it's taking longer for me to achieve.
Hopefully on my next day off I should be able to crack this (sometime next week)
 
Thanks for this info peraburek.
I will need to log in to each of my guest account and see what ip address the router is allocating each of them, then take it from there.
I did see if the post you refer to and was hoping to avoid the dhcp range part but it does make sense to include this as to make sure all devices go through the specified route.
Will try all of this next week and report back
 
Update:
Hi All
I have tried all day to get this script to work but still no luck :(
I have adding the codes to my dnsmasq.conf.add and it does change the dnsmasq.conf file on the router but the guests network still doesn't go through the opendns servers.

Does anyone have any more suggestions??


Update:
Adding these line to my script, sort of works (Opendns now works on guest networks but it also affects main network (i didnt want the main network to go through opendns servers but this script routes all networks!!).
Please note that i have added this in conjunction with the script above
no-resolv
strict-order
server=208.67.222.222
server=208.67.220.220
 
Last edited:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top