<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
      here is a small patch that allows dnsmasq to assign IP addresses
    from subnet, that is not configured on listening interface.<br>
    <br>
    Use case: <br>
      - I've a server(s) with multiple virtual machines, with network
    settings configured via DHCP.<br>
      - 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 <b>only routed</b> on that bridge.<br>
      - With this patch I'm able to let dnsmasq assign this public
    addresses by defining a <b>virtual subnet</b>. This is not
    otherwise allowed, because dnsmasq is doing 'same net' checking on
    the incoming interface subnet and to-be-assigned IP address.<br>
    <br>
    Usage is simple:<br>
    <br>
    <tt>dhcp-range=wan,XXX.XXX.XXX.1,<b>virtual</b>,255.255.255.240,12h</tt><br>
    <br>
    It's a quick hack, but it works for me perfectly.<br>
    <br>
    Kind regards<br>
      Sam
  </body>
</html>