Re: SSH forwarding - Multiple interfaces
From: Richard E. Silverman (res_at_qoxp.net)
Date: 02/27/04
- Next message: Per Hedeland: "Re: ssh 2 tunnel to named pipe not working - please help"
- Previous message: Darren Tucker: "Re: intermittent sshd connection problem in Linux"
- In reply to: Philippe Chaleat: "SSH forwarding - Multiple interfaces"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 26 Feb 2004 18:15:58 -0500
> Hello,
> I've got a linux box with multiples interfaces (eth0; eth0:1; ...). I
> would like to have 2 ssh clients forwarding the same port, but
> listening on different IP.
>
> ssh -C -b MyFirstIP -l user ip_host -L3128:squid-server:3128 -g
>
> I thought that the ssh client will listen forwarded port only on ip
> "MyFirstIP". But a netstat -a shows :
>
> tcp 0 0 *:squid *:* LISTEN
>
> No way to have something like :
>
> tcp 0 0 MyFirstIP:squid *:* LISTEN
The -b options affects the source socket of the SSH connection, not port
forwarding. OpenSSH does not have this option; forwarding listens on
either the loopback or all interfaces. The ssh.com software does have
this capapbility, though: ssh -L<MyFirstIP>:L3128:squid-server:3128 ...
-- Richard Silverman res@qoxp.net
- Next message: Per Hedeland: "Re: ssh 2 tunnel to named pipe not working - please help"
- Previous message: Darren Tucker: "Re: intermittent sshd connection problem in Linux"
- In reply to: Philippe Chaleat: "SSH forwarding - Multiple interfaces"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|