Skip to content

wstunnel

Single Rust binary that tunnels TCP, UDP and SOCKS5 over WebSocket or HTTP/2

Permissive (OSI) · BSD-3-Clause
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

67

Health

Active

Overview

Stars

7,215

Last commit

35 days ago

Oct 2026

Repository age

10 years

since May 2016

Latest version

v11.1.0

Oct 2026

Contributors

–

4 active in 90 days

Releases

12

last 12 months

Language

Rust

Wstunnel wraps your network traffic inside WebSocket, HTTP/2 or WebTransport so it passes firewalls and proxies that only allow web traffic. It is a client and server in one static Rust binary, so you copy it where you need it and run it. No Node.js is required.

It supports static forward and reverse tunnels for TCP, UDP, Unix sockets and stdio. It also offers dynamic tunnels through a SOCKS5 proxy, an HTTP proxy or a transparent proxy. The server can use TLS with an embedded self-signed certificate or your own, with automatic certificate reload and mTLS. It works through an upstream HTTP proxy, speaks the proxy protocol and supports IPv6.

The tunnel protocol is designed to look like ordinary traffic. Wstunnel runs on Linux and macOS, is installable with Homebrew, and has a Docker image. It is BSD-3-Clause licensed. Use it as a self-hosted alternative to commercial tunneling and VPN-over-HTTP services.

Who it's for

Remote workers on restrictive corporate or public networks

It carries SSH or other traffic over a port the network already allows.

Skip if: You need a full VPN client with a managed app and user accounts.

Self-hosters exposing a service behind NAT

Reverse tunnels let a home server be reached through a public host.

Skip if: You want a hosted tunnel with a dashboard and no server to run.

WireGuard users on blocked networks

UDP tunneling can carry WireGuard through a WebSocket connection.

Skip if: Your network already allows UDP traffic freely.

The problem it solves

Firewalls and proxies often block everything except web traffic. That cuts you off from SSH, VPNs and other services. Wstunnel carries that traffic over WebSocket or HTTP/2 so it passes as normal web use.

Strengths

  • Static binary with no runtime to install
  • Forward and reverse tunnels for TCP, UDP, Unix sockets and stdio
  • SOCKS5, HTTP and transparent proxy modes
  • TLS and mTLS with certificate auto-reload
  • Active: 12 releases in the last year

Trade-offs

  • Command line only, with no graphical interface
  • Version 7 rewrite is not compatible with older Haskell releases
  • WebSocket is faster than the HTTP/2 and WebTransport options
  • Needs a server you run yourself

Self-host wstunnel

Self-hostable
Yes

Quick start

wstunnel client -L 'tcp://4443:10.43.0.11:443' -P demo --tls-sni-override=google.fr wss://ws.erebe.dev

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is wstunnel free?

Yes. It is open source under the BSD-3-Clause license.

Which platforms does it support?

Linux and macOS, as a command line tool. It is available through Homebrew and as a Docker image.

Which transports can it use?

WebSocket, HTTP/2 and WebTransport. WebSocket is the most performant choice.

Can I try it before setting up a server?

Yes. A public demo server is available, and you can test it with a single client command and curl.

Similar tools in Tunnels, VPNs and networking

iodine

Tunnels, VPNs and networking

IPv4-over-DNS tunnel for getting online where only DNS queries get through

8k 604 yesterday Active ISC

external-dns

Tunnels, VPNs and networking

Kubernetes controller that syncs Services and Ingresses to DNS providers like Route 53

9.2k 3k today Thriving Apache-2.0

ztnet

Tunnels, VPNs and networking

Self-hosted web UI for managing ZeroTier networks with multi-user and organization support

1.3k 129 5 days ago Thriving GPL-3.0

ZeroTierOne

Tunnels, VPNs and networking

Virtual Ethernet network linking devices, VMs and containers, with self-hostable

17k 2k 4 months ago Dormant Unknown

Replaces Tailscale

hookdeck-cli

Tunnels, VPNs and networking

Command-line tool that forwards webhooks to localhost with permanent free event URLs

371 25 8 days ago Thriving Apache-2.0

yggdrasil-go

Tunnels, VPNs and networking

5.6k 366 30 days ago Active LGPL-3.0