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

    OpenVPN with master/slave setup

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 Posters 1.7k 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.
    • S
      stokbaek
      last edited by

      Hello,

      I am kinda in a bind. I have made a setup with a site A and site B. Both sides have a master/slave setup.

      I have a nagios server that is checking what server CARP is running on. Nagios server is in site A but it have to check in site A and B. Problem here is that slave in site B doesn't have a route to the OpenVPN. I have tried with NAT but couldn't get it to work, guessing I did it wrong so would be great if someone could help me with this.

      This is how the top looks like

      –- SITE A ------
      FW 1 ---- FW 2
      |              |
      --CARP IP--
              |  |
      WAN |  | OpenVPN
              |  |
      --CARP IP--
      |              |
      FW 1 ---- FW 2
      --- SITE B ------

      Its on the newest version on PfSense.
      /stokbaek

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Take a look in the doc:
        https://doc.pfsense.org/index.php/CARP_Secondary_Unreachable_Over_VPN

        1 Reply Last reply Reply Quote 0
        • F
          fmroeira86
          last edited by

          Hi,

          I'm having the same issue so I created the outbound nat.

          It works fine but you can't set the destionation as "ALIAS".

          Is it supposed to be this way?

          I would like to NAT only the traffic going to the SLAVE and MASTER FW.

          Thanks

          1 Reply Last reply Reply Quote 0
          • V
            viragomann
            last edited by

            Hi,

            to get the rule work for master and slave, you either need a separate NAT rule for each of them or you add an Alias first in Firewall > Aliases, which contains both, the masters and slaves LAN IP. Then you can use this Alias in a single NAT rule.

            For instance, mine looks like this:
            LAN  10.0.41.0/24 * FW1a2_LAN * LAN address * NO

            1 Reply Last reply Reply Quote 0
            • F
              fmroeira86
              last edited by

              I can not use an Alias with outbound nat.

              Can you share a print screen?

              1 Reply Last reply Reply Quote 0
              • V
                viragomann
                last edited by

                Yes, you're right. You have to select "Network" at destination type and enter your alias in the field below.

                ![2015-05-27 11_34_26Firewall_ NAT_ Outbound_ Edit.png](/public/imported_attachments/1/2015-05-27 11_34_26Firewall_ NAT_ Outbound_ Edit.png)
                ![2015-05-27 11_34_26Firewall_ NAT_ Outbound_ Edit.png_thumb](/public/imported_attachments/1/2015-05-27 11_34_26Firewall_ NAT_ Outbound_ Edit.png_thumb)

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