I think that by default, dnsmasq will give out its own address as gateway to non-proxy requests, and the IP address of the proxy to proxied requests.<div><br></div><div>When that's not desirable, you've already discovered how to set the gateway option. The remaining piece of the puzzle is to assign a tag based-on the dhcp-range and match it in the gateway option. The syntax changes depending on which dnsmasq version you have, but it should be something like:</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
dhcp-range=set:lowblock,192.168.1.8,192.168.1.127,255.255.255.128</p><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">dhcp-range=set:highblock,192.168.1.130,192.168.1.240,255.255.255.128</p>
<p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">dhcp-option=tag:highblock,option:router,192.168.1.129</p><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
dhcp-option=tag:lowblock,option:router,192.168.1.1</p></span><br><div class="gmail_quote">On Mon, Sep 27, 2010 at 1:06 PM, Scott <span dir="ltr"><<a href="mailto:vivosomnio@comcast.net">vivosomnio@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Sorry, typo on what I wrote here, the IP is 192.168.1.253.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">This did remind me though to ask, how do I specify a different gateway for different dhcp ranges?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:richardvoigt@gmail.com" target="_blank">richardvoigt@gmail.com</a> [mailto:<a href="mailto:richardvoigt@gmail.com" target="_blank">richardvoigt@gmail.com</a>] <br>
<b>Sent:</b> Monday, September 27, 2010 10:35 AM</span></p><div class="im"><br><b>To:</b> Scott<br><b>Cc:</b> <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<b>Subject:</b> Re: [Dnsmasq-discuss] Single interface, multiple subnets...</div><p></p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><div><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div><div><p class="MsoNormal">The interface eth0 is configured as such:</p><div><div></div><div class="h5"><p class="MsoNormal">Ip: 192.168.0.253</p><p class="MsoNormal">Mask: 255.255.255.128</p><p class="MsoNormal">Gateway 192.168.1.129</p>
</div></div></div></div></blockquote><div><div></div><div class="h5"><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">This configuration is wrong, unless you have more routing rules you're not showing. The gateway needs to be local, which since eth0 is .0.253/25 means something .0.xxx, not .1.xxx.</p>
</div><div><p class="MsoNormal"> </p></div><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal"> </p><p class="MsoNormal">
Any help would be…helpful. ;-)</p><p class="MsoNormal"> </p><p class="MsoNormal">Warm regards,</p><p class="MsoNormal">Scott</p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>
Dnsmasq-discuss mailing list<br><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br><a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a></p>
</blockquote></div></div></div><p class="MsoNormal"> </p></div></div></blockquote></div><br></div>