From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 00:40:17 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3323C16A4CE for ; Thu, 13 Nov 2003 00:40:17 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4529B43FCB for ; Thu, 13 Nov 2003 00:40:16 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 4E98E3ABB2D; Thu, 13 Nov 2003 09:39:42 +0100 (CET) Date: Thu, 13 Nov 2003 09:39:41 +0100 From: Pawel Jakub Dawidek To: FB Message-ID: <20031113083941.GR84474@garage.freebsd.pl> References: <20031112180124.3F85943FD7@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="uepJbk9oh0IF4lih" Content-Disposition: inline In-Reply-To: <20031112180124.3F85943FD7@mx1.FreeBSD.org> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p9 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: Multiple IPs in Jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 08:40:17 -0000 --uepJbk9oh0IF4lih Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 12, 2003 at 10:01:23AM -0800, FB wrote: +> We patched mijail5 (http://garage.freebsd.pl/mijail.README) against +> RELENG_5_1. Most of the patch was successful with a little fuzz, except = for +> a couple lines in jls which didn't patch due to cosmetic changes (easily +> fixed).=20 +> =20 +> Before the patch was applied, the jail environment had no problem with d= ns. +> After the patch was applied however (and userland rebuilt both on host = and +> jail), dns breaks in the jail environment. Basically, gethostbyname fai= ls +> and h_errno is set to 2 - Host name lookup failure. the system is config= ured +> properly, since the only changes are to the kernel and the modified jail +> mechanism. Also interesting is that the failure is immediate, there is no +> timeout.=20 +> =20 +> However, inbound/outbound TCP traffic is not effected. - we are able to = ssh +> in/out of the jailed environment.=20 +> I was testing outbound UDP traffic however - simple matter of binding a +> socket to send a packet to a remote host.=20 +> =20 +> Outside the jail, it worked fine. inside the jail, sendto failed with a +> EINVAL error.=20 +> =20 +> Any help on this topic would be much appreciated.=20 I've many reports about DNS problems with my patch in jail, that's true. I can't promise, but I'll try to find some time in few days to track this problem down. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --uepJbk9oh0IF4lih Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP7NDTT/PhmMH/Mf1AQH5XQP7BUhcrwo5E5ISKq6UNg1jxdCh5Udku387 YFixtPunpkUCk58xpatG38iJFkWSaR4BObLhKF0zqpWuu/KiWIIn1ikUlM7A2Nv7 Yao/FF5UXTKz2RoozUDxtGXs7bJFW8ky8thZ+AzUl26FzrB+fzKxK1wypMsyudX6 1rSvwa8kB68= =WRh1 -----END PGP SIGNATURE----- --uepJbk9oh0IF4lih--