DHCP relay won't start with DHCP server behind gateway
This is the case current 2.5.0 development snapshot as of today.
em0 --> LAN2 --> DHCP relay should listen here
em1 --> LAN1 --> has default gateway, DHCP server is on another subnet behind gateway
(note, it may have something to do with the "gateway" in on "old" LAN interface?)
The error thrown is: /services_dhcp_relay.php: No suitable upstream interfaces found for running dhcrelay!
As if it's unable to determine that it must use em1 as the upstream interface. But that interface is the only active interface with a gateway.
This from the command line does work as expected:
/usr/local/sbin/dhcrelay –i em0 –iu em1 <ip of dhcp server>.
The relay then works.
When adding a third interface directly in the same network of the DHCP server, the relay then starts without issues and works from the GUI.