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

    Single server, multi site, shared key OpenVPN config?

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 3 Posters 744 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
      FearNaBoinne
      last edited by

      Is it possible to have multiple site-to-site tunnels running to a central OVPN server, using a single server config on the hub, and similar configurations on the remote firewalls?

      I am trying to set something like that up to replace IPsec, and I have a single server with the following config:
      Site to Site (Shared Key)
      Proto: TCP (There's a reason for using TCP!)
      Port: 1194
      Tun (layer 3)
      Tunnel network: a.b.c.d/24

      The client has matching settings, but if I specify the same a.b.c.d/24 tunnel subnet, it automatically assumes that it should use the 2nd address in that subnet, which means only a single client would be able to connect.
      If I do not specify a tunnel subnet, the tunnel never comes up...

      Is it even possible using the pfSense GUI?

      jimpJ 1 Reply Last reply Reply Quote 0
      • RicoR
        Rico LAYER 8 Rebel Alliance
        last edited by Rico

        Shared Key requires one server per client.
        With PKI you only need one server instance, but unique certificates per client.

        Personally I like to use PKI with one server per client to spread the load across multiple OpenVPN instances. Hard to get 1 Gbps+ OpenVPN traffic with only one Instance.

        -Rico

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate @FearNaBoinne
          last edited by

          @fearnaboinne said in Single server, multi site, shared key OpenVPN config?:

          Is it possible to have multiple site-to-site tunnels running to a central OVPN server, using a single server config on the hub, and similar configurations on the remote firewalls?

          Yes, but you must use SSL/TLS mode with certificates to have multiple clients on a single server.

          Is it even possible using the pfSense GUI?

          OpenVPN itself cannot operate with multiple clients in shared key mode, it's not a pfSense limitation.

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          F 1 Reply Last reply Reply Quote 0
          • F
            FearNaBoinne @jimp
            last edited by

            I was afraid of that... Wanted to stay away from creating certs, too bad....

            I'll have to go the cert-route after all I guess!

            Thanks for the quick response!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              If you really want to avoid certificates, and IPsec is not an option, consider using the WireGuard package instead. It may be closer to what you are after in terms of design.

              You may be able to have one "server" with many peers, depending on your needs.

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • RicoR
                Rico LAYER 8 Rebel Alliance
                last edited by

                What is the problem with creating Certs?

                -Rico

                F 1 Reply Last reply Reply Quote 0
                • F
                  FearNaBoinne @Rico
                  last edited by

                  @rico it's just a pain in the proverbial behind...

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