From owner-freebsd-questions@FreeBSD.ORG Wed Feb 20 18:07:07 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9F41A5D1 for ; Wed, 20 Feb 2013 18:07:07 +0000 (UTC) (envelope-from jeff.t@mail.com) Received: from mout.gmx.net (mout.gmx.net [74.208.4.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6EA928B4 for ; Wed, 20 Feb 2013 18:07:07 +0000 (UTC) Received: from mailout-us.mail.com ([172.19.198.49]) by mrigmx.server.lan (mrigmxus001) with ESMTP (Nemesis) id 0MOOdF-1UBEsS2woX-005mOK for ; Wed, 20 Feb 2013 19:07:01 +0100 Received: (qmail invoked by alias); 20 Feb 2013 18:07:01 -0000 Received: from unknown (EHLO blazon-pc.rw.local) [78.84.97.244] by mail.gmx.com (mp-us009) with SMTP; 20 Feb 2013 13:07:01 -0500 X-Authenticated: #76218138 X-Provags-ID: V01U2FsdGVkX1+6QitUKK+67oPFhGJM5r5RWg5B//ddAYXuzUGy05 fNb5MsYz5uuwEi Message-ID: <512510ED.6080807@mail.com> Date: Wed, 20 Feb 2013 20:07:41 +0200 From: Jeff Tipton User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:16.0) Gecko/20121030 Thunderbird/16.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: jail and networking References: <5124F505.4040906@bananmonarki.se> <13CA24D6AB415D428143D44749F57D7201EABA71@ltcfiswmsgmb21> <51250B20.4000308@bananmonarki.se> In-Reply-To: <51250B20.4000308@bananmonarki.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2013 18:07:07 -0000 On 02/20/2013 19:42, Bernt Hansson wrote: > On 2013-02-20 17:23, Teske, Devin wrote: >> On Wed, 20 Feb 2013, Bernt Hansson wrote: >> >>> Hello list! >>> >>> I dont seem to get net working in a test jail. >>> >>> These I've tried; >>> >>> ftp, fetch, telnet >>> >>> They time out. >>> >>> Ssh sort of work. >>> >>> 32bit# ssh 10.0.0.3 >>> ssh_askpass: exec(/usr/local/bin/ssh-askpass): No such file or >>> directory >>> Host key verification failed. >>> >>> jail is 8.3-STABLE i386 GENERIC >>> >>> host is FreeBSD 8.3-STABLE amd64 GENERIC >>> >>> I'm sure you want more info so just tell me what info. >> >> Commonly the problem is that you are "jexec'd" into the jail and I >> find that tools like ssh, ftp, telnet, etc. don't work when you're in >> the jail via "jexec" but instead what works way better is if you ssh >> into the jail (via the jail'd ssh process of course). >> >> Does that seem to be the case in your situation? > > If you mean this sshd IsJ 0:00,00 /usr/sbin/sshd > > Then no. > > %ssh 10.0.0.10 ssh: connect to host 10.0.0.10 port 22: Operation timed > out > > I did have an alias on the host to the jail's ip. > Tried to restart the jail it went fine, but now I can't jexec in to > the jail. > > testbox# jexec 1 tcsh > jexec: jail_attach(1): Invalid argument > > Sooo... I'm kind of out of ideas. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" What does "jls" command say? If you have restarted your jail, it's ID most likely has changed.