socat

Multipurpose socket relay

high risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
Safer / dry-run alternatives
socat TCP-LISTEN:8080,bind=127.0.0.1,fork TCP:backend:80Bind to localhost only
What it does

Connects two data streams: sockets, files, pipes and TLS endpoints.

Examples
socat TCP-LISTEN:8080,fork TCP:backend:80Simple TCP proxy · explain & risk-check →
socat - TCP:host:portInteractive connection · explain & risk-check →
Related
nc ssh
Open the full explainer →More in Networking

Reference text is hand-written and may be incomplete — check man socat for your version. Test destructive commands on a non-production system first.