Crates.io | tls-tunnel |
lib.rs | tls-tunnel |
version | 0.1.3 |
source | src |
created_at | 2021-05-13 15:52:13.70409 |
updated_at | 2021-05-13 19:56:29.217568 |
description | Rust TLS over TCP tunnel |
homepage | |
repository | https://github.com/shanecurran/tls-tunnel |
max_upload_size | |
id | 396977 |
size | 21,109 |
This simple crate establishes a TLS connection to a specified target and creates a TCP server that allows you to tunnel TCP to the target over a standard TLS connection.
This is useful for environments where TLS connections are not feasible at runtime. Some examples:
Simply download and compile the Rust binary using cargo install
:
$ cargo install tls-tunnel
Pass the target host and port as an argument when running using cargo
or the compiled binary. If not provided, the tunnel will default to httpbin.org:443
for demo purposes.
$ tls-tunnel https://httpbin.org
The server will automatically choose a port to listen on. It defaults to port 1025
and will increment by one until it finds an available port to bind to.