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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Feasibility of running cloudron inside a vpn with package redirection

Feasibility of running cloudron inside a vpn with package redirection

Scheduled Pinned Locked Moved Discuss
firewall
4 Posts 3 Posters 533 Views 3 Watching
  • 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.
  • M Offline
    M Offline
    malvim
    wrote on last edited by girish
    #1

    Hey, guys.

    Still working on the raspberry pi thing, but something came up that made me think of this:

    I followed this article and was able to run a simple webserver on my laptop (on my home network) and connect to it using an outside server that was only forwarding traffic between its actual network and my vpn (in which the laptop also resides) using iptables.

    So, in theory, I'm thinking it should be possible to have a box inside my home network in which I would install cloudron, and have some server on the internet that would redirect all traffic to this box via VPN, right?

    So here's what I'm thinking and some questions that arose:

    • I'd need to configure cloudron using the "static ip" configuration, pointing to the ip of the outside server; sounds like it would be okay, since certificates and DNS would all point and resolve to the server, but it would redirect all traffic to my home machine and it seems like it would work;
    • I'd need to know which ports to redirect. I looked at the docs and it seems other than 80 and 443 there's 25 for email and maybe a few others?
    • What about outbound connections, is there something I'm overlooking that might not work in this setup?
    • Would email be a pain in the ass for some reason? I'm not solid in how it works.
    • I know there are apps that need to expose other ports on the cloudron box, and these ports would need to be redirected as well, but I'd be willing to do this manually if need be

    So what do you guys think? Would this be feasible?

    Thanks! 🙂

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      This should be doable. Depending on your ISP and home connection, you may also just have that Cloudron inside your home served up directly. In this case you have to configure the router firewall to portforward the used ports to your server. If your IP address changes, Cloudron also has a feature to deal with this https://docs.cloudron.io/networking/#dynamic-dns

      Both @girish and I run Cloudrons in such a way at home 🙂

      M 1 Reply Last reply
      1
      • nebulonN nebulon

        This should be doable. Depending on your ISP and home connection, you may also just have that Cloudron inside your home served up directly. In this case you have to configure the router firewall to portforward the used ports to your server. If your IP address changes, Cloudron also has a feature to deal with this https://docs.cloudron.io/networking/#dynamic-dns

        Both @girish and I run Cloudrons in such a way at home 🙂

        M Offline
        M Offline
        malvim
        wrote on last edited by
        #3

        @nebulon thanks!

        Yeah, I've had problems with my ISP regarding forwarding of these ports. Most of them around here block forwarding of 80, 443, 25 and such for so-called "security reasons" which most people are pretty sure just mean they want to sell you fixed IP addresses and more expensive plans.

        That's why I thought about running it like this, since I've already got a cheap small box somewhere else.

        What ports do you think I should be concernet about forwarding packages? Is it just 80, 443 and 25? I've taken a look at cloudron_firewall.sh and there's a bit more stuff going on there, isn't there? Heheh

        Thanks! 🙂

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @malvim said in Feasibility of running cloudron inside a vpn with package redirection:

          What ports do you think I should be concernet about forwarding packages? Is it just 80, 443 and 25? I've taken a look at cloudron_firewall.sh and there's a bit more stuff going on there, isn't there? Heheh

          https://docs.cloudron.io/security/#cloud-firewall is the full list. But at the barest minimum port 443 is enough.

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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