Socat
From Attie's Wiki
(Difference between revisions)
(Created page with "==Pipe a Unix socket over TCP== ===Server (next to the listening Unix socket)=== <source lang="bash"> socat TCP-LISTEN:27015,reuseaddr,fork UNIX-CLIENT:/tmp/ns </source> <sour...") |
(→Pipe a Unix socket over TCP) |
||
Line 1: | Line 1: | ||
− | == | + | ==Route a Unix socket over TCP== |
===Server (next to the listening Unix socket)=== | ===Server (next to the listening Unix socket)=== | ||
<source lang="bash"> | <source lang="bash"> |
Revision as of 14:56, 3 September 2015
Route a Unix socket over TCP
Server (next to the listening Unix socket)
socat TCP-LISTEN:27015,reuseaddr,fork UNIX-CLIENT:/tmp/ns
socat TCP-LISTEN:27015,bind=127.0.0.1,reuseaddr,fork,su=nobody,range=127.0.0.0/8 UNIX-CLIENT:/tmp/ns
Client (to create a listening Unix socket)
socat UNIX-LISTEN:/tmp/ns,fork TCP-CONNECT:myserver:27015