DHCP without issuing Default Gateway?
-
Does anyone know of a way that I can get PFSense to
*** NOT ***
issue a Gateway IP Address?I have a situation, where Mobile Handsets would be connecting.
But I only want them to access the LAN.They are connecting to a WAP, which is mapped to a specific vLAN
which DHCP is served by PFSense… -
Just hand out 127.0.0.1 or some other IP on that network that is not a valid gateway.
-
Just hand out 127.0.0.1 or some other IP on that network that is not a valid gateway.
But then, the Device will not be able to reach the Public Internet,
because it will then be trying to access the Public Internet VIA the bogus IP Address…Is there not a way to disable DHCP from issuing a Gateway IP Address?
-
Huh? You stated you want them only reaching LAN
"But I only want them to access the LAN."
How are they going to reach the internet with no gateway?
-
The android clients have 4G built in to them.
I need them only to utilize WiFi, in order to access the LAN devices… -
Ah I see your problem then, if there is a gateway then that would take higher priority than there 4G connection most likely.
So what you need is the ability to override the default feature
" The default is to use the IP on this interface of the firewall as the gateway. Specify an alternate gateway here if this is not the correct gateway for your network. "
This might be better suited as a request here
http://devwiki.pfsense.org/RequestedFeaturesWhich points you to here
https://redmine.pfsense.org/projects/pfsense/issues/newOther options would be to run a different dhcp server than pfsense, or possible to directly edit the conf file that would be here
/var/dhcpd/etc
-
Replace /etc/inc/services.inc and /usr/local/www/services_dhcp.php with the following. Not 100% sure that it works properly in practice, but it definitely leaves the routers option out of your DHCP config. To use, type "none" without quotes in the gateway field.