vulns.co
/
GKData.io MCP

Back to Library

socat

Swiss-army TCP/UNIX relay. Port forwards, TLS wrappers, and 'I need this socket over there' jobs that ncat is awkward at.

Tags: relay, tcp, unix

Category
pivot
Maintenance signal
maintained

Project repository

Use this when: Authorized host. Relaying traffic is in scope only when the program says so.

Install

apt

sudo apt install socat

brew

brew install socat

Command templates

TCP forward

socat TCP-LISTEN:{lport},fork TCP:{host}:{rport}

Related tools