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

    Decentralised VPN

    Scheduled Pinned Locked Moved OpenVPN
    8 Posts 3 Posters 916 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
      scilek
      last edited by scilek

      Consider the setup below:

      0_1552151689017_hw.somecompany.png

      What I am trying to do is to make these sites connect to each other. I already know that is easily achievable using OpenVPN, but the thing is that all these sites need to be able communicate with each other even when one of them is down.

      I have read/watched a dozen tutorials about OpenVPN and all of them suggest setting a server on the company HQ router and one client on each branch router, in which case the branches would depend on the the HQ router to be able to communicate with each other and the HQ router would unnecessarily become a hub for the company's private traffic. One other downside would be that if for some reason the HQ lost its connection, the private network would go offline.

      What I want to do, however, is to come up with a decentralised VPN setup. Traffic must not have to go through the HQ and if It were to go down, access from one branch to the others would still be possible. My theory is that if I were to set up one VPN server on each of the routers and clients for every other, I would achieve my goal.

      Does my theory make sense? If not, how would I be able to achieve my goal?

      1 Reply Last reply Reply Quote 0
      • PippinP
        Pippin
        last edited by

        Maybe tinc is better suited...

        I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
        Halton Arp

        1 Reply Last reply Reply Quote 0
        • S
          scilek
          last edited by scilek

          I have never heard about tinc and honestly, I don't care about it at all. I want to do this using OpenVPN. I know my theory would require me to do a lot of work setting up all the routers and if the company were to open a new branch, I would have to go through each and every router and add new clients. But that is not an issue at all. What I want to know if my theory is valid.

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

            Sure you can Mesh all your Sites with OpenVPN without any problem.
            What is your concern or question?

            -Rico

            1 Reply Last reply Reply Quote 1
            • S
              scilek
              last edited by scilek

              I wanted to validate my theory. Now I have; thank you very much.

              So, do you call it "a mesh"? Also, are there any problems that I might run into in such a setup?

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

                Yes you have Hub-and-spoke (aka star) or Mesh.
                I can't think of any problems, it just scales very poorly / lot of administration overhead.
                In my production network we have like 50 sites, it would be a big nightmare for me to add any additional site with mesh ☺
                Besides the fact that our branches only do a little talk to each other, our main site is also the datacenter hosting all the servers. So if the main site/HQ is down I have bigger problems then site A can't talk to site B anyway. 😁

                -Rico

                S 1 Reply Last reply Reply Quote 0
                • S
                  scilek @Rico
                  last edited by

                  @rico

                  I see, thank you again. "Administrative overhead" is not an issue. But I wonder, is there a practical or theoretical limit to the number of nodes I can include in this mesh?

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

                    There is no limit for mesh or star.
                    With lots of sites and traffic you just need beefy hardware. ☺

                    -Rico

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