From owner-freebsd-current@FreeBSD.ORG Sat Nov 8 15:27:27 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C9B616A4CE for ; Sat, 8 Nov 2003 15:27:27 -0800 (PST) Received: from mail.yadt.co.uk (xfiles.yadt.co.uk [81.187.204.178]) by mx1.FreeBSD.org (Postfix) with SMTP id DEF7D43FEC for ; Sat, 8 Nov 2003 15:27:25 -0800 (PST) (envelope-from davidt@yadt.co.uk) Received: (qmail 24639 invoked from network); 8 Nov 2003 23:27:24 -0000 Received: from gattaca.yadt.co.uk (HELO mail.gattaca.yadt.co.uk) (qmailr@81.187.204.179) by xfiles.yadt.co.uk with SMTP; 8 Nov 2003 23:27:24 -0000 Received: (qmail 1150 invoked by uid 1000); 8 Nov 2003 23:27:24 -0000 Date: Sat, 8 Nov 2003 23:27:23 +0000 From: David Taylor To: Aditya , current@freebsd.org Message-ID: <20031108232723.GA975@gattaca.yadt.co.uk> Mail-Followup-To: Aditya , current@freebsd.org References: <20031106214343.GA91634@mighty.grot.org> <20031106232921.GB9791@rot13.obsecurity.org> <20031106233148.GA92638@mighty.grot.org> <20031108230158.GA6493@gattaca.yadt.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20031108230158.GA6493@gattaca.yadt.co.uk> User-Agent: Mutt/1.4.1i Subject: Re: ssh port forwarding changed under 5-CURRENT vs. STABLE? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2003 23:27:27 -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@yadt.co.uk "The future just ain't what it used to be"