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. VPN-protected app access (only via IPv6) broken after every cloudron host/server reboot (internal container IPv6 ips are not stable across reboots)

VPN-protected app access (only via IPv6) broken after every cloudron host/server reboot (internal container IPv6 ips are not stable across reboots)

Scheduled Pinned Locked Moved Unsolved Support
3 Posts 2 Posters 37 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.
  • H
    H
    huehner
    wrote last edited by huehner
    #1

    Hello,

    I have a single app configured for vpn-protected access which initially works fine when used via openvpn with client app (i.e. curl) over both ipv4 and ipv6.

    However that breaks reproducibly after each cloudron server/host reboot with nginx showing the custom 403 error page "VPN connection required".
    It only break when client uses IPv6 but keeps working over IPv4.

    Root cause

    • docker container internal IPv6 are not stable but change after each reboot
    • nginx allow lines on the vpn-protected app are unchanged
    • so the new change ip's the traffic comes from get blocked by nginx

    Note that only the IPv6 ip's change on reboot the IPv4 ones are stable across host reboots.
    Because of this

    • VPN access via IPv4 works
    • normal app access (even without vpn) is unaffected with nginx proxy_pass lines using the internal IPv4 network

    That problem applies to both blocks of 'access' which are added when activating vpn-proctection

    • not just the source ip of the vpn container
    • but also from inside the vpn-protected app container itself (when using curl to the external domain to force going via nginx and using curl -4 vs. curl -6)

    Workaround

    • Stop + start the vpn-protected app as that updates (or recreates) the applications nginx config pulling in the current/new IPs
    1 Reply Last reply
    1
    • jamesJ
      jamesJ
      james
      Staff
      wrote last edited by
      #2

      Hello @huehner
      Please always include the information what Cloudron version your server is running.

      1 Reply Last reply
      0
      • H
        H
        huehner
        wrote last edited by
        #3

        Hello @james,
        sorry. forgot that 🤦

        • VPN app version 2.27.0
        • Cloudron version is 10.1.6 (latest)
          • Running on "Ubuntu 26.04.1 LTS Linux 7.0.0-43-generic"
        1 Reply Last reply
        1

        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