Force State Table reset on Failover?
I am using pfSense with multiple WANs and multiple LANs (VLANS), I have a VLAN for IP Phones with a firewall rule directing all outbound traffic from to 'PHONES' VLAN to a Load Balancer Pool also called 'PHONES' setup in 'gateway (failover)' mode across my two WAN connections.
The failover rule functions as it should and when 'opt5' (the first gateway in the failover pool) goes down it directs new traffic down 'wan' (the second gateway in the failover pool). The problem that occurs it that the firewall state table doesn’t reset, and so my IAX2 trunk to my VoIP provider still has a state directing it down the 'opt5' connection (which is now down), when in reality it now needs to be directed down the failover 'wan' connection, as soon as I reset the firewall state table manually it fixes the issue as the VoIP PBX re-establishes a stateful connection down the 'wan' connection as it should.
So my question is, how can I force a firewall state table reset automatically when one connection fails over to another? (Or is there a better way to fix this problem?)
Any help is greatly appreciated.
Have a look here: