Setting up SSH tunnel with 2 interfaces. How?

Hello!

Trying to find any info of how to setup SSH tunnel when one network interface using for income and second for outcome. Technically the traffic on SSH server from one interface need to be redirected to second interface. Is there any manuals?

Could it be done only by SSH config or there are something else need to be done by any other package?
 
What you are trying to do is not entirely clear.

It sounds like you want two separate tunnels going across different interface cards, if that is the case then you will likely need to have two different ssh sessions using different bind options for the incoming and out going tunnels.

If you are ok with one tunnel it is fine do do something like

sh:
ssh -b ip1bindaddress -L ip1bindaddress:xxxx:ip2bindaddress:yyyy user@remotehost

There are a lot of caveats here, you need need to define the problem you are trying to solve carefully.

man ssh is your friend.
 
Trying to find any info of how to setup SSH tunnel when one network interface using for income and second for outcome.
Has nothing to do with the configuration of the tunnel or SSH. It's all basic TCP/IP routing, start to finish. The outgoing connection will go wherever the routing table tells it to go to find that destination address.
 
Back
Top