# portal-tunnel

> Self-hosted tunnel runtime exposing local services via relays with end-to-end TLS, MITM detection, multi-relay failover, and x402 micropayments — no accounts needed.

- **Category:** Networking
- **Licence:** MIT
- **Latest version:** v2.7.0
- **Open source:** oss
- **Languages:** Typescript, Go
- **Platforms:** Docker, Docker Compose, Windows, macOS
- **Tags:** Tor, Reverse Proxy, Nat Traversal, Tunneling, Self Hosted, Self Hosting, Micropayments, Relay, X402, Ngrok alternative, Agent skills, E2ee, Secp256k1, Trustless, Agentic Web, X402 Payment, Udp Relay, Ivnp, Mitm Detection, Siwe, Tcp Tunneling, Localhost Exposure

## Description

Portal publishes local apps, APIs, and agents to the internet through self-hosted or public relays. It eliminates port forwarding, firewall rules, and manual DNS. TLS terminates locally for uncached HTTPS streams, while a built-in self-probe detects MITM termination. Multiple relays form failover pools, and an IVNP overlay adds routing privacy. Micropayments use gasless stablecoins on Sui, Casper, or Nano. Auth relies on local secp256k1 identities with SIWE signing — no accounts or API keys. The CLI handles one-off tunnels; Portal Agent runs persistent tunnels from a TOML config with a TUI dashboard. Relays run as a single Docker image with embedded DNS and automatic ACME certs. MIT-licensed, zero telemetry, no enterprise tiers.

## Links

- [Homepage](https://github.com/gosuda/portal-tunnel)
- [Website](https://gosuda.github.io/portal-tunnel/)
- [Docker](ghcr.io/gosuda/portal)
- [GitHub Repository](https://github.com/gosuda/portal-tunnel)
- [Feature Inventory](https://gosuda.github.io/portal-tunnel/features)
- [Getting Started](https://gosuda.github.io/portal-tunnel/getting-started)
- [CLI Reference](https://gosuda.github.io/portal-tunnel/cli-reference)
- [Portal Agent Guide](https://gosuda.github.io/portal-tunnel/portal-agent)
- [Self-Hosting Guide](https://gosuda.github.io/portal-tunnel/self-hosting)
- [Configuration Reference](https://gosuda.github.io/portal-tunnel/configuration)
- [Security Model](https://gosuda.github.io/portal-tunnel/security-model)
- [Deployment Guide](https://gosuda.github.io/portal-tunnel/deployment)

---
Source: https://selfhost.directory/project/portal-tunnel