Unix Domain Socket Remote Forwarding¶
Name: runix
Status: Stable
The RUNIX listener, based on the service configuration, listens on a Unix domain socket on a remote host (via a forwarding chain) and forwards accepted connections back to the local side.
Without Forwarding Chain¶
With Forwarding Chain¶
Use Cases¶
The RUNIX listener is suitable for exposing a remote Unix domain socket service locally through a GOST forwarding chain. For example:
- Expose a remote Docker daemon (
/var/run/docker.sock) locally through a forwarding chain - Forward a remote MySQL database's Unix domain socket to the local machine
- Forward a remote HTTP service's Unix domain socket to the local machine
Parameters¶
None
Limitations
The RUNIX listener can only be used together with the RUNIX handler to build a Unix domain socket remote forwarding service.
Note
Unix domain socket paths are paths on the filesystem. When using a forwarding chain, the target address must be a Unix domain socket path (e.g. /var/run/app.sock).
The last hop of the forwarding chain must support Unix domain socket binding (e.g. using a relay connector).