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

    CARP done right with VLANS?

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    4 Posts 2 Posters 1.8k 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.
    • T
      TheEnergy
      last edited by

      Hey Community.

      I have 2 PfSense firewalls with 4 nics.

      1 NIC is used for WAN.
      2 NIC is used for high availability sync/CARP
      3+4 NIC is used for VLANS/LANS

      Everything is working, 1 master and 1 backup. The high availability sync is running through the VLAN 4 (NIC 2).

      My real question is that made a VLAN 5 using the NIC 3 and to get everything working I had to set my virtual ip to CARP but the interface is VLAN 5. Is this the correct way? Or am I doing something incorrect here?

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        I really don't know what you are describing.

        If you add VLAN 5 to igb3, then assign an interface to VLAN 5 on igb3, that interface will be independent and will be tagged with VLAN 5 on igb3.

        VIPs really have nothing to do with anything in that case. All VIP types should function normally if added to that interface.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • T
          TheEnergy
          last edited by

          Well from pfsense doc.

          "Setup a Dedicated Sync Interface
          We strongly advise using a dedicated interface for synchronization, especially for state synchronization, handled using pfsync. This is not only for security purposes, but for resource utilization as well. State synchronization can consume significant amounts of traffic in a busy environment."

          So really my question is the VLAN 5 is not sync on a dedicated interface but rather on a interface that is heavily used.
          But i can only get the sync from a VLAN to work on the same interface as the vlan.

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            SYNC has nothing to do with VIPs either.

            You could use a VLAN interface as a pfsync/xmlrpc sync interface. Not sure you should, but you could. It won't care either. Just has to be tagged through the switch properly to both nodes.

            On a busy site you do not want pfsync to get backlogged. A rule of thumb is pfsync requires about 10% of the bandwidth represented by the states that are being synced.

            Why not just use a dedicated interface? If it's worth HA it's worth doing right.

            But i can only get the sync from a VLAN to work on the same interface as the vlan.

            No idea what you're saying here either.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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