From owner-freebsd-questions@freebsd.org Sun Oct 4 23:15:58 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 016A5A10559 for ; Sun, 4 Oct 2015 23:15:58 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 996901042 for ; Sun, 4 Oct 2015 23:15:57 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by wiclk2 with SMTP id lk2so91996211wic.1 for ; Sun, 04 Oct 2015 16:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UWx4mgZHiBAI22Ucl7PYyaySdDuxboB+9BGU+jYmThg=; b=ARggqloOrYZVhTREds1sPw/yl4nP49TLDAcSMKEVQVpXwgUPayGCgjX5Qg1rwfCWVi eDOcbmZNG86rU+XbaWmB8srzsKFxOlZHYhlb3LOftkabbrhH1yaCfYEledfv1Kyjniul 0BbPo/YV5dk+nHZ8cYhiPvUkZsVuodUXW85o7HJX46f2W/6wumV+HPTWdRwBpWn/fD2L 7N3pGL9UW6g3RMiyYtKIolC4Ktf0ydFBfXktXwkBap6xHD9eNBnDxJr2sYMO24Zhij27 OUk9qzFeCWqFO4XySlh5EEKp9lvp62tYjcWOIAZTBJwAVok+2O9d5R0Jhd81vhqad3dz ecgg== MIME-Version: 1.0 X-Received: by 10.180.39.136 with SMTP id p8mr9023594wik.10.1444000555709; Sun, 04 Oct 2015 16:15:55 -0700 (PDT) Received: by 10.194.16.231 with HTTP; Sun, 4 Oct 2015 16:15:55 -0700 (PDT) In-Reply-To: <5611AFCA.4010909@kulturflatrate.net> References: <5611AFCA.4010909@kulturflatrate.net> Date: Sun, 4 Oct 2015 18:15:55 -0500 Message-ID: Subject: Re: IPv6 only Jails cannot connect to the outside world From: Adam Vande More To: Niklaas Baudet von Gersdorff Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2015 23:15:58 -0000 On Sun, Oct 4, 2015 at 6:01 PM, Niklaas Baudet von Gersdorff < niklaas@kulturflatrate.net> wrote: > Hi, > > I successfully run a server with several jails configured with ezjail. > Normally, each jail gets a private IPv4 on lo1 and another public IPv6 > on re0, i.e. the external interface. These jails can connect to the > outside world perfectly: > > > $ telnet -4 google.com 80 > > Trying 173.194.116.99... > > Connected to google.com. > > Escape character is '^]'. > > > $ telnet -6 google.com 80 > > Trying 2a00:1450:4001:80c::100e... > > Connected to google.com. > > Escape character is '^]'. > > Today I created a jail that only has an IPv6. This jail cannot connect: > > > root@ipv6only:~ # telnet google.com 80 > > google.com: hostname nor servname provided, or not known > > I don't know why. It has a public IPv6 registered on re0. > > I use pf as firewall. What I realised is that, if I turn off the > following nat rule, also those jails that have both IPv4 and IPv6 cannot > connect neither via IPv4 nor IPv6 too. > > > nat on $ext_if from ( $jail_net ) to any -> $ext_if > > I would understand if they weren't able to connect via IPv4 anymore > (because their private IPv4 aren't translated on the $ext_if) but I do > not understand why IPv6 doesn't work on these jails then too. You haven't demonstrated IPv6 doesn't work. You've only demonstrated name resolution on an IPv6 jail doesn't work. -- Adam