Browse documentation
TCP tunnels
A path for the protocols beyond HTTP.
Forward a raw TCP service
Expose a local database, game server or SSH service with a TCP tunnel. The server allocates a public port and prints the address to use.
wirerift tcp 5432 --server tunnel.example.com:4443 --token YOUR_TOKENReserve the public port range
Open only the TCP ports you intend to allocate. Configure the server range with --tcp-ports, and mirror that choice in your firewall or container port mapping.
wirerift-server --token YOUR_TOKEN \
--domain tunnel.example.com --tcp-ports 20000-20099Restrict who can connect
Use an IP whitelist for raw TCP services. Basic Auth is an HTTP mechanism and does not authenticate a database or SSH protocol. Keep the native authentication of your service enabled.
wirerift tcp 5432 --whitelist "203.0.113.50,10.0.0.0/8" \
--server tunnel.example.com:4443 --token YOUR_TOKEN