Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Multiple VPNs use the same IP-Network

    OpenVPN
    openvpn
    3
    6
    452
    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.
    • chymian
      chymian last edited by girish

      hello,
      it's stated that one can install multiple VPNs:
      "This app can be installed multiple times to create independent OpenVPN instances"

      which leads to having the same IP-network 10.8.x.x on all VPNs.
      which means, on can not connect to different VPNs at the same time.

        inet 10.8.0.6 peer 10.8.0.5/32 brd 10.8.0.6 scope global noprefixroute tun0
        inet 10.8.0.6 peer 10.8.0.5/32 brd 10.8.0.6 scope global noprefixroute tun1
      

      and during installation, an already used port is suggested.
      it would be nice if one can configure the IP-Networks by oneself, or at least don't use already used Networks.
      are there any possibilities to change it, if not, can you pls. fix this?

      TIA
      guenter

      fbartels 1 Reply Last reply Reply Quote 1
      • fbartels
        fbartels App Dev @chymian last edited by

        Hi @chymian ,

        I am curious: What is the use case for connecting from one client to multiple openvpn apps running on the same cloudron?

        chymian 1 Reply Last reply Reply Quote 0
        • chymian
          chymian @fbartels last edited by

          hey @fbartels,
          usecase is i.e.:
          I have several (cloud-/hosted-) servers which I need connection to.
          and I do have customers, where I need to have remote-access to their infrastructure *), but they must not have access to mine.
          not using a multi-purpose VPN yet, to hide (me and as service for my customers) behind my cloudron if abroad, since it's only a bridged and not a routed VPN.

          *) it would also be nice to have a disable switch to disconnect their NAS/servers, which automaticaly connect.

          on the other hand: what is a multiple-VPN ability on a server for, when I can not use them at the same time?
          JMTC

          regards
          guenter

          1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels App Dev last edited by

            OK, so you have a vpn where you connect your servers to, and another vpn where your clients connect to.

            I had a quick look at the code of the app and it seems quite possible to have the IP net configurable, e.g. In https://git.cloudron.io/cloudron/openvpn-app/blob/master/openvpn-conf.sh#L20

            I an not entirely sure where DHCP comes from in the app. Could not find it with my short look.

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by

              This is an interesting use case one which we did not consider - where the same machine connects to multiple VPNs. As suggested, we can look into making the network IP of each instance more dynamic so that this works out of the box.

              1 Reply Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                I have opened https://git.cloudron.io/cloudron/openvpn-app/issues/20

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Powered by NodeBB