Re: ssh port forwarding changed under 5-CURRENT vs. STABLE?

From: David Taylor <davidt_at_yadt.co.uk>
Date: Sat, 8 Nov 2003 23:27:23 +0000
On Sat, 08 Nov 2003, David Taylor wrote:
> 
> Have you tried binding it to the address on the interface which
> your host will send packets to the remote host over?

Erm, wait, I don't know what I was thinking there.  ssh doesn't let you
specify the local address it binds to.  All I can say is it works here...

However, changing the address on lo0 to 10.9.9.9 results in:

debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 8000.
bind: Can't assign requested address

But:

# ifconfig lo0 inet 127.0.0.1
$ ssh -L8000:www.freebsd.org:80 [host]

gives

[snip]
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 8000.
debug1: fd 5 setting O_NONBLOCK
debug2: fd 5 is O_NONBLOCK
debug1: channel 1: new [port listener]

So, it could be an idea to check the output of ifconfig lo0.

-- 
David Taylor
davidt_at_yadt.co.uk
"The future just ain't what it used to be"
Received on Sat Nov 08 2003 - 14:27:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:28 UTC