Bug #11149
openDHCP relay won't start with DHCP server behind gateway
0%
Description
This is the case current 2.5.0 development snapshot as of today.
Configuration:
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.
Updated by Mark Lavrijsen about 4 years ago
And to be more compete, if I then disable that third interface, the DHCP relay then again won't start(same error).
Updated by John Cinuy almost 4 years ago
I have the same problem after an upgrade with our XG 7100 with 21.02-RELEASE-p1
The DHCP server is in another subnet and the DHCP relay doesn't want to start
Before upgrade, everything work fine but after upgrade, the service stay down unless i configure an IP adress in the same network of the DHCP server
Any solution for that problem ?
Updated by Mark Lavrijsen almost 4 years ago
John Cinuy wrote:
I have the same problem after an upgrade with our XG 7100 with 21.02-RELEASE-p1
The DHCP server is in another subnet and the DHCP relay doesn't want to startBefore upgrade, everything work fine but after upgrade, the service stay down unless i configure an IP adress in the same network of the DHCP server
Any solution for that problem ?
Well, I have found two possible workarounds:
1) use the above command to start the relay.
2) Fiddle with outbound NAT rules. In my case, dhcrelay starts after disabling automatic outbound NAT.
Updated by Mark Lavrijsen almost 4 years ago
It seems that the "bug" has indeed something to do with Outgoing NAT & dhcrelay. When starting from commandline dhcrelay it doesn't care, but "automatically" from pfSense something goes wrong.
Updated by Viktor Gurov almost 4 years ago
- Status changed from Duplicate to New