Is posible to make multiple port forwarding over one ssh tunnel?

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
jcanon
Posts: 11
Joined: Sat 24 May 2014 04:22

Is posible to make multiple port forwarding over one ssh tunnel?

Post by jcanon » Sat 18 Aug 2018 07:20

Hi,

I want to connect several client/server programs (3 actually) between two computers using only one secure shell tunnel.

Something like this:

Computer 1 Computer 2
program 1 client ----------> program 1 server port 100
program 2 client ----------> program 2 server port 200
program 3 client ----------> program 3 server port 300

the idea is to have a tunel between computer 1 and 2 with multiple port forwarding like:
if local port is 101 then forward to computer 2, port 100
if local port is 201 then forward to computer 2, port 200
if local port is 301 then forward to computer 2, port 300

When using the client /server ssh programs demos, make ONE forwarded connection is not a problem, but it always close the first forwarded conecction if I try to add a second DIFFERENT port forwarding (actually the code close the connection as soon as I edit the source port of port forwarding).

The three client/server programs has very low traffic, only working in (rare) user demand, so hight traffic over the tunnel is not a concern

Thanks in advance,

Juan Carlos

jcanon
Posts: 11
Joined: Sat 24 May 2014 04:22

Re: Is posible to make multiple port forwarding over one ssh tunnel?

Post by jcanon » Sat 18 Aug 2018 08:07

I found the solution...

Add two more ScSSHChannel's components and configure the three independently...

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: Is posible to make multiple port forwarding over one ssh tunnel?

Post by Dimon » Mon 20 Aug 2018 14:59

It is good to see that the problem has been solved. Feel free to contact us if you have any further questions.

Post Reply