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
  • Brite
  • 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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Can't make app VPN protection work

Can't make app VPN protection work

Scheduled Pinned Locked Moved Unsolved Support
7 Posts 2 Posters 59 Views 2 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.
  • B
    B
    bazinga
    wrote last edited by bazinga
    #1

    Apologies if this is considered an app-related issue, but to me it sounds like the platform issue.

    I want to restrict access to one of my Cloudron apps to a VPN only. I've got the VPN app running, client created, my OpenWRT home router has a WG interface added and a VPN routing policy added to route my desktop's requests to my Cloudron IP via the WG interface.

    Doing "traceroute app.domain.net" from my home machine I see the traffic going through the VPN (packets pass 10.9.0.1, which is the default VPN network), VPN app in Cloudron shows Rx/Tx.

    However the app for which I have enabled VPN Protection keeps showing "VPN connection required" page.

    Not sure what exactly I am doing wrong or how to troubleshoot this. Would appreciate any help.

    PS: I am on Cloudron 10.1.5.

    luckowL 1 Reply Last reply
    0
    • B bazinga

      Apologies if this is considered an app-related issue, but to me it sounds like the platform issue.

      I want to restrict access to one of my Cloudron apps to a VPN only. I've got the VPN app running, client created, my OpenWRT home router has a WG interface added and a VPN routing policy added to route my desktop's requests to my Cloudron IP via the WG interface.

      Doing "traceroute app.domain.net" from my home machine I see the traffic going through the VPN (packets pass 10.9.0.1, which is the default VPN network), VPN app in Cloudron shows Rx/Tx.

      However the app for which I have enabled VPN Protection keeps showing "VPN connection required" page.

      Not sure what exactly I am doing wrong or how to troubleshoot this. Would appreciate any help.

      PS: I am on Cloudron 10.1.5.

      luckowL
      luckowL
      luckow
      translator
      wrote last edited by luckow
      #2

      @bazinga Does a direct VPN connection between your computer and your Cloudron instance work?

      Pronouns: he/him | Primary language: German

      B 1 Reply Last reply
      0
      • luckowL luckow

        @bazinga Does a direct VPN connection between your computer and your Cloudron instance work?

        B
        B
        bazinga
        wrote last edited by
        #3

        @luckow You mean - configuring my desktop to route all traffic via the VPN? Haven't tried that because it should really be immaterial here... I've been using different kinds of VPNs for at least a decade now and running a tunnel on a router is something that I do often without any issues.

        In this case I want to make sure only one domain for all home devices is ever routed via the VPN. The rest shouldn't be routed via the VPN. So running a VPN on all devices all the time isn't a solution.

        luckowL 1 Reply Last reply
        0
        • B bazinga

          @luckow You mean - configuring my desktop to route all traffic via the VPN? Haven't tried that because it should really be immaterial here... I've been using different kinds of VPNs for at least a decade now and running a tunnel on a router is something that I do often without any issues.

          In this case I want to make sure only one domain for all home devices is ever routed via the VPN. The rest shouldn't be routed via the VPN. So running a VPN on all devices all the time isn't a solution.

          luckowL
          luckowL
          luckow
          translator
          wrote last edited by
          #4

          @bazinga Yes. Just to troubleshoot - “but to me, that sounds like a problem with the platform.”
          If the basic steps work, we can move on - just like with, “Did you turn it off and on again?” 🙂

          Pronouns: he/him | Primary language: German

          1 Reply Last reply
          0
          • B
            B
            bazinga
            wrote last edited by
            #5

            Setting a VPN up on the desktop is an extra annoyance that I wanted to avoid.. My thinking was - since traceroute shows traffic passing through the VPN's network that's sufficient proof of the VPN link being used.

            Rebooted Cloudron. Rebooted the router couple of times (along with restarts of the firewalls and ip caches flush).

            1 Reply Last reply
            0
            • B
              B
              bazinga
              wrote last edited by bazinga
              #6

              Additional tests:

              • Route all desktop traffic via router's WG tunnel.
                • IP / DNS leak tests on the desktop show the IP of my Cloudron.
                • The app protected by VPN Protection is not reachable and the error page is shown.
                • Review Cloudron's Event Log - for every entry it shows "Client IP" value, which is set to my Cloudron's IP - so I am accessing cloudron instance via the VPN.
              • Route only Cloudron IP via policy routing on my OpenWRT router to Cloudron's VPN.
                • Can access Cloudron console and all apps that aren't configured for VPN Protection.
                • Cannot access the app being protected.
                • Review Cloudron's Event Log - for every entry it shows "Client IP" value, which is set to my Cloudron's IP - so I am accessing cloudron instance via the VPN.
              • Direct access to my Cloudron's instance (no VPN)
                • Event Log entries now show my home IP under "Client IP" value
                • Cannot access the app being protected.

              If this doesn't prove that something is broken with VPN Protection, then please tell me what else to check.

              1 Reply Last reply
              0
              • B
                B
                bazinga
                wrote last edited by bazinga
                #7
                This post is deleted!
                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                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