`tls-proxy-tunnel` is a layer 4 proxy in Rust to listen and transfer TCP data via a HTTP Proxy.
1.4K
Hey, now we are on level 4!
tls-proxy-tunnel is a layer 4 proxy implemented by Rust to listen on specific ports and transfer TCP data to remote addresses (only TCP) via a HTTP Proxy according to the configuration.
The repository can be found on github.com/git001/tls-proxy-tunnel
via keyword${...}maxclientstls-proxy-tunnel will read yaml format configuration file from /etc/tpt/tpt.yaml, and you can set custom path to environment variable tpt_CONFIG, here is an minimal viable example:
version: 1
log: info
via: &viaanchor
target: www.test1.com
headers:
Host: www.test1.com
Proxy-Authorization: Basic ${ENCODED_PW}
Proxy-KeepAlive: true
servers:
proxy_server:
listen:
- "127.0.0.1:8081"
default: remote
via:
*viaanchor
health-server:
listen: [ "127.0.0.1:8081" ]
default: health
via:
*viaanchor
upstream:
remote: "tcp://www.remote.example.com:8082" # proxy to remote address
There are two upstreams built in:
TPT_CONFIG=container-files/etc/tpt/config.yaml cargo run
fourth, of which this is a heavily modified fork.layer4-proxytls-proxy-tunnel (tpt) is available under terms of Apache-2.0.
Content type
Image
Digest
sha256:4dd77fa54…
Size
274.9 MB
Last updated
about 2 years ago
docker pull me2digital/tls-proxy-tunnel:3.0