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

    Two pfSense-Gateways with one public ip

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    3 Posts 2 Posters 686 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.
    • F Offline
      FauserneEist
      last edited by

      We have a small rackspace with one public ip from our provider. I'd like to have two redundant pfSense gateways synced in a way that only one of them occupies the public ip and the other one's WAN port remains unconfigured until the first one crashes. In that case I'd like the second one to take over the public IP.

      I tried using CARP but I couldn't get it to work in different subnets because I couldn't set the default gateway on a CARP-IP. Is there another way to do this or do I have to buy an additional IP address in order to get this to work? I'm not quite sure what the other kinds of virtual IPs do in pfSense, could one of those modes be used?

      I don't need the public IP to be reachable at any time, we just need it to allow the machines behind it to connect to the internet.

      1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator
        last edited by

        The correct way to setup carp is with 3 public IPs at min..  There are some "hacks" that allow you to kind of trick it using rfc1918 space, etc.

        But I wouldn't think getting a couple more IPs would be all that expensive..  On most of my vps and or shared servers I can add IPs for like $1 a month each.. Can't you just get a /29 from your provider and then you would be cooking with gas..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • F Offline
          FauserneEist
          last edited by

          Yeah, I came to that conclusion as well. The customer needed some persuation though…

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.