Unix Domain Socket Redirector¶
UDS(Unix Domain Socket) redirector can redirect the local UDS service to a TCP service or another UDS service. The forwarding chain is still valid in this scenario.
Limitation
When redirecting to a remote UDS service, the last node at the end of the forwarding chain must be the relay protocol.
Address format
For path-based protocols (unix, runix, serial), the address is determined by the URL host and path:
unix://gost.sock- listen on (or connect to) the relative pathgost.sockunix://gost.sock/gost2.sock- listen ongost.sockand forward togost2.sock(port-forwarding)unix:///var/run/gost.sock- three-slash form denotes the absolute path/var/run/gost.sock
Redirect to TCP service¶
Redirect the local UDS service gost.sock to TCP service 192.168.1.1:8080.
Redirect TCP Service To Local UDS Service¶
Redirect local TCP service localhost:8080 to local UDS service gost.sock.
Redirect To Another Local UDS Service¶
Redirect local UDS service gost.sock to another local UDS serivce gost2.sock
Redirect To Remote UDS Service¶
Redirect local UDS service gost.sock to the UDS service gost.sock on the remote host 192.168.1.1 through forwarding chain.