Hi all,
I'm not a developer, so apologies if I describe this badly.
I turned on Require VPN for my Guacamole app. When I connect through the Cloudron VPN app (WireGuard) and open Guacamole, the page starts to load and then shows an error. I never get to the login button. When I turn Require VPN off, Guacamole works normally again.
The error on screen:
ERROR
An error has occurred and this action cannot be completed. If the problem persists, please notify your system administrator or check your system logs.
The error in the browser's developer console (F12):
POST https://[my-guacamole-address]/api/tokens 403 (Forbidden)
The response to that request is Cloudron's "VPN connection required" page.
My setup:
Cloudron 10.2.0
VPN app 2.27.2 (WireGuard, "Route only app traffic")
Guacamole app 2.7.7, logging in with Cloudron
Steps to reproduce:
Install the VPN app and the Guacamole app.
In Network → VPN protection, choose the VPN app and "Route only app traffic".
Turn on Require VPN for Guacamole.
Connect a laptop to the VPN with WireGuard.
Open Guacamole in a browser. It shows the error above before any login button appears.
What I expected: the normal Guacamole login page with the Cloudron login button.
Things I've checked:
I also have a Surfer app with Require VPN turned on, and it works fine through the VPN. So the VPN itself seems to be working.
I've tried two different laptops, each with its own WireGuard profile, and both get the same error on Guacamole.
Some tests I ran, with help, from a laptop connected to the VPN:
curl -s https://[my-guacamole-address]/api/languages
→ shows a list of languages (so the app seems reachable)
curl -s -d "" https://[my-guacamole-address]/api/tokens
→ shows the "VPN connection required" page
I was told this might mean the VPN page is being shown in place of Guacamole's own "please log in" reply, but I'm not sure.
Is this a bug, or have I set something up wrong? Happy to send logs or try things if someone tells me what to do.
Thanks!