From owner-freebsd-jail@FreeBSD.ORG Thu Oct 2 14:26:00 2014 Return-Path: Delivered-To: freebsd-jail@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 9829F4C0; Thu, 2 Oct 2014 14:26:00 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71242ACA; Thu, 2 Oct 2014 14:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=3g4yXwnJ4/b0HSgriH0eARqBRodkTH6rAa/t0VA2cQw=; b=vv1b3RmLQmxP3QzqyydspGtROeq8lRIkQTVG1jWhkDxH9p78SJDUY9S5h/TpjPctn7bIsL2fLYZzwfAa3nWV0KVexmxVQnrc26qN6YCZKa+0+a8QoAou4Ar3ZrZxqnMkm8H6yCbHXv2a2scfPl+xYdPPXBA+uPLPZ2crGRA5MJw=; Received: from [182.8.252.102] (port=46198 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XZhKQ-003fnR-Rn; Thu, 02 Oct 2014 08:25:59 -0600 Date: Thu, 2 Oct 2014 22:25:53 +0800 From: Erich Dollansky To: James Gritton Subject: Re: no network connection from inside a jail Message-ID: <20141002222553.42bf17e3@X220.alogt.com> In-Reply-To: <542D4A1B.4060405@gritton.org> References: <20141002180506.4965760b@X220.alogt.com> <542D4A1B.4060405@gritton.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-jail@freebsd.org, freebsd-stable@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2014 14:26:00 -0000 Hi, On Thu, 02 Oct 2014 06:50:35 -0600 James Gritton wrote: > On 10/2/2014 4:05 AM, Erich Dollansky wrote: > > Hi, > > > > I recently upgraded to 10.1 BETA3 via sources. All seemed to be fine > > until I started jails which connect to the Internet. It simply does > > not work anymore. When the browser from the jail connects to > > another jail on the same machine via HTTP, it all works. Accesses > > to the ouside of the machine fails. > > > > Even a ping to a local device does not work. > > > > ping 192.168.yyy.xxx > > ping: socket: Operation not permitted > > > > despite having > > > > security.jail.allow_raw_sockets: 1 > > > > Just to make sure, I upgraded also the world in all jails without > > any difference. > > > > UPDATING did not mention any changes since BETA1. > > > > I feel a bit lost now. > > > > What could have caused the problems? > > > > Erich > > It would be handle to see what happens when the IP addresses are set > on the jail in the first place. Try running: > > jail -r '*' > jail -v -c '*' > > and look at the results when it (presumably) runs ifconfig. > Hopefully, there'll be a clue there. this looks pretty normal to me: ClawsMailTest: run command: /sbin/ifconfig lagg0 inet 192.168.0.17 netmask 255.255.255.255 -alias MemDisk: run command: /sbin/ifconfig lagg0 inet 192.168.0.16 netmask 255.255.255.255 alias Projekte: run command: /sbin/ifconfig lagg0 inet 192.168.0.11 netmask 255.255.255.255 alias Ports: run command: /sbin/ifconfig lagg0 inet 192.168.0.12 netmask 255.255.255.255 alias TestInternet: run command: /sbin/ifconfig lagg0 inet 192.168.0.19 netmask 255.255.255.255 alias TestInternet: run command: /sbin/mount -t devfs -oruleset=4 . /usr/home/jails/TestInternet/dev This is just an extract. I am now able to use ping. It only allows me to ping other jails on the same machine. Even a ping to any device at the LAN does not work. I get now this: ln: /dev/log: Operation not permitted which I did not notice before the upgrade. What I did not mention before. I am able to connect to the jails via telnet from the machine's rooot but not from any other machine. Of course, the setup worked before without any problems. Erich