From owner-freebsd-current@FreeBSD.ORG Thu Nov 6 13:43:44 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 B433916A4CE for ; Thu, 6 Nov 2003 13:43:44 -0800 (PST) Received: from mighty.grot.org (66-117-150-96.web.lmi.net [66.117.150.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB47C43FF3 for ; Thu, 6 Nov 2003 13:43:43 -0800 (PST) (envelope-from aditya@grot.org) Received: by mighty.grot.org (Postfix, from userid 515) id 178A65D12; Thu, 6 Nov 2003 13:43:43 -0800 (PST) Date: Thu, 6 Nov 2003 13:43:43 -0800 From: Aditya To: current@freebsd.org Message-ID: <20031106214343.GA91634@mighty.grot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: 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: Thu, 06 Nov 2003 21:43:44 -0000 I've searched the archives and perused manpages and config files yet can't figure out why this isn't working: - I'm trying to port forward from a remote machine to my laptop, something I did without a problem using 4-STABLE - If I do: ssh -v -N -4 -L8000:www.freebsd.org:80 myserver.net where myserver.net is a machine with Internet access, I could expect that connecting to 127.0.0.1 port 8000 on my laptop would port forward packets to/from www.freebsd.org:80 However, ssh seems to be having trouble binding to port 8000 locally (and I've tried port 50000, 57000, 2000 and all behave similarly): debug1: Connections to local port 8000 forwarded to remote address www.freebsd.org:80 debug1: Local forwarding listening on 127.0.0.1 port 8000. bind: Can't assign requested address channel_setup_fwd_listener: cannot listen to port: 8000 Could not request local forwarding. and I can't see any reason why the binding would fail: hilbert[ttyp1]:aditya~> sysctl net.inet.ip.portrange.reservedlow net.inet.ip.portrange.reservedlow: 0 hilbert[ttyp1]:aditya~> sysctl net.inet.ip.portrange.reservedhigh net.inet.ip.portrange.reservedhigh: 1023 what am I missing? Thanks, Adi