Self-host tunwg
v25.11.15+bbd247bWireGuard-based secure tunnel for local servers
- Stars
- 287
- Ports
- 443 (HTTPS traffic), 80 (HTTP redirect and ACME challenges)
ghcr.io/ntnj/tunwgWhat is tunwg?
Tunwg creates secure WireGuard tunnels to expose local HTTP servers to the internet with automatic HTTPS certificates. It runs as a single binary or Docker container, supports custom domains via CNAME, persistent URLs derived from WireGuard keys, HTTP Basic Auth, PROXY protocol for real client IPs, and can relay traffic over HTTPS when UDP is blocked. The server is stateless and requires no database. Users can self-host both the client and server components, or use the public instance at l.tunwg.com. It also provides a Go library for embedding tunnel functionality directly into Go applications.
Should you self-host tunwg?
tunwg scores 47/100 on selfhost.directory (how scoring works) and ranks #4 of 10 in Network. It has 287 GitHub stars.
It shipped 1 stable release in the past year. The latest, v25.11.15+bbd247b, came out on 15 November 2025.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Webhook.site (66/100, 6 786 stars). It scores higher overall, so compare the two before you pick. See tunwg vs Webhook.site side by side.
Features
- Automatic HTTPS certificates
- Custom domains
- Go library
- HTTP Basic Auth
- HTTPS relay modePerformance may suffer due to TCP-over-UDP-over-TCP encapsulation
- Multi-host port forwarding
- Persistent URLs
- PROXY Protocol support
- Stateless Server
- WireGuard Tunneling
tunwg README
More in Network
webrtc_turnOpen-source TURN relay for AndroMeld that relays encrypted WebRTC traffic when P2P fails. Deploy via Docker on your VPS or one-click Cloudflare Worker.
WireGuard EasyThe easiest way to run WireGuard VPN + Web-based Admin UI.
aiwayaiway is a self-hosted transparent SNI proxy that routes AI service traffic through your VPS using DNS and SNI routing, no VPN needed.
Apt-Cacher NGapt-cacher-ng is a self-hosted, open-source caching proxy that shares downloaded packages across a local network, supporting Debian, Ubuntu, Arch, and openSUSE.
awlAnywherelan is a self-hosted, open-source mesh VPN connecting devices directly without a central server. It provides SOCKS5 proxy and full-tunnel VPN gateway.
blocky-uiSelf-hosted web UI for blocky DNS ad-blocker. Toggle blocking, run queries, manage lists, flush cache — works without JavaScript.
cftunnelcftunnel is a self-hosted, open-source tunneling CLI for free HTTP/WS via Cloudflare and full TCP/UDP via self-hosted frp relay.
cloudflare-verified-ddnsSelf-hosted Cloudflare DDNS updater verifying DNS via DoH, adaptive polling, detailed telemetry. Python 3.13+, minimal Docker image.
containernetwork-autofixContainerNetwork AutoFix auto-recreates Docker containers using --net=container: networking when the master container restarts, preserving state. For Unraid and Docker.
copypartySelf-hosted file server with accelerated resumable uploads, deduplication, WebDAV, SFTP, FTP, TFTP, SMB, media indexing, thumbnails — all in one Python file.
dhcp-netboot.xyzA self-hosted Docker container that runs a ProxyDHCP server to PXE boot installers and utilities from netboot.xyz on your local network.
dnsweaverSelf-hosted DNS automation for homelabs: reads from 7 sources, writes to 12 providers with split-horizon DNS.
0 comments