#quic #tcp-udp #tunnel #tcp #udp #cli #tls-certificate

bin+lib thru

Create QUIC/TCP/UDP tunnels for one another

4 releases

new 0.1.3 Apr 30, 2024
0.1.2 Apr 30, 2024
0.1.1 Apr 30, 2024
0.1.0 Apr 30, 2024

#1266 in Command line utilities

Download history 418/week @ 2024-04-25

418 downloads per month

MIT license

37KB
960 lines

Thru

Create QUIC/TCP/UDP tunnels for one another.

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 cert.pem --key key.pem

Client endpoint

Forward TCP tranffic to QUIC tunnel.

thru -t tcp://127.0.0.1:4242==quic://example.com:4242

Echo client

nc 127.0.0.1 4242

TLS certificate and key

They are only needed for QUIC tunnels.

--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

~15–26MB
~494K SLoC