Re-establish site-to-site IPsec on failover (CARP)
a-h last edited by
I'd appreciate any help or suggestions that people may have.
Firstly, my setup includes 2 PfSense boxes (2.4.1) with both CARP and IPsec setup and working correctly. Connections are initiated from the remote end (router) to the CARP address and re-establish themselves within ~1 second upon disconnecting the tunnel from my end.
The problem I'm having is during testing of a firewall failover, if I enter persistent maintenance mode (or simply change advskew), everything fails over to the backup as expected but the IPsec tunnel remains on the primary (now backup) firewall. In the ipsec.log file, I can see the following when this happens as well;
"old path is not available anymore, try to find another"
"looking for a route to 126.96.36.199"
If I disconnect the IPsec session via the browser or CLI on the former primary firewall, it is re-established again on the same firewall (instead of the backup that now has the CARP address) which I can also see in ipsec.log.
Has anybody else had experience with this and have any suggestions on how to prevent this from happening?