Categorygithub.com/wouldgo/mtls-proxy
repository
0.0.0-20241217100811-cdc12730ba3d
Repository: https://github.com/wouldgo/mtls-proxy.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

mTLS proxy

HTTPS_PROXY=127.0.0.1:3000 curl -x 127.0.0.1:3000 -vvv --cacert ./_fake_pki/_ca/certificate.pem https://google.com
websocat -t --ws-c-uri=wss://echo.websocket.org/ - ws-c:cmd:'socat - proxy:127.0.0.1:echo.websocket.org:443,proxyport=3000'

iptables

Add

sudo iptables -t nat -A OUTPUT -p tcp -m owner --uid-owner 1000 -j REDIRECT --to-ports 3000

Remove

iptables -L
sudo iptables -t nat -D OUTPUT <num>