6 releases

new 0.1.5 May 19, 2024
0.1.4 May 18, 2024
0.1.3 Apr 30, 2024

#802 in Command line utilities

Download history 272/week @ 2024-04-28 10/week @ 2024-05-05

282 downloads per month

MIT license

36KB
897 lines

Thru

A QUIC tunnel for TCP/UDP.

Install

cargo install thru

Example usage

TCP through QUIC.

Server endpoint

Forward QUIC traffic to tcpbin echo server.

thru -t quic://0.0.0.0:4242==tcp://tcpbin.com:4242 --cert certchain.pem --key key.pem

Client endpoint

Forward TCP tranffic to QUIC tunnel.

thru -t tcp://127.0.0.1:4242==quic://example.com:4242 --peer-cert root.pem

Echo client

nc 127.0.0.1 4242

TLS certificate

On the client side, --peer-cert is for the client to specify the server's root certificate. It's only needed for self-signed certificates and if it hasn't been installed on the system keystore.

Dependencies

~16–26MB
~500K SLoC