Self-Hosted Gateway logo

Self-Hosted Gateway

Website

Docker-native reverse proxy over WireGuard to expose local services

1.7k stars 87 forks last commit first released AGPL-3.0

Slowing down

No commits since 17 Mar 2025. Check the issue tracker before you rely on it.

Self-Hosted Gateway screenshot

Self-Hosted Gateway automates provisioning of Reverse Proxy-over-VPN (RPoVPN) WireGuard tunnels to expose local Docker Compose services to the public Internet. It combines Caddy, Nginx and WireGuard to provide per-link tunnels, automatic TLS and a minimal docker-compose workflow.

Key Features

  • Automates provisioning of WireGuard-based RPoVPN tunnels that forward traffic from a public gateway to local docker-compose projects.
  • Uses Caddy on the client side and NGINX on the gateway to handle HTTPS termination, proxying and automatic TLS certificate provisioning.
  • Docker-native workflow: generate a small "link" docker-compose snippet and run a client container that establishes the tunnel and exposes specified services.
  • Per-link network isolation via Docker Compose private networks and dedicated WireGuard tunnels, reducing cross-service exposure.
  • Supports passing remote client IPs to local containers via proxy protocol, basic-auth via env variables, and proxying generic TCP/UDP traffic (socat).

Use Cases

  • Expose self-hosted web apps, dashboards or development services running in docker-compose to the public Internet without manual port forwarding.
  • Enable remote access to services from behind CGNAT or double-NAT by terminating traffic on a public VPS gateway and routing it over WireGuard tunnels.
  • Provide isolated, per-service tunnels for teams who want reproducible, auditable exposure of containerized services.

Limitations and Considerations

  • Requires a publicly addressable Linux gateway (VPS) with SSH and open ports 80/443 and an open UDP port range; a domain with A records is needed for TLS.
  • Installation and operation expect familiarity with Docker, docker-compose, Makefiles and basic Linux network/SSH administration; not a turnkey SaaS.
  • Relies on third-party components (WireGuard, Caddy, NGINX); diagnosis may require troubleshooting across those layers.

Self-Hosted Gateway is focused on a reproducible, self-managed pattern for exposing containerized services using reverse-proxy-over-VPN. It is intended for operators comfortable with Docker and VPS administration who want an open-source alternative to commercial tunneling services.

Categories:

Tags:

Tech Stack:

Share:

Similar to Self-Hosted Gateway

Zoraxy logo

Zoraxy

HTTP reverse proxy and gateway with web UI and real-time analytics

5.4k
320
Last commit

A general-purpose HTTP reverse proxy and forwarding tool for homelabs, offering web UI, ACME/TLS, stream proxy, plugins and realtime monitoring.

AGPL-3.0Actively maintained
Alternative to:
ngrok logo
ngrok
+16

GoDoxy

Reverse proxy and container orchestrator for self-hosters

4.1k
188
Last commit

High-performance reverse proxy and container orchestrator with Web UI, automatic Docker/Podman route discovery, idle-sleep, access control, and automated Let's Encrypt support.

Actively maintained
Alternative to:
Cloudflare Tunnel logo
Cloudflare Tunnel
+19
Ferron logo

Ferron

Fast, memory-safe web server with automatic TLS and modern protocol support

2.1k
94
Last commit

A Rust-written, memory-safe web server offering automatic Let's Encrypt TLS, KDL configuration, HTTP/2/HTTP/3, reverse proxying, and built-in tooling for serving web apps.

MITActively maintained
Alternative to:
Apache HTTP Server logo
Apache HTTP Server
+3
UUSEC WAF logo

UUSEC WAF

Web application firewall and API security gateway (WAAP)

1.7k
170
Last commit

High-performance web application firewall and API security gateway with semantic detection, rule management, and reverse-proxy deployment for protecting websites and APIs.

BSD-2-ClauseActively maintained
Alternative to:
Cloudflare Web Application Firewall (WAF) logo
Cloudflare Web Application Firewall (WAF)
+9
SWAG logo

SWAG

Nginx reverse proxy with automated TLS certificates and fail2ban

3.7k
276
Last commit

LinuxServer.io SWAG is a Docker image bundling Nginx reverse proxy, ACME certificate automation (Let’s Encrypt/ZeroSSL), optional PHP, and fail2ban intrusion prevention.

GPL-3.0Actively maintained
Alternative to:
Apache HTTP Server logo
Apache HTTP Server
+9
HomeServerHQ logo

HomeServerHQ

All-in-one home server platform with VPN, email, and relay

69
7
Last commit

Integrated installer and platform for home infrastructure. Provides VPN relay for NAT traversal, preconfigured email, automatic HTTPS, reverse proxy, and a web management utility.

GPL-3.0Actively maintained
Alternative to:
Cloudron logo
Cloudron
+19