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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

Multiple VPNs use the same IP-Network

Scheduled Pinned Locked Moved Solved OpenVPN
openvpn
6 Posts 3 Posters 484 Views
    • 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.
  • chymianC Offline
    chymianC Offline
    chymian
    wrote on last edited by girish
    #1

    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

    fbartelsF 1 Reply Last reply
    1
  • fbartelsF Offline
    fbartelsF Offline
    fbartels App Dev
    replied to chymian on last edited by
    #2

    Hi @chymian ,

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

    chymianC 1 Reply Last reply
    0
  • chymianC Offline
    chymianC Offline
    chymian
    replied to fbartels on last edited by
    #3

    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
    0
  • fbartelsF Offline
    fbartelsF Offline
    fbartels App Dev
    wrote on last edited by
    #4

    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
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #5

    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
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #6

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

    1 Reply Last reply
    1

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.