Skip to content

The Test Relay button does not test on Full Tunnel mode #160

Closed

Description

@r-safavi

First of all, I want to thank you for the Full Tunnel mode addition, it really is a great feature. Today I deployed a Google Cloud instance and set it up as the tunnel for the Full Tunnel mode. It works, I see the IP belonging to Google Cloud's servers when I go to whatismyipaddress[dot]com. However, when I hit "Test Relay" a different IP is shown to me (even if I do it while the service has started already). So I think the Test Relay button always falls back to the normal Apps Script (MITM) mode. I tested this with the UI version on Windows with v1.4.0.

Activity

  1. therealaleph commented on Apr 25, 2026

    @therealaleph
    Owner

    You're right — and good catch. The bug:

    test_cmd::run unconditionally used fronter.relay(), which is the apps_script-mode code path. In Full Tunnel mode the actual data plane is the pipelined tunnel mux talking to your tunnel-node — but Test Relay was bypassing that entirely and probing Apps Script directly, which is why the IP it reported didn't match what whatismyipaddress.com showed in your browser. Worst-of-both-worlds: a "passing" test that has nothing to do with the configured mode.

    Fix shipped in v1.4.1 (commit c9ac5bc, tag in flight). When mode=full, Test Relay now refuses cleanly with this message:

    mhrv-rs test is wired only for the apps_script relay path. In full mode the data plane is the pipelined tunnel mux talking to your tunnel-node — Test Relay would bypass that and probe Apps Script directly, which is misleading. To verify full mode end-to-end, start the proxy and load https://whatismyipaddress.com in your browser via 127.0.0.1:8085 (HTTP) or :8086 (SOCKS5) — the IP shown should be your tunnel-node's VPS IP. Tracking a real Full-mode test in #160.

    Same shape as the existing google_only branch in test_cmd.rs.

    Real Full-mode test (probing through the tunnel mux end-to-end) is queued as a follow-up — needs more wiring than the apps_script path because it goes through TunnelMux + connect/data ops. Not blocking this release.

    For your case in the meantime: since whatismyipaddress.com already shows your Google Cloud VPS IP, your tunnel is verified working — the "Test Relay" disagreement was a UI lie, not a real failure. Closing once v1.4.1 ships.


    [reply via Anthropic Claude | reviewed by @therealaleph]

  2. added 2 commits that reference this issue on Apr 25, 2026
    1770920
    17added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions