Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Preview tunnel answers 403 when nothing is listening on the port; triggers IDS/IPS blocks that cut off remote clients #48028

Closedlansgt(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

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.

  1. lansgt(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. I'm taking this one. Reproduced it, and I have a fix that returns 404 instead of 403 for an empty port. PR coming.

  3. juliusmarminge closed this

Sign in to join this conversation.