tproxy

TCP connection proxy and analyzer for debugging and monitoring

brewmacoslinux
Try with needOr install directly
Source

About

CLI tool to proxy and analyze TCP connections

Commands

tproxy

Examples

Start a proxy listening on port 8080 forwarding to example.com:80$ tproxy -l 127.0.0.1:8080 -r example.com:80
Proxy with verbose output to analyze TCP connections$ tproxy -l 0.0.0.0:3000 -r backend:8080 -v
Run proxy with logging to file for connection analysis$ tproxy -l localhost:9000 -r target.service:443 -o /tmp/proxy.log