Sam
2017-10-27 07:09:15 UTC
Hi,
 here is a small patch that allows dnsmasq to assign IP addresses from
subnet, that is not configured on listening interface.
Use case:
 - I've a server(s) with multiple virtual machines, with network
settings configured via DHCP.
 - Each VM has statically assigned private IPs from subnet range on
the bridge, but some of them might have also public addresses from
subnet range that is *only routed* on that bridge.
 - With this patch I'm able to let dnsmasq assign this public
addresses by defining a *virtual subnet*. This is not otherwise allowed,
because dnsmasq is doing 'same net' checking on the incoming interface
subnet and to-be-assigned IP address.
Usage is simple:
dhcp-range=wan,XXX.XXX.XXX.1,*virtual*,255.255.255.240,12h
It's a quick hack, but it works for me perfectly.
Kind regards
 Sam
 here is a small patch that allows dnsmasq to assign IP addresses from
subnet, that is not configured on listening interface.
Use case:
 - I've a server(s) with multiple virtual machines, with network
settings configured via DHCP.
 - Each VM has statically assigned private IPs from subnet range on
the bridge, but some of them might have also public addresses from
subnet range that is *only routed* on that bridge.
 - With this patch I'm able to let dnsmasq assign this public
addresses by defining a *virtual subnet*. This is not otherwise allowed,
because dnsmasq is doing 'same net' checking on the incoming interface
subnet and to-be-assigned IP address.
Usage is simple:
dhcp-range=wan,XXX.XXX.XXX.1,*virtual*,255.255.255.240,12h
It's a quick hack, but it works for me perfectly.
Kind regards
 Sam