WrapGuard v1.4.2 fixes critical tunnel leaks and restores inbound routing and process launching.
Leak Prevention
Linux Leak Guard (amd64, arm64)
Wrapped programs now run under an unprivileged seccomp filter that intercepts network system calls, preventing accidental leaks from Go binaries, static executables, and libc's resolver:
- TCP connections are tunneled for all programs, including statically linked ones.
- UDP traffic belonging to the tunnel is refused; HTTP/3 clients fall back to TCP. UDP outside split-tunnel routes passes through unchanged.
- DNS queries are relayed through configured servers when
DNS =is set; without it, the host resolves names. Resolvers using unconnected UDP sockets are refused rather than leaked. - Destinations that the tunnel cannot carry (such as IPv6 with only
0.0.0.0/0) fail instead of using the host network when a default route is claimed. - Wrapped programs run with
no_new_privs, preventingsudoand setuid programs from working inside. 32-bit programs receive no sockets. - Docker's default profile denies
pidfd_getfd, limiting the guard to refusing traffic instead of tunneling it; run with--cap-add=SYS_PTRACEfor full support. WrapGuard warns when the guard is limited or unavailable.
Inbound connections reach ports bound to wildcard addresses; programs bound to loopback only are never exposed to the tunnel.
Routing & Configuration
Policy Routing Fixes
- Each peer with
Routedirectives now gets its own WireGuard device, allowing ports of one network to route to different peers. ListenPortapplies to the device shared by peers without routes, or to the first peer if all have routes.--exit-nodeis now a default only; other peers' more specificAllowedIPsstill take precedence. An explicitRoute = 0.0.0.0/0or--routetakes precedence over other peers'AllowedIPs.- When no policy matches and no default route is claimed, the host network is used. If the config claims a default route, the connection fails instead.
- Interface addresses now support comma-separated lists and are repeated correctly.
- Bare IP addresses in
AllowedIPsare treated as single-host prefixes, matching wg-quick behavior.
Port Forwarding & Inbound Connections
- Port forwarding now listens inside the tunnel's network stack, preventing collisions with the wrapped application's own listeners.
- Inbound connections can reach both IPv4 and IPv6 loopback addresses when the application listens on either.
DNS & Networking
DNS Relay
A new DNS relay answers queries on loopback by forwarding them through the tunnel to configured servers, enabling DNS to work correctly in split-tunnel and full-tunnel modes.
Process Launching
- Signal handling now respects terminal ownership: when WrapGuard owns the terminal, Ctrl-C and Ctrl-\ reach the child directly.
- The injected library handshake is skipped for guarded processes, which are already supervised by the leak guard.
Platform Support
- Experimental macOS support remains unchanged; the leak guard is Linux-only (amd64, arm64).
- Regression tests now cover end-to-end scenarios on Linux, including static binaries, UDP, split tunneling, and DNS.
Release assets
Downloads
Each archive has a matching .sha256 checksum attached to this release.