• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

COPYINGH A D10-Nov-200217.6 KiB341281

ChangeLogH A D07-May-20044.1 KiB16396

Makefile.inH A D07-May-20042.5 KiB9961

READMEH A D07-May-20041.5 KiB4632

config.h.inH A D07-May-20041.8 KiB7147

configureH A D07-May-200447 KiB1,5131,216

configure.inH A D16-Dec-2003609 2215

install-shH A D16-Dec-20035.5 KiB251152

list.cH A D10-Nov-20024.9 KiB238166

list.hH A D10-Nov-20021.6 KiB5327

mylog.cH A D16-Dec-20031.2 KiB4926

mylog.hH A D16-Dec-2003930 296

server.cH A D16-Dec-200314.1 KiB575452

server.hH A D16-Dec-2003896 254

unix2tcp.cH A D16-Dec-20033 KiB165119

unix2tcp.hH A D16-Dec-2003968 287

utelnet.cH A D16-Dec-20033.7 KiB179137

version.hH A D07-May-2004248 109

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