socat Command Examples

Multipurpose relay (SOcket CAT). More information: http://www.dest-unreach.org/socat/.

sudo socat - TCP-LISTEN:8080,fork

sudo socat OPENSSL-LISTEN:4433,reuseaddr,cert=./cert.pem,cafile=./ca.cert.pem,key=./key.pem,verify=0 STDOUT

sudo socat - TCP4:www.example.com:80

sudo socat TCP-LISTEN:80,fork TCP4:www.example.com:80