Bypass router DNS for one SSID

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
neerav
DD-WRT Novice


Joined: 08 Jul 2010
Posts: 44

PostPosted: Fri Jun 30, 2017 14:34    Post subject: Bypass router DNS for one SSID Reply with quote
I have set up a few SSIDs including guest networks. Also have set up VPN client for all connections and a hosts file-based ad blocking as per the wiki entry. Everything works swimmingly.

To force all clients including guests to use my router and ad-blocking as their DNS, I have used "dhcp-option=6,192.168.1.1" in Additional DNSMasq Options.

For rare use because some site may only work through an unrestricted connection (non-vpn, non-adblocked), I have created an SSID that bypasses the VPN. It works fine. I need to also bypass the local DNS because of the ad-blocking. I have put 207.68.22.222 as Optional DNS Target for this unrestricted SSID, however as expected above, the DNS is still handed out as 192.168.1.1.

Is there a DNSMasq option I can use to force a different DNS for JUST this one SSID? Because this SSID is just for my use, an option to unforce the dhcp-option 6?

Don't want to manually change the DNS on the device(s) because I need to have it automatically go back to 192.168.1.1 when using the other SSIDs.

Using 32170M kongac on an R8000.

_________________
LinkSys E1000 ...... DD-WRT
LinkSys E2000 ...... DD-WRT
Netgear R8000 ...... Finally DD-WRT
TP-Link WR710N ..... Stock (considering DD-WRT)
Sponsor
neerav
DD-WRT Novice


Joined: 08 Jul 2010
Posts: 44

PostPosted: Sat Jul 01, 2017 16:04    Post subject: Reply with quote
Policy Based Routing. I put IP addresses in CIDR format of EVERYTHING I want to go through the VPN, and then leave out the IP range of the bypass-SSID.
_________________
LinkSys E1000 ...... DD-WRT
LinkSys E2000 ...... DD-WRT
Netgear R8000 ...... Finally DD-WRT
TP-Link WR710N ..... Stock (considering DD-WRT)
neerav
DD-WRT Novice


Joined: 08 Jul 2010
Posts: 44

PostPosted: Fri Jul 07, 2017 3:07    Post subject: Reply with quote
I would appreciate if you move your post to a new thread, so I can get an answer to my original post. PM me your new thread and I will try to help you there.
_________________
LinkSys E1000 ...... DD-WRT
LinkSys E2000 ...... DD-WRT
Netgear R8000 ...... Finally DD-WRT
TP-Link WR710N ..... Stock (considering DD-WRT)
neerav
DD-WRT Novice


Joined: 08 Jul 2010
Posts: 44

PostPosted: Sat Jul 08, 2017 18:17    Post subject: Solved: Bypass router DNS for one SSID Reply with quote
Figured it out.

Code:
dhcp-option=6,192.168.1.1
dhcp-option=wl1.1,6,208.67.222.222,208.67.220.220


The first line forces the DNS to the router's DNSMasq for everyone on all interfaces, which was already in the config. Then the second line specifies a different DNS for that ONE interface to bypass my router's DNSMasq and host-file ad blocking.

_________________
LinkSys E1000 ...... DD-WRT
LinkSys E2000 ...... DD-WRT
Netgear R8000 ...... Finally DD-WRT
TP-Link WR710N ..... Stock (considering DD-WRT)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum