sock2stream

Tunnel a socket over a single datastream (stdin/stdout)

https://github.com/singpolyma/sock2stream

Latest on Hackage:0.3

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

LicenseRef-OtherLicense licensed and maintained by Stephen Paul Weber

This is an initial implementation of a socket multiplexer/demultiplexer to tunnel Unix domain sockets over pipes/streams.

The primary envisioned use is to tunnel Unix domain sockets over SSH like so:

mkfifo /tmp/sockin
ssh user@host socket2stream -l /path/to/remotesocket < /tmp/sockin | socket2stream -r /path/to/localsocket > /tmp/sockin