How to set a floating/failover IP as main IP?
-
Hi all,
I would like to run pfSense CE in a VM at a hoster.
The VM has an official external IP (78.47.45.7 as WAN via DHCP) and a floating IP (49.12.119.35 currently as virtual IP) for failover, so I can switch the VPN to a different machine easily.
How do I setup pfSense so it uses the floating IP for outgoing messages? Just adding it as virtual IP seems not enough. Should it be the main WAN IP with a gateway?
I tried this, but using the gateway of the external IP (172.31.1.1) doesn't work, either it's states that they are not in the same sub-net or the VM is unreachable when setting it via wizard.
How can I configure this? Any help would be appreciated!
Thanks
bluepuma -
hi,
is the openvpn on the pfsense or on a vm behind the pfSense VM.
Do you want that all traffic that goes trough the pfSense would use your floating IP or do you want your openvpn on the pfsense to use the virtual ip?
If you would like the openvpn to use the floating ip on the pfsense you need to bind the openvpn server to the virtual ip (floating ip) in the openvpn server setup.
-
@thesurf Thanks soo much! I had the floating IP set up as virtual, I just never clicked on the Interface dropdown to see it listed there. I always thought that "WAN" is the obvious and only choice.
-
@bluepuma77
okay so it is working as you would like. Glad I could help you