README
1 UNIX Sockets 2 TCP forwarder
2
3
41. Description
5 This is a small program to redirect all connections and traffic from a
6UNIX socket to a (remote) TCP/IP address.
7
82. Installation
9 ./configure
10 make
11 make install (this might require root privileges)
12
133. Examples
14
153.1 Transparently forwarding of local MySQL connections to remote locations
16
17unix2tcp /tmp/mysql.sock <remotesqlip> <remotesqlport>
18Also you will need to have on remoteip:remoteport another portforwarder (this
19time a classic TCP to TCP one) to forward from <remotesqlport> to 127.0.0.1:3306
20so that the grant tables dont need to be changed. This example can work for any
21SQL server that uses UNIX sockets and doesnt change protocol in UNIX sockets
22than TCP ones.
23
243.2 Forwarding of X connections
25
26Althought there are lots of features that X clients cannot do without local
27X server, there are some cases (as pointed out by a user) where you have
28binary distributed applications that want to talk only to local X server
29(even that they dont require any local-only X features). So using something like:
30
31unix2tcp /tmp/.X11-unix/X0 <remoteXserver> 6000
32
33can trick the local X apllications to think they talk to a local X server
34(you will also need a proper xhost command).
35
363.3 Any other usefull examples please send me mail to include them here
37
384. Thanks to (in order of apparition :) ):
39 * Vlad Galu
40 * Szymon Roczniak
41 * Philipp
42 * David Hill
43 * the FINK project (fink.sf.net)
44
455. Bugs, comments, feedback welcomed: dizzy@roedu.net
46