Re: how to bind ssh-tunnel to different server-interface
On 23 Apr., 20:51, Andrew Gideon <c172driv...@gideon.org> wrote:
> 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.
> 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.
This sounds like the way to go for me. "ssh -w" and iptables. Thank
you very much, Andrew!
Regards
Ingo
|