From owner-freebsd-questions@FreeBSD.ORG Tue Sep 11 17:30:57 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CE1316A417 for ; Tue, 11 Sep 2007 17:30:57 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.179]) by mx1.freebsd.org (Postfix) with ESMTP id E916B13C4A7 for ; Tue, 11 Sep 2007 17:30:56 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: by el-out-1112.google.com with SMTP id r27so225788ele for ; Tue, 11 Sep 2007 10:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=LWcNWF8oAYvgGGC1Vs+tP3nIPlXe0btW+E0U3H/7IjU=; b=l6tsn11QTXrn1NXKk2wrfzZzy91yjyIy02AhG62n3l5NCreQnHe1NzPOUsGC9gvfV6OqviynCPWNlpaqS+8D+OsqquBtVe8a8bTezvmpN/RQ2N7SpgcCC7fjfxy/YwtejQsWrH2tq6nKuWFiUtd07Ih56LoEEOOObo0qhj+1ESI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kc81ckA9e0QlpMJOdzjX7S1/jHTXJbLNbJSApde1CoZsB2ix39e5MpWDurO0WFvwdF6+jGnUmFE3BgEngJ1NN5IduwfYnUx6wd9G+nPTFquZJqqJmcrsnWRzYkyD/d4UNM8iEw2fsvxI3M7htrBesIsvPCPMGb+je41CjmT0YXw= Received: by 10.142.171.6 with SMTP id t6mr315138wfe.1189531855337; Tue, 11 Sep 2007 10:30:55 -0700 (PDT) Received: by 10.143.10.13 with HTTP; Tue, 11 Sep 2007 10:30:55 -0700 (PDT) Message-ID: <54db43990709111030k1d728d5ejca3585d39ab55d18@mail.gmail.com> Date: Tue, 11 Sep 2007 13:30:55 -0400 From: "Bob Johnson" To: Pollywog In-Reply-To: <200709040021.35918.lists-fbsd@shadypond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200709032258.03656.lists-fbsd@shadypond.com> <46DC93FD.8020701@math.arizona.edu> <200709040013.14531.lists-fbsd@shadypond.com> <200709040021.35918.lists-fbsd@shadypond.com> Cc: freebsd-questions@freebsd.org Subject: Re: ssh forwarding question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 17:30:57 -0000 On 9/3/07, Pollywog wrote: > On Tuesday 04 September 2007 00:13:13 Pollywog wrote: > > On Monday 03 September 2007 23:08:45 Predrag Punosevac wrote: > > > Pollywog wrote: > > > > bind: Can't assign requested address > > > > channel_setup_fwd_listener: cannot listen to port: 15901 > > > > Could not request local forwarding. > > > > > > It seems to me that you have a problem with a firewall. Look at your own > > > message. It looks like port 15901 is closed for listening. > > > > Here is another clue. Something seems to be wrong with the loopback: > > > > lo0: flags=8049 mtu 16384 > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > > inet6 ::1 prefixlen 128 > > ripple# ping localhost > > PING localhost (127.0.0.1): 56 data bytes > > ping: sendto: Can't assign requested address > > ping: sendto: Can't assign requested address > > ping: sendto: Can't assign requested address > > ping: sendto: Can't assign requested address > > ping: sendto: Can't assign requested address > > ping: sendto: Can't assign requested address > > > > I have not set up a firewall on this host, so the problem is something > > else, perhaps the output above from ifconfig helps. > > Yes that was the problem. I did this: > > ifconfig lo0 127.0.0.1 netmask 255.0.0.0 > > After that I could ping localhost and my VNC connection via SSH succeeded. > Now how do I fix this problem permanently in FreeBSD, by running sysinstall > again and setting the loopback address from there? It should have already been in /etc/defaults/rc.conf. So the mystery to be solved is why it was not there (or what you had in /etc/rc.conf that overrode it, maybe). When you installed FBSD, did you do a "standard" install or one of the "expert" installs? And of course, since it was 7.0, you can expect things to be broken once in a while. It is what most of the world would call "beta" code. The quick fix is to put the required line in either /etc/defaults/rc.conf or /etc/rc.conf. Normally you would never edit /etc/defaults/rc.conf, but that line should have been in it. - Bob