qmetrics.net

Selfhosted Gateway

Self-hosted Docker tunnel to expose local services

Networking & ConnectivityNo commits in 18+ monthsSelf-hostable

Selfhosted Gateway has had no code changes for over 18 months (last commit 1 year ago).

Selfhosted Gateway screenshot

Self-hosted Gateway links local Docker Compose apps to the public internet through WireGuard, Caddy, and nginx on a VPS you control.

Overview

Self-hosted Gateway automates reverse-proxy-over-VPN tunnels so locally hosted Docker Compose services can be reached from the internet without opening home-router ports. A gateway container runs on a publicly reachable Linux host while a link service joins your compose project on the client side.

Each link creates a dedicated WireGuard tunnel between the client container and the gateway, with traffic routed through nginx on the gateway and Caddy on the client. Caddy provisions HTTPS certificates automatically via Let's Encrypt or ZeroSSL, and remote client IPs can be passed to backends using proxy protocol.

Setup expects DNS A records pointing at the VPS, open HTTP and HTTPS ports, Docker on both ends, and a UDP local port range exposed for WireGuard. Generating a link produces a compose snippet and environment file to merge into an existing stack; multiple services can share one gateway.

Optional modes support forward-only TLS passthrough to an existing reverse proxy, TLS to backends, mutual TLS client authentication, basic auth via environment credentials, and generic TCP or UDP forwarding with socat.

Key features

  • Docker Compose link snippets
  • WireGuard RPoVPN tunnels
  • Automatic HTTPS via Caddy
  • nginx gateway reverse proxy
  • Proxy protocol client IPs
  • Optional basic authentication
  • TCP and UDP socat forwarding
  • Split DNS forward-only mode

Use cases

  • Exposing homelab apps behind CGNAT
  • Publishing compose stacks without portforward
  • Isolating exposed containers per link
  • Remote access without static home IP

Open-source alternative to

Cloudflare Tunnel
“Docker native self-hosted alternative to Cloudflare Tunnels, Tailscale Funnel, ngrok and others.” source
Tailscale Funnel
“Docker native self-hosted alternative to Cloudflare Tunnels, Tailscale Funnel, ngrok and others.” source

Tags

Compare Selfhosted Gateway

Similar software

Clash Verge Rev

Cross-platform Tauri desktop GUI for Clash Meta proxying

Clash Verge Rev is a desktop GUI for the Clash Meta proxy kernel on Windows, macOS, and Linux. It offers profile management, system proxy modes, and keeps configuration on your device.

  • Rust and Tauri 2 desktop stack
  • Custom themes, tray icons, CSS injection
  • Config merge, scripts, syntax hints
TypeScriptLinux, macOS, WindowsDetails →
★ 162.4k⟳ todayGPL-3.0

v2rayN

Desktop GUI client for proxy cores

v2rayN is a graphical client for Windows, Linux, and macOS that works with Xray, sing-box, and related proxy stacks. Prebuilt packages ship for common CPU architectures.

  • GUI for Xray and sing-box
  • Windows Linux macOS builds
  • Multiple CPU architectures
C#Linux, macOS, WindowsDetails →
★ 122.1k⟳ todayGPL-3.0

frp

Self-deployed reverse proxy for NAT and firewall bypass

frp pairs a public-facing frps server with frpc clients to expose TCP, UDP, HTTP, and HTTPS services behind NAT or firewalls, including P2P connect mode.

  • TCP UDP HTTP HTTPS tunneling
  • frps and frpc server-client model
  • Custom domain HTTP publishing
GoDetails →
★ 111k⟳ 2 days agoApache-2.0
Open Source Alternative to:Cloudflare Tunnelngrok+1

Caddy

Extensible server platform with automatic TLS

Caddy is an extensible server platform that enables HTTPS by default. It is often used as an HTTPS and HTTP server with a modular Go-based architecture.

  • Automatic HTTPS by default
  • Caddyfile and JSON configuration
  • JSON API for dynamic config
GoLinux, macOS, Windows, CLIDetails →
★ 80k⟳ yesterdayApache-2.0
Open Source Alternative to:Internet Information Services

FlClash

Multi-platform Clash Meta proxy client without ads

FlClash is a proxy client built on the mihomo (Clash.Meta) core for Android, Windows, macOS, and Linux. It supports rule routing, TUN mode, and subscription-based profiles.

  • mihomo core with rule routing
  • TUN and system proxy modes
  • Subscription and file profiles
DartLinux, macOS, Windows, AndroidDetails →
★ 67.3k⟳ 8 days agoGPL-3.0

Traefik Labs

Dynamic HTTP reverse proxy and load balancer for microservices

Traefik routes HTTP traffic to microservices and balances load across backends. It watches orchestrators and registries to update routes without manual restarts.

  • Dynamic configuration from orchestrators
  • Multiple load balancing algorithms
  • Circuit breakers and retries
GoDockerDetails →
★ 66k⟳ 3 days agoMIT