At my home I have a Raspberry PI2b that acts as a server DHCP because the provider router [Fastgate by Fastweb in Italy] is a very basic router.
In this scenario the clients receive as the gateway the Raspberry ip, but I don’t want this.
Instead the right gateway is the ip of Fastweb router.
So, each time that it is necessary to modify something in the DHCP server managed by IPfire, after the modifications, I perform this:
// accessing to IPfire using ssh protocol
$ ssh -l root -p 222 ‘ip_ipfire’
// editing the DHCP server configuration. Nano must be installed or use any other text editor
$ nano /var/ipfire/dhcp/dhcpd.conf
// change to the ip of your real gateway
option routers x.x.x.x
// restart DHCP server
It would be useful to have this possibility at the level of the general parameters in the user interface of DHCP Server.
Any suggestions will be appreciated!
Have a nice day!