Allow IPs inside virtual IP networks to be used as gateways. Fixed #2962