mtunnel
A tcp over http2 + tls proxy.
Usage
steps.
1. get certificates, by following2. make your config
client config:
{
"local_addr": "127.0.0.1:8080",
"remote_addr": "127.0.0.1:8081",
"domain_name": "mydomain.com",
"ca_certificate": "./tls_config/rootCA.crt"
}
server config:
{
"local_addr": "127.0.0.1:8081",
"remote_addr": "127.0.0.1:8082",
"server_cert": "./tls_config/mydomain.com.crt",
"server_key": "./tls_config/mydomain.com.key"
}
3. start client and server
# start the server
RUST_LOG=debug cargo run --bin mtunnel-server -- -c mtunnel-server.json
# start the client
RUST_LOG=debug cargo run --bin mtunnel-client -- -c mtunnel-client.json
Licenses
All source code is licensed under the MIT License.