Lightweight Rust UDP proxy with configurable target (defaults to Cloudflare WARP WireGuard).
1.5K
wg-gateway is a lightweight UDP proxy written in Rust.
By default, it forwards traffic to the Cloudflare WARP WireGuard endpoint (162.159.193.1:2408), but it can be configured to proxy any UDP service using environment variables.
The image is built as a fully static binary and runs on a scratch base, making it extremely small and suitable for minimal or containerized environments.
scratch-based container0.0.0.0:2408162.159.193.1:2408 (Cloudflare WARP WireGuard)| Variable | Description | Example |
|---|---|---|
| WG_TARGET | Target UDP address | 1.2.3.4:51820 |
| WG_LISTEN | Listen address | 0.0.0.0:51820 |
| WG_LISTEN_PORT | Listen port (if WG_LISTEN not set) | 51820 |
| WG_BUFFER | Receive buffer size (bytes) | 4096 |
| WG_SOCKET_BUF | Socket buffer size (bytes) | 2097152 |
| WG_TIMEOUT_SECS | Client idle timeout | 120 |
| WG_CLEANUP_SECS | Cleanup interval | 60 |
| WG_MULTI_THREAD | Enable multi-thread runtime | true |
| WG_WORKER_THREADS | Number of worker threads | 4 |
Content type
Image
Digest
sha256:8296ee6d2…
Size
525 kB
Last updated
5 months ago
docker pull devontm/wg-gateway