-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Describe the bug
We run dhcrelay on both OPNsense HA Cluster nodes. The dhcrelay on the inactive node duplicates the replies to the client. TCPDump on the client shows the following.
0 07:51:39.346602 0.0.0.0 255.255.255.255 DHCP 346 DHCP Discover - Transaction ID 0x4808457e
1 07:51:39.348191 192.168.2.2 192.168.2.130 DHCP 348 DHCP Offer - Transaction ID 0x4808457e
2 07:51:39.348514 192.168.2.3 192.168.2.130 DHCP 348 DHCP Offer - Transaction ID 0x4808457e
3 07:51:39.348514 192.168.2.3 192.168.2.130 DHCP 348 DHCP Offer - Transaction ID 0x4808457e
Analysis
The passive node forwards the requests from 192.168.2.3 to the dhcp server in a different subnet. The reply from the dhcp server however is routed via the active node and then received von the interface belonging to 192.168.2.3 where the dhcrelay is listening for dhcp (broadcast) packages. If i set a route on the dhcp server to route 192.168.2.3 directly to passive node, instead of active node (holding the carp ip) the duplication is not happening.
My guess is once processed as a reply and once picked from the interface as it is a udp packet to port 67.
Expected behavior
Both dhcrelay only send one relpy
Software version used and hardware type if relevant, e.g.:
OPNsense 25.4.3-amd64 on Deciso DEC4280