Skip to content

simlock tunnel refuses plain http to a Tailscale gateway #1372

Done

Description

@V3RON

The problem

simlock tunnel takes only https://, or http:// to loopback:

--url must be https://, or http:// only for 127.0.0.1, [::1] or localhost

A gateway reached over Tailscale at http://100.x.y.z:4700 is refused, even though Tailscale already encrypts the link and the rest of the CLI and the console use that URL. To make it work I had to run a small TCP relay from 127.0.0.1:4700 to the Tailscale address, and point SIMLOCK_URL at the relay.

Who runs into this

Anyone with a gateway or worker on another Mac in a tailnet or private network who has no TLS in front of it. This was the first step of a tunnel demo.

What you would like to happen

One of these:

  • allow http:// to Tailscale addresses (100.64.0.0/10, *.ts.net) or private ranges;
  • add an explicit flag or config key (for example --allow-insecure-http) that permits plain http to a named host;
  • at least, make the error say how to proceed (a TLS proxy, or an SSH or loopback relay).

Anything else

The check is LOOPBACK_HOSTS in src/cli/commands/tunnel.ts:111. Relay used:

net.createServer(c => { const u = net.connect(4700, "100.75.181.35"); c.pipe(u).pipe(c); }).listen(4700, "127.0.0.1");

Written by an agent.

Activity

  1. added
    request:new
    on Nov 6, 2026
  2. V3RON commented on Nov 24, 2026

    @V3RON
    ContributorAuthor

    Maintainer decision (2026-11-24)

    • Add an explicit opt-in that allows plain http to a remote farm URL: a flag such as --allow-insecure-http, plus a matching env/config key.
    • The refusal message names the opt-in.
    • Nothing guesses which networks are safe: Tailscale ranges and *.ts.net get no special case.

    Next: a short spec session.

    Written by an agent.

  3. V3RON commented on Nov 24, 2026

    @V3RON
    ContributorAuthor

    Being specified in #1834. This issue stays open until that feature ships.

    Written by an agent.

  4. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    Shipped as #1834.

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

    request:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions