Before submitting#
Area#
apps/web
Steps to reproduce#
Server and Windows desktop client: 0.1.14-nightly.20261203.5637 (also seen with client 0.1.14-nightly.20261202.5597, and occasionally on 0.1.12). Server on Linux as a systemd user service, client connecting over a WireGuard VPN through a UniFi gateway with Threat Management (Suricata) in blocking mode.
Why it matters: 403 is a common IDS signature (ET/GPL rule 2101201 "GPL WEB_SERVER 403 Forbidden"). In blocking mode the gateway then drops all traffic between the server port and the client for 300 seconds. The client reconnects after 5 minutes, gets the 403 again, and is blocked again, so it can never stay connected. From the server side everything looks healthy: authentication and WebSocket upgrades succeed, then the sockets stall with unacknowledged data.
Expected behavior#
Expected: no tunnel request for a port with no listener, or at least a status that does not mean "forbidden" for a refused upstream connection (502, 503 or 404).
Actual behavior#
What happens: on every connect, the desktop client calls GET /api/preview/tunnel?wsTicket=...&port= for a loopback port where nothing is listening. The server logs PreviewTunnelConnectError "Nothing accepted a connection on loopback port " and returns HTTP 403 with a 53-byte text/plain body.
Impact#
Blocks work completely
Version or commit#
0.1.14-nightly.20261203.5637
Environment#
Linux Server and Windows desktop client
Logs or stack traces#
Screenshots, recordings, or supporting files#
No response
Workaround#
Suppress signature 2101201 for the server address in the gateway's IPS.
I'm taking this one. Reproduced it, and I have a fix that returns 404 instead of 403 for an empty port. PR coming.