From owner-freebsd-current@freebsd.org Mon Nov 2 13:47:47 2015 Return-Path: Delivered-To: freebsd-current@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 94891A22AFB for ; Mon, 2 Nov 2015 13:47:47 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-vk0-x231.google.com (mail-vk0-x231.google.com [IPv6:2607:f8b0:400c:c05::231]) (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 4053B1B96 for ; Mon, 2 Nov 2015 13:47:47 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by vkex70 with SMTP id x70so84739201vke.3 for ; Mon, 02 Nov 2015 05:47:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-type; bh=DNIOKxgDyPG5KXzc44qeHYJOO23XdaEixnyiQFR7Dhc=; b=dE/SrJ1GhEW/VI2I7UmnPDPHQ4zfB0ylyvOLt8xnVtYZLe8IDbNXpeyZNkHb6dB3cU sPvF9rV/gqYCBqQHoKq4GG0WZ2OyOGwhHbYWq5qh6SYzrPfUk1RK8N+7+AKZz3ZcZ6p2 QUPEp3mDwCZXiOmsQLp4RTjv5TweIypaVnj/R4lMGv5YhDVIsZrgWY40cngXmM0KQucD ZGx5UyZSUVxQ80ckLktsieUlGGMf5H/c33yxvPSuX2zYAvidU2IMWpxQx1UYJrUoVEet AvMWSpNxUCQHLdxKnrO31oKEiXzrhTv/YCmxbWPqEc6nMLvVDr/O173t8AIF0AoyQiZ8 5iKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version:content-type; bh=DNIOKxgDyPG5KXzc44qeHYJOO23XdaEixnyiQFR7Dhc=; b=dVzOXEmqJUPNXJ6pfIkl9vZNi3wVVK4B4K4Kqj3O9kOVhO6y2W0dsvxmDmEWZ2WMDP nX/CNJSnPwfVxOfFK10jSY8v86Y5tB1s4S6zKcysq2qgGHZUJQF0QATO3yvWtPwfhRhb HYGZ796nnP2x7eE6IDDVgW7+y4LDm52vVr7930CI8mrXTGr6un1U/tb9Cz3woRDDnaui 6tX4VSnk14FqI2DQvLZOxO3v0phhv6XBymLFPIFDFJ5zjHUP25ZS4JRIixZdM7KK1EHW NJY+MnXE4vIuLDV5MH3P4GeZpkxAkerZpIxJvcmEV0ssaPYe1gbNEpLRUkOPynUg6fAg F9Cw== X-Gm-Message-State: ALoCoQmJLSCBzyoWHJ56RC+rfIIQYWC9vJ+yggGU5sHBG5RVJu7dNojGjloTLT9JH8ZYpYSjpMWCaa0zZU1NSYgG1d4praDMawORsjeoviT9b5aA8pASTVGcbe3dfiorioa5yxw/qWccrn+ALRoKVvdTZCkXMVRvpWfEFvhEhKLDfUqlyeR7mHo0bJ+FeYzKgRN8cxaQzhCa X-Received: by 10.31.150.142 with SMTP id y136mr15319372vkd.53.1446472066203; Mon, 02 Nov 2015 05:47:46 -0800 (PST) Received: from hbsd-dev-laptop.localnet ([129.6.251.181]) by smtp.gmail.com with ESMTPSA id g134sm6179939vkg.8.2015.11.02.05.47.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Nov 2015 05:47:45 -0800 (PST) From: Shawn Webb To: freebsd-current@freebsd.org Subject: Re: pf NAT and VNET Jails Date: Mon, 02 Nov 2015 08:47:37 -0500 Message-ID: <6607014.lfu2kQizLV@hbsd-dev-laptop> Organization: HardenedBSD User-Agent: KMail/4.14.3 (FreeBSD/11.0-CURRENT-HBSD; KDE/4.14.3; amd64; ; ) In-Reply-To: <56354BD2.5060608@freebsd.org> References: <56354BD2.5060608@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1600692.zBKYFc2zeL"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 13:47:47 -0000 --nextPart1600692.zBKYFc2zeL Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" On Sunday, 01 November 2015 07:16:34 AM Julian Elischer wrote: > On 11/1/15 2:50 AM, Shawn Webb wrote: > > I'm at r290228 on amd64. I'm not sure which revision I was on last = when it > > last worked, but it seems VNET jails aren't working anymore. > >=20 > > I've got a bridge, bridge1, with an IP of 192.168.7.1. The VNET jai= ls set > > their default route to 192.168.7.1. The host simply NATs outbound f= rom > > 192.168.7.0/24 to the rest of the world. The various epairs get add= ed to > > bridge1 and assigned to each jail. Pretty simple setup. That worked= until > > today. When I do tcpdump on my public-facing NIC, I see that NAT is= n't > > applied. When I run `ping 8.8.8.8` from the jail, the jail's > > 192.168.7.0/24 > > address gets sent on the wire. > >=20 > > Let me know what I can do to help debug this further. >=20 > send the list your setup script/settings? I'm using iocage to start up the jails. Here's a pasted output of `ioca= ge get=20 all mutt-hardenedbsd`: http://ix.io/lLG Thanks, =2D-=20 Shawn Webb HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --nextPart1600692.zBKYFc2zeL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJWN2l5AAoJEGqEZY9SRW7u5NEP/Au+68ewv/9C4Nto9H/WBW5z 5xehbs28IBWAKpGJCbnrB7KebEKyZ3YHzwQIHS8oCJLhZkDMhQY6BoC1orSfTeHP bAAEPCY92k0TIdD9l5ceDXjYKSyHewo3AgaLGZlF4tQaIkbi4gwqNOkIJe+9Ffnk 0G2JCKvaKn7rwFAGVwkwjKmbIVuke1dE8+fuqhLDak06kpjDAx1ZxjmoHMbIZ2yF OVn2RFeF5Sku60H6pcKYuGDQjMqjw670M+3mLLnSVKXYD5GLB3xmNHWu3eb86c5P fxn/oAoZC+RST63tM3RMb/KODgQwmShsLFrARORRe0lLA0ytwz9XHb1TYXSiqk2L lnVJCC5xgpD1S4O+V2ZYhznJnIzmbAIXgoBqsfEgNWRE6XoqmbLXqFbxafvfBDjo qqQcbMoM7ZFCPGXssNdpQbqXmB4QorjbX9Qzr1prelp5rMoWZqTo49JAx688t2QX 1VmGcN8BoT73wbGLaY/zqSSVnG3oB58Ezgt18sbjDqAcUJnD684bhnf9cBgQ4hFK 4QMKw+qIZ1NZSUeHOXDQvi69YttEMdmGmT2K0/xYg3PpeQqE/zBYQiYKwc/jtrFi lL5VeNAD5OmZJy387Hw2eZkIdWjbvxFo1bIoUIkm/1NUxLzSzqL3o7hAupZ1lOtA G/JzjedvLJLnU12Rnt2l =kgcy -----END PGP SIGNATURE----- --nextPart1600692.zBKYFc2zeL--