Program to forward tcp sockets to unix domain sockets
Hi,
I am wondering if there is a program to forward tcp connections to a unix domain sockets. Something like a proxy, but much simpler. It would listen on specified port and when connection is received, it would connect to the specified unix domain socket and forward all the information back and forth. I need this because of the lack of unix domain socket forwarding in standard ssh, which is very unfortunate. The primary purpose is to open my X connection to the world when it is running on unix domain socket with the -nolisten option. I know that such forwarding would be insecure, but that is not a concern. I also can't switch the X server to listen on tcp by itself for my 'internal' reasons.
I know that it's not impossible to write such forwarder myself, but just wondering if something like that already exists.
Thanks for any help.
-Mike
|