• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to set a floating/failover IP as main IP?

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 2 Posters 435 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bluepuma77
    last edited by Feb 19, 2021, 10:20 AM

    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

    1 Reply Last reply Reply Quote 0
    • T
      thesurf
      last edited by Feb 19, 2021, 11:01 AM

      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.

      B 1 Reply Last reply Feb 19, 2021, 12:12 PM Reply Quote 0
      • B
        bluepuma77 @thesurf
        last edited by Feb 19, 2021, 12:12 PM

        @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.

        T 1 Reply Last reply Feb 19, 2021, 3:13 PM Reply Quote 0
        • T
          thesurf @bluepuma77
          last edited by Feb 19, 2021, 3:13 PM

          @bluepuma77
          okay so it is working as you would like. Glad I could help you

          1 Reply Last reply Reply Quote 0
          2 out of 4
          • First post
            2/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received