I have two Linux box running PFsense, one of them is a master and the other one is a backup. The master is having IP 192.168.1.2 and backup is having IP 192.168.1.3. I have created a VIP 192.168.1.1 which is the default gateway for all the systems in the LAN.
In both master and backup I have two interfaces WAN1 and WAN2 which connects to two other Linux machines (not running PFSense) which in turn connects to the ISP's. I have created gateway groups for load-balancing and failover.
All the systems in LAN is able to access internet even if any of the ISP system or the firewall system (PFSense) goes down. The below architecture works great for load-balancing between ISP's and failover.
The problem happens with SSH connections. If any of the system goes down the SSH connection breaks, so I have to restart the connection.
What change is required in the architecture so that the SSH connections does not get interrupted even when any of the systems goes down?