<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-06-25 16:02 GMT+02:00 <a href="mailto:wkitty42@gmail.com">wkitty42@gmail.com</a> <span dir="ltr"><<a href="mailto:wkitty42@gmail.com" target="_blank">wkitty42@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 06/25/2015 06:58 AM, Michał Lipka wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello,<br>
I've set dnsmasq to provide static routes for vpn clients.<br>
Several routes I can configure like this (gw is 1.2.3.4):<br>
dhcp-option=121,<a href="http://10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4" rel="noreferrer" target="_blank">10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4</a><br>
dhcp-option=249,<a href="http://10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4" rel="noreferrer" target="_blank">10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4</a><br>
(the second line is for compatibility with MS and Apple systems)<br>
<br>
Unfortunately I have a lot of different IP's to route (about 30).<br>
If I put all in one line dnsmasq won't start (it accepts about 255 bytes for<br>
dhcp-option according to RFC):<br>
Jun 24 19:43:32 vpn dnsmasq[21760]: dhcp-option too long at line 318 of<br>
/etc/dnsmasq.conf<br>
<br>
Jun 24 19:43:32 vpn dnsmasq[21760]: FAILED to start up<br>
<br>
If I make few lines with the same option only last is used:<br>
</blockquote>
<br></span>
does breaking the line work?<br>
<br>
eg:<br>
dhcp-option=249,<a href="http://10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4" rel="noreferrer" target="_blank">10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4</a>, \<br>
  <a href="http://192.168.13.16/32,1.2.3.4,192.168.13.17/32,1.2.3.4" rel="noreferrer" target="_blank">192.168.13.16/32,1.2.3.4,192.168.13.17/32,1.2.3.4</a>, \<br>
  <a href="http://192.168.13.18/32,1.2.3.4,192.168.13.19/32,1.2.3.4" rel="noreferrer" target="_blank">192.168.13.18/32,1.2.3.4,192.168.13.19/32,1.2.3.4</a>, \<br>
  <a href="http://192.168.13.20/32,1.2.3.4" rel="noreferrer" target="_blank">192.168.13.20/32,1.2.3.4</a><span class=""><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div>Thank you for this idea. Unfortunately it does not work. dnsmasq fails at first line which has no option:</div>







<p class=""><span class=""># dnsmasq --test</span></p><p class="">dnsmasq: bad option at line 321 of /etc/dnsmasq.conf </p><div>(in your example it would fail at 2nd line: <a href="http://192.168.13.16/32">192.168.13.16/32</a> ........)</div><div><br></div><div><br></div></div></div></div>