Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Nov 2003 23:27:23 +0000
From:      David Taylor <davidt@yadt.co.uk>
To:        Aditya <aditya@grot.org>, current@freebsd.org
Subject:   Re: ssh port forwarding changed under 5-CURRENT vs. STABLE?
Message-ID:  <20031108232723.GA975@gattaca.yadt.co.uk>
In-Reply-To: <20031108230158.GA6493@gattaca.yadt.co.uk>
References:  <20031106214343.GA91634@mighty.grot.org> <20031106232921.GB9791@rot13.obsecurity.org> <20031106233148.GA92638@mighty.grot.org> <20031108230158.GA6493@gattaca.yadt.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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@yadt.co.uk
"The future just ain't what it used to be"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031108232723.GA975>