For anybodys information, I found a solution here http://www.linksysinfo.org/index.php?threads/dhcp-force-no-default-route.68176/
> Actually, I've used something like this for some time to prevent the > inclusion of a default route over DHCP (this was in concert with > OpenVPN TAP): > > dhcp-mac=openvpn,00:ff:*:*:*:* > dhcp-option=openvpn,option:router > > Works fine. > > Rodney I changed it slightly to be > dhcp-mac=nodefroute,*:*:*:*:*:* > dhcp-option=nodefroute,option:router This did the trick! Very Happy thx Lee On 06/07/2017 17:18, Lee Moore wrote: > Hi All, > > I would greatly appreciate some help on my issue. > (and I am a total novice at setting up dnsmasq!) > > I have a raspberry PI acting as a standalone WiFi Hotspot serving web pages. > I use hostapd, dnsmasq, as per instructions here :- > https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/ > > My dnsmasq.conf is as follows >> interface=wlan0 >> listen-address=192.168.1.1 >> bind-interfaces >> server=8.8.8.8 >> domain-needed >> bogus-priv >> dhcp-range=192.168.1.20,192.168.1.90,12h > When I connect from an iOS device, the iOS device is allocated the > following network parameters >> IP: 192.168.1.[20 - 90] >> Broadcast: 255.255.255.0 >> Router: 192.168.1.1 >> DNS: 192.168.1.1 > The Router setting of 192.168.1.1 is a real problem, this stops traffic > not intended for the HotSpot from using the > 3G/4G interface. > So in other words, I only want traffic targetted at 192.168.1.X to go to > the WiFi hotspot, all other traffic to go through > the 3G/4G interface. > > I can set the iOS network parameters manually, omitting the Router field, eg >> IP: 192.168.1.10 >> Broadcast: 255.255.255.0 >> Router: >> DNS: 192.168.1.1 > The above works perfectly. traffic intended for the hotspot goes to the > hotspot, all else goes through the cellular > 3G/4G interface. > > I am hoping there is some way to configure this automatically, rather > than manually. > On a previous Raspbian release I used udhcpd, and I was able to undefine > the 'router', and this worked perfectly > > Many Thanks in advance > Lee > > > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss