OPNsense Forum

English Forums => High availability => Topic started by: shaam on November 21, 2026, 11:42:55 PM

Title: HA (CARP/pfSync) with Single ISP IP - WAN Failover, DHCP Issues, and Backup FW
Post by: shaam on November 21, 2026, 11:42:55 PM
Hi Community,

I'm looking for some guidance with my OPNsense HA setup. I've been working on this on weekends for the last six months, adding one piece at a time as my schedule allows, but I've run into a few issues that I haven't been able to resolve.

Environment
Physical Connectivity

WAN Side



LAN Side


Synchronization


I also created five production VLANs on both the firewalls and the switch. Additionally, I created VLAN 99 on the switch for the WAN network.

HA Configuration

On the primary firewall under System > High Availability:


Configuration synchronization appears to be working for firewall rules. However, VLANs did not synchronize, so I had to manually create them on the secondary firewall.

CARP Configuration

On both firewalls:


Current status:


LAN addressing:

Issue1 - WAN IP Does Not Return to Primary After Failover

When I shut down the primary firewall, the secondary firewall became active as expected.

However, after bringing the primary firewall back online and stopping the secondary firewall, several devices stopped working and the primary firewall would not obtain the ISP WAN address.

From the CLI, I could see DHCP activity and the ISP-assigned address (something like 72.x.x.x/23), but the WAN interface in OPNsense showed no IP address.

I left the system overnight without success.

The next morning, I powered off:


for about an hour. After powering everything back on, the primary firewall immediately obtained the WAN IP again and Internet access returned.

I contacted my ISP, and they said they can't manually release the IP lease on their side and suggested the issue is likely related to the firewall or modem.

Now Questions

Issue #2 - Secondary Firewall Appears to Be Serving DHCP While in BACKUP State

Despite the secondary firewall showing BACKUP status, I noticed devices appearing in its DHCP lease table.

My work laptop repeatedly lost Internet connectivity. While troubleshooting, I discovered it had received its lease from the secondary firewall.

The lease information showed DHCP Server: 192.168.1.253 (Secondary Firewall) instead of DHCP Server: 192.168.1.1 (CARP VIP)

This appears to indicate the backup firewall is still responding to DHCP requests even though it is not the CARP master.

Now Questions are

Some more questions

I have attached screenshots from both firewalls and the Cisco switch. The secondary FW and switch screenshots are in the reply post, since it only allowed 4.

Any guidance, recommendations, or examples from similar deployments would be greatly appreciated. Thank you for your time and help!
Title: Re: HA (CARP/pfSync) with Single ISP IP - WAN Failover, DHCP Issues, and Backup FW
Post by: shaam on November 21, 2026, 11:44:14 PM
Secondary firewall screenshots; I'll add the switch screenshot to the second reply. Thanks
Title: Re: HA (CARP/pfSync) with Single ISP IP - WAN Failover, DHCP Issues, and Backup FW
Post by: shaam on November 21, 2026, 11:44:58 PM
Cisco Switch's VLAN configuration screenshot. Thanks
Title: Re: HA (CARP/pfSync) with Single ISP IP - WAN Failover, DHCP Issues, and Backup FW
Post by: Patrick M. Hausen on November 22, 2026, 12:53:08 AM
QuoteHow should WAN failover be configured when only a single ISP IP address is available?

It should not. You should pick a contract that gives you a public /29.