DNSMasq on TL WR841ND connected to TL MR3220 3G

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
totogno
DD-WRT Novice


Joined: 08 Apr 2014
Posts: 16

PostPosted: Mon Apr 14, 2014 8:46    Post subject: DNSMasq on TL WR841ND connected to TL MR3220 3G Reply with quote
Hi,
I have a WR841ND v.8.2 flashed with dd-wrt build 23838 (IP 192.168.2.1), connected on the WAN port with a TL MR3220 with original firmware, on which I have internet connection thorugh a 3G dongle (IP 192.168.1.1).

I set DNSMasq on WR841, but it doesnt' work: when I connect to WR841 wifi, addresses are resolved using the MR3220 DNS settings, and not primarly WR841 settings specified in DNSMasq.

Does anybody knows how to solve it?
thanks in advance
Sponsor
Warbird
DD-WRT Novice


Joined: 20 Mar 2014
Posts: 26
Location: Earth

PostPosted: Mon Apr 14, 2014 18:02    Post subject: Re: DNSMasq on TL WR841ND connected to TL MR3220 3G Reply with quote
totogno wrote:
...
I have a WR841ND v.8.2 flashed with dd-wrt build 23838 (IP 192.168.2.1), connected on the WAN port with a TL MR3220 with original firmware, on which I have internet connection thorugh a 3G dongle (IP 192.168.1.1).
I set DNSMasq on WR841, but it doesnt' work: when I connect to WR841 wifi, addresses are resolved using the MR3220 DNS settings, and not primarly WR841 settings specified in DNSMasq.
...
How are you setting DNSMasq? I used
interface=br1
dhcp-option=br1,3,192.168.4.1
dhcp-range=br1,192.168.4.100,192.168.4.150,255.255.255.0,24h
dhcp-option=br1,6,71.243.0.12,68.237.161.12
It seems to work. Although I've noticed if I don't explicitly set DNS (using dhcp-option=br1,6,...), then DNS does not reliably come through my Gateway at 192.168.1.1.
Warbird
DD-WRT Novice


Joined: 20 Mar 2014
Posts: 26
Location: Earth

PostPosted: Mon Apr 14, 2014 22:13    Post subject: Reply with quote
Actually it only works on the first interface br1, dhcp-option=br1,6,...
Connected br2 clients only get the Gateway IP for "DNS Servers".
I guess we a have a ways to go yet...

My complete DNSMasq script for the WNDR3700v4 is:

interface=br1
dhcp-option=br1,3,192.168.7.1
dhcp-range=br1,192.168.7.100,192.168.7.150,255.255.255.0,24h
dhcp-option=br1,6,71.243.0.12,68.237.161.12
interface=br2
dhcp-option=br2,3,192.168.17.1
dhcp-range=br21,192.168.17.100,192.168.17.150,255.255.255.0,24h
dhcp-option=br2,6,71.243.0.12,68.237.161.12

I can list my firewall commands too if you like...
totogno
DD-WRT Novice


Joined: 08 Apr 2014
Posts: 16

PostPosted: Tue Apr 15, 2014 10:08    Post subject: Reply with quote
Hi Wabird,

thanks a lot for your suggestions..
I'm not an expert of DNSMasq, I just set following setting on Services page

DHCP server
JFFS2: not mounted
NVRAM for client lease DB: not flagged
used domain: LAN&WAN
LAN domain: lan

DNSMasq
DNSMasq: enabled
local DNS: diasabled
No DNS Rebid: enabled

Options DNSMasq
expanded-host
address=/casa.lan/192.168.1.71


On Setup page of dd-wrt, I have the following settings:

Router IP
local IP: 192.168.2.1
Subnet: 255.255.255.0
Gateway: 0.0.0.0
local DNS: 0.0.0.0

DHCP settings
DHCP server, enabled
static DNS1: 192.168.2.1 (my secondary router)
static DNS2: 8.8.8.8
static DNS3: 8.8.4.4
DNSMasq for DHCP: not flagged (DNSMasq was very slow in assigning IP)
DNSMasq for DNS: flagged
Auth DHCP: not flagged

Where should I write the script you suggested?
and what does the script do?

Thanks in advance
Warbird
DD-WRT Novice


Joined: 20 Mar 2014
Posts: 26
Location: Earth

PostPosted: Tue Apr 15, 2014 18:45    Post subject: Reply with quote
I setup isolated guest vlans on a WAP. The process does not use much of the UI settings, but rather relies on commands.
I would be happy to elaborate but the short version is combine the wisdom in these three docs.
- http://www.dd-wrt.com/wiki/index.php/Wireless_Access_Point
- http://www.dd-wrt.com/wiki/index.php/Multiple_WLANs
- http://www.dd-wrt.com/wiki/index.php/Separate_Lan_and_WLan

Sent you a separate pm...
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum