From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 14:09:33 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 22273657 for ; Wed, 11 Mar 2015 14:09:33 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 888EECA for ; Wed, 11 Mar 2015 14:09:32 +0000 (UTC) Received: from zero-gravitas.local (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t2BE9Kag091230 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 11 Mar 2015 14:09:26 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t2BE9Kag091230 Authentication-Results: smtp.infracaninophile.co.uk/t2BE9Kag091230; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be zero-gravitas.local Message-ID: <55004C8E.5050407@FreeBSD.org> Date: Wed, 11 Mar 2015 14:09:18 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Jail with bitblee running, connection timed out References: <87vbi7zlc8.fsf@piet.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87vbi7zlc8.fsf@piet.i-did-not-set--mail-host-address--so-tickle-me> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 14:09:33 -0000 On 2015/03/11 13:59, 1126 (Christian Lask) wrote: > `stockstat -l4p 6667` reveals that it is indeed listening on the jails > IP on port 6667. In Weechat then I added a new server (localhost/6667) > and tried to connect to it. This connection however is never established > and times out. I do not know how to debug this properly and have no idea > what is wrong here. Configuration of both seems pretty straightforward, > so I don't know what I am doing wrong here. Jails tend not to have localhost (ie. 127.0.0.1 or ::1) addresses accessible to them[*]. Try logging into the jail and examine the output of 'ifconfig -a' -- compare it with what you get on the host system. If you want some processes within the same jail to be able to communicate through a network-like protocol, then unix domain sockets are the way to go, assuming that the software you want to run supports them. Failing that, you'll have to use the jail's allocated IP number(s). Cheers, Matthew [*] There is a new alternative style of jail, called a VNET jail, which you could use and that do have their own loopback interfaces and localhost addresses, but these are still fairly new, somewhat more complicated to setup and still not thoroughly debugged. Last I checked, they also required you to run a custom kernel.