User Tools

Site Tools


Sidebar

Go Back

Contact
Recent Changes
Sitemap
snippets:socat

socat commands

TCP to Unix Socket

socat -d -d -d UNIX-LISTEN:${SOCK},reuseaddr,fork TCP:${UPSTREAM_HOST}:${UPSTREAM_PORT}

TCP to TCP

socat -d -d -d TCP-LISTEN:${PORT},reuseaddr,fork TCP:${UPSTREAM_HOST}:${UPSTREAM_PORT}

Unix Socket to TCP

socat -d -d -d TCP-LISTEN:${PORT},reuseaddr,fork UNIX-CLIENT:${UPSTREAM_SOCK}
snippets/socat.txt · Last modified: 2020/08/31 06:48 by whtsky