From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 16:35:32 2008 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 54AEF1065676 for ; Tue, 8 Jul 2008 16:35:32 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id BDE078FC31 for ; Tue, 8 Jul 2008 16:35:31 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m68GZN5I045635; Tue, 8 Jul 2008 17:35:24 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.6.0 smtp.infracaninophile.co.uk m68GZN5I045635 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1215534925; bh=S/ZuRGRCckcPaA HkgEVz397AdDqCCfcv0Rpq8M+B1bM=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<4873973D.1080402@infracaninophile.co.uk>|Date:=20Tue,=2 008=20Jul=202008=2017:35:09=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.14=20(X11/20080607)|MIME-Version:=201 .0|To:=20David=20Allen=20|CC:=20Mel =20,=20=0D=0A=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20Jails=20and=20IP=20Aliasing|Refere nces:=20<2daa8b4e0807070951u607ff031v98b5b96103fdab4@mail.gmail.com >=09<200807081124.33377.fbsd.questions@rachie.is-a-geek.net>=20<2da a8b4e0807080903o609d6b7ag831845b7939c20c8@mail.gmail.com>|In-Reply- To:=20<2daa8b4e0807080903o609d6b7ag831845b7939c20c8@mail.gmail.com> |X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/signed=3B=2 0micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-signatu re"=3B=0D=0A=20boundary=3D"------------enig3FBED74684C6CAB552A53A4E "; b=pRaSFrUaKWprQUpkFNOFQ40Zil45LUjLIvhBfZ2oawkampaH9IRKqghGQCMZxo 4GH4Yl+1GVIGc+3rbhwIl4pF57duf22NTPAVWx4x2DLuiA6dFu/pdJVBLTd4mhltv+o YWFruoLj+lVv7ei1i4eo12LaFUqyLYTcIc0rbUlSRo= Message-ID: <4873973D.1080402@infracaninophile.co.uk> Date: Tue, 08 Jul 2008 17:35:09 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.14 (X11/20080607) MIME-Version: 1.0 To: David Allen References: <2daa8b4e0807070951u607ff031v98b5b96103fdab4@mail.gmail.com> <200807081124.33377.fbsd.questions@rachie.is-a-geek.net> <2daa8b4e0807080903o609d6b7ag831845b7939c20c8@mail.gmail.com> In-Reply-To: <2daa8b4e0807080903o609d6b7ag831845b7939c20c8@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig3FBED74684C6CAB552A53A4E" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Tue, 08 Jul 2008 17:35:25 +0100 (BST) X-Virus-Scanned: ClamAV 0.93.1/7665/Tue Jul 8 15:35:30 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Mel , freebsd-questions@freebsd.org Subject: Re: Jails and IP Aliasing 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, 08 Jul 2008 16:35:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3FBED74684C6CAB552A53A4E Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable David Allen wrote: =20 > There was a post recently (Matthew Seaman's name comes to mind) that > suggested binding jails to addresses in the loopback range and then > using firewall rules to redirect the traffic accordingly. There's a > possibility that may help in this case, but that layer of added > complexity isn't much of an improvement over seeing connections with > seemingly identical endpoints and interpreting the results in my head. Guilty as charged M'lud. However what I recommended was a more-than-slightly hacky way to achieve = three things: * Something like a loopback address inside the jail. It may be 127.0.0.2 instead of 127.0.0.1 but most software can be persuaded to use it for loopback style things. * The ability to map several IPs onto the jailed system by use of NAT and redirect within firewall rules * The ability to have a jail with /no/ external IP for when the paranoia becomes unbearable[*]. Of course, all this will be immediately obsoleted by Marco Zec's work on virtualizing the IP stack. http://imunes.tel.fer.hr/virtnet/ Cheers, Matthew [*] Combine this with a Hardware Load Balancer that does Direct Server Return and you can have a publicly accessible jailed server with /no=20 external IP address/. =20 --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig3FBED74684C6CAB552A53A4E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkhzl0sACgkQ8Mjk52CukIzOTACfe0zbJM6KknOBX/WX9UNfDzaY 7d8AnRPc0t/P5dtBYW8no77N/cdXbMFR =duXo -----END PGP SIGNATURE----- --------------enig3FBED74684C6CAB552A53A4E--