RemoHop

中文

Docs

Browser client

remohop web serves a browser client (remote desktop, terminal, files, clipboard and info) from this machine:

remohop web
remohop web --target dev

By default it listens on 127.0.0.1 and opens a URL containing an unguessable token, which is the login. A browser cannot speak the P2P session itself, so this process is the client and sees everything you do in the page. Any non-loopback --listen address requires --tls-cert, --tls-key and --password-file; a shared gateway should use --no-saved. See security.md.

Exposing it through Cloudflare Tunnel

To use remohop web from outside your network, keep it on a fixed loopback port, point cloudflared at it and put a Cloudflare Access policy in front. --public-url tells the gateway the https address browsers use, so it accepts the Host and Origin headers the tunnel passes through. Unit tests simulate tunnelled requests against the gateway; it has not been tried with a real Cloudflare tunnel.

remohop web --listen 127.0.0.1:8470 --password-file /etc/remohop/web-pass \
        --public-url https://remohop.example.com --no-open --no-saved
cloudflared tunnel run --url http://127.0.0.1:8470 <tunnel-name>

--public-url requires a loopback listen address and --password-file. For requests through the public address, the login rate limiter tells visitors apart by the CF-Connecting-IP header Cloudflare sets.

Programs (not browsers) can skip the login call and send Authorization: Bearer <gateway password> on every request. This suits a proxy that injects the header so the program never sees the password, for example next to Cloudflare Access service-token headers. Such requests share one gateway session and need no cookie, CSRF token or Origin; failures count against the login rate limit.