Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a 'left client' > server < 'right client' setup but need some advice and tips.

Let's say that I have a server-daemon on the left side, like a vnc-server that connects to the middle server.

On the right side I've got a client that want to connect to the left server-daemon, but it has to be done through the middle server. I assume this should be done with some tunneling service.

The server environment is a fully featured Debian Linux or Mac OS X Server host.

Any idéas?

Thanks / Trikks

share|improve this question
Wow - hundreds of characters and literally zero actual information! You need to be MUCH more specific because there's nothing for us to work from here - answers range from "Impossible!" to "incredibly simple". – Chopper3 Mar 21 '10 at 18:15
Alrighty, I'll try with a vnc example. Let's say the middle-server has ip I need to create a socket on the server that my vnc-server on the left side can connect to. Like 'winvnc.exe -connect'. The right side should then be able to connect with a ordinary vnc-client to the middle-server, and thus connecting the left and right side. The vnc is only an example! :) – Eric Herlitz Mar 21 '10 at 20:19
up vote 1 down vote accepted

Tried rinetd?

For arbitrary forwarding it's probably the easiest.

share|improve this answer
Nice. I did not know about it. – Dan Andreatta Mar 21 '10 at 22:14

SSH port forwarding? If you have to requests from right to the server on left you could do something like:

From right

ssh -L 5900:localhost:5900 middle

From left

ssh -R 5900:localhost:5900 middle

The first command sets up a tunnel, and will forward port 5900 from right to middle, and the second is a reverse tunnel, and will forward port 5900 from middle to left. These two commands should effectively provide a tunnel from right to left (I have not tested it, though)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.