View Single Post

  #2 (permalink)  
Old 04-23-2008
Andrew Gideon
 
Posts: n/a
Default Re: how to bind ssh-tunnel to different server-interface

On Tue, 22 Apr 2008 23:59:30 -0700, Ingo Maurer wrote:

> And I would like to selectively use one of them for the proxying (not
> for the ssh tunnel connection, which is within the LAN). By default
> always the first public interface is used for my public traffic. I am
> looking for a way to use the second interface which is connected to the
> other line.


If there's no way to do this (and I don't know of one, but that doesn't
mean that there isn't one {8^), perhaps the -w option in ssh might work
for you? This creates a tun device, and you'd then control the
forwarding in the usual forwarding way (ie. forwarding rules via
iptables). This would permit you to be very specific about what your
machine will and won't forward.

- Andrew

Reply With Quote