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. 10.1.5: 'Require VPN' on an App Proxy app fails with an assertion and deletes the app's nginx config
Everything related to the PHP CVE and eMudhra Cert Please read our Security issue thread - PHP and eMudhra cert compromise.

10.1.5: 'Require VPN' on an App Proxy app fails with an assertion and deletes the app's nginx config

Scheduled Pinned Locked Moved Solved Support
vpnnetworking
3 Posts 2 Posters 55 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.
  • W
    W
    webmin88
    wrote last edited by
    #1

    Hi There,

    Version: Cloudron 10.1.5 (box), VPN app installed (WireGuard + OpenVPN)

    What I did

    1. Installed the VPN app and added a WireGuard device with no custom CIDRs.
    2. On an App Proxy entry (Apps > Add app > App Proxy, pointing at an internal service), opened Access Control and turned on "Require VPN" (VPN protection), then saved.

    What happens

    • The UI shows an error: Assertion: expected 'object' !== 'string', thrown from getContainerIp6 at reverseproxy.js:446. It is reached through getVpnAccessIngressData from writeAppLocationNginxConfig.
    • The app's file in /etc/nginx/applications is deleted before the crash, and the new one is never written. Afterwards the app's domain is served by the default nginx server with the wrong certificate.
    • The setting does not stick: requiresVpn is still 0 in the database.
    • I reproduced this on three different proxy apps.

    Recovery

    Opening the app's Location and clicking Save rewrites the nginx config, and the app comes back.

    Expected

    Either the option works for App Proxy apps, or it is hidden or refused up front. In every case a failure should leave the existing nginx config in place.

    Why I think it happens

    A proxy app has no container, so there is no container IP to look up. getContainerIp6 receives a string where it expects an object, and the failure comes before the vhost is rewritten. I have only read the stack trace, not the code path, so this is a guess.

    Also

    "Require VPN" turns on without problems for a real (containerised) app, so the failure is specific to App Proxy.

    Side effect worth documenting

    With no app requiring the VPN, the generated client profile has an empty AllowedIPs =. Some clients (Firewalla) refuse to import or connect with it. This is only a documentation point, since the profile gets entries once an app requires the VPN.

    Logs

    The box.log lines from the failed save are available; I can attach them (redacted) on request.

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

      We are able to reproduce this easily and working on a fix. We have never really tested the combination of app proxy and vpn protection, so thanks a lot for the report!

      1 Reply Last reply
      1
      • nebulonN
        nebulonN
        nebulon
        Staff
        wrote last edited by
        #3

        This is fixed for next cloudron release then.

        1 Reply Last reply
        0
        • nebulonN nebulon has marked this topic as solved

        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