[Dnsmasq-discuss] how to configure lot of static routes

Michał Lipka michal at lipka.email
Thu Jun 25 11:58:31 BST 2015


Hello,
I've set dnsmasq to provide static routes for vpn clients.
Several routes I can configure like this (gw is 1.2.3.4):
dhcp-option=121,10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4
dhcp-option=249,10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4
(the second line is for compatibility with MS and Apple systems)

Unfortunately I have a lot of different IP's to route (about 30).
If I put all in one line dnsmasq won't start (it accepts about 255 bytes
for dhcp-option according to RFC):
Jun 24 19:43:32 vpn dnsmasq[21760]: dhcp-option too long at line 318 of
/etc/dnsmasq.conf

Jun 24 19:43:32 vpn dnsmasq[21760]: FAILED to start up

If I make few lines with the same option only last is used:

dhcp-option=249,10.0.0.1/32,1.2.3.4

dhcp-option=249,192.168.13.15/32,1.2.3.4

and only route to 192.168.13.15 is set.

Is there possibility to configure all the static routes I need?

Thank you

Michal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150625/56e06971/attachment.html>


More information about the Dnsmasq-discuss mailing list