DNSMasq (with schedule?)

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
kreous
DD-WRT Novice


Joined: 04 Feb 2017
Posts: 2

PostPosted: Wed Sep 20, 2017 5:48    Post subject: DNSMasq (with schedule?) Reply with quote
Hi,

I use DNSMasq with OpenDNS to use filters and block access to certain websites.

In the setup of my R7000 the DNS that I indicate are those from OpenDNS. And the code I use in "Additional DNSMasq Options" to give unfiltered access to a computer is:

dhcp-mac=altnet,9X:9X:X9:99:9X:X9
dhcp-option=altnet,option:dns-server,8.8.8.8,8.8.4.4

The above configuration gives "free" access at all times.

Is there a way to give access according to a schedule? For example, every day from 12:00 to 13:30.
Sponsor
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Wed Sep 20, 2017 8:51    Post subject: Reply with quote
you could try to create VLAN or even VAP (if you don't have ethernet clients) for "altnet" and then with cron and ifconfig to bring it up and down at wanted hours...
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum