Add possibility to edit router/gateway directly in the web page /cgi-bin/dhcp.cgi

Hi!

When I use keepalived and want DHCP to work, in theory I could in /var/ipfire/dhcp/dhcpd.conf use

include "/var/ipfire/dhcp/dhcpd.conf.local";

And then in dhcpd.conf.local have something like

subnet 192.168.222.0 netmask 255.255.255.0 #GREEN
{
        option routers 192.168.222.254;
} #GREEN

But if I do that DHCP hungs. So now have edited “option routers” in /var/ipfire/dhcp/dhcpd.conf instead.

See Keepalived & DHCP fail-over issues

We are able to edit most options from WEBGU, but not “option routers”, not even via “Additional DHCP options”.

Could we also have the option to edit “option routers” in WEBGUI?

I have created two bug reports for this.

First one for “If I include “/var/ipfire/dhcp/dhcpd.conf.local” in /var/ipfire/dhcp/dhcpd.conf, DHCP stops working”:
https://bugzilla.ipfire.org/show_bug.cgi?id=12931

But I also think we should be able to edit the routers in WEBGUI, so I also created the bug report for “Add option to edit “option routers” in WEBGUI”
https://bugzilla.ipfire.org/show_bug.cgi?id=12930