[Dnsmasq-discuss] dnsmask respond to non-local network

Joseph C Bond IV JCBond at BnBFilms.com
Fri Nov 18 15:56:07 GMT 2016


I have tried doing this, but it created some bigger problems. The moment I added a second IP to the same interface my external router was unable to route traffic correctly from the Raspberry PI onto my VPN connection. I was still able to connect to the Raspberry PI when in the same network, but NO traffic was possible from the VPN to or from the Raspberry PI.

Removing the second IP on the interface returned the system to normal.

Any other way I can make dnsmasq respond to requests from the other subnet? Or is there a way to disable the protection that dnsmasq has that prevents it from replying to a different subnet?

Thank you again for any help.

-----Original Message-----
From: Albert ARIBAUD [mailto:albert.aribaud at free.fr] 
Sent: Thursday, November 17, 2016 4:51 PM
To: Joseph C Bond IV <JCBond at BnBFilms.com>
Cc: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] dnsmask respond to non-local network

Hi Joseph,

Le Thu, 17 Nov 2016 15:57:48 +0000
Joseph C Bond IV <JCBond at BnBFilms.com> a écrit:

> Sorry if this has been answered elsewhere but I can't seem to find the 
> answer anywhere.
> 
> I have a Raspberry PI 3 running a copy of dnsmasq to provide DHCP and 
> DNS services for my local network. This works perfectly.
> 
> My internal network is 192.168.21.1/24. The Raspberry PI is on a 
> static IP within this network. My external router assigns any VPN 
> client an address within the 192.168.23.1/24 network and does all 
> required routing so that clients on that network can reach hosts on 
> the internal network.
> 
> When I connect via VPN obviously my system has a 192.168.23.x address 
> and dnsmasq ignores all DNS queries.
> 
> How can I tell dsnmasq to reply to DNS queries from the
> 192.168.23.1/24 network as well?

Do the two subnets coexist on the same physical segment(s)? If so, then giving the host running your dnmasq an IP address in the 23.* subnet
*should* get you there.

(watch out for other services, though, which you may or may not want to run on both subnets.)

> Thank you in advance for all your help.



Amicalement,
--
Albert.


More information about the Dnsmasq-discuss mailing list