From owner-freebsd-pf@freebsd.org Tue Dec 20 02:46:46 2016 Return-Path: Delivered-To: freebsd-pf@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 5CF2BC891AE for ; Tue, 20 Dec 2016 02:46:46 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: from mail-yb0-x22a.google.com (mail-yb0-x22a.google.com [IPv6:2607:f8b0:4002:c09::22a]) (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 228771D42 for ; Tue, 20 Dec 2016 02:46:45 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: by mail-yb0-x22a.google.com with SMTP id d59so62528355ybi.1 for ; Mon, 19 Dec 2016 18:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capeaugusta-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=g9cMG37IG2xM7LKcBVvnxlXjKCpLOX3LCtYsmSRbI+4=; b=u5CnFZFac+HueRjj8Bapw1hYrx/EaI8ckG2HFL1sKO7x4iIfsO/KVMYeVB0pb5JTjD QRpJJeiUIE2LOqUvfc6KXwRvT9iXxDFoVbN9TYLpp0FVNrQGeh7HFGj2uo88QGQm+fZ1 B4M9QO8DqVyff4SndaOeB+E+y2mBjEPajESeEGsUev44XenChLAwFifXkEHACmznqip2 vzWgGMy7Ca8PJunLKw5uGWaqMTh60/2kzsH5BI/vq4H43Vn1vP/RTvBNBGE3LC2C4GI3 tJxRQdhpYPOIwM/icuk2aePO5H7WVKjQ25woChwQack87pV0kl5bcL8CqDESclGvJKCZ bj5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=g9cMG37IG2xM7LKcBVvnxlXjKCpLOX3LCtYsmSRbI+4=; b=fYvYW3D5o07AG4d9UZorAqkkwzceVQycHW2Rcb8GbYLeACHiAMSW6XotkKQKFCMcMB DePrYXRvHu4AoE556ceq3YUULWJjlwM7n4ecDZEG9TYAExNUDZsVEn3NSHPU5a03yukt kdMipEYbsfQuFWpNlfbyosFcfu7vm1J4JYdFIYtz70pgB3L8ue7largrLO6DJP8YWSsc to/vTwJ7U69HUvQ5kPNZlqGc77h2ikVALO+/bUEpiMqNBLkHBJ429st5Lt9tLXc3robw umO3HL3jifLRk5gF6jkE6yCvZvQ1yEbQtfy1zuhDSvsjgHFI1sKZNqwjpE1sdnLJl4VQ B6bg== X-Gm-Message-State: AIkVDXLowzvaOh1GhGhO/b1JgxMcug2si2dDO3OnCrW1SAQK72xWnUTy2hMiyLHK6Dfnt1yzrLdAWLJ8e7XXjRqAa/S2oM359GNEtrsgFJUGa6xuTy2Vt/rZGap8PtzCyZkh4hHl8erh8zHQl3p8sK7sj4Y5zHCg5hQ0kp2r3VWf8J8omzkTeCQmAlBPiVii3AGRRw== X-Received: by 10.37.14.3 with SMTP id 3mr1904150ybo.106.1482202004697; Mon, 19 Dec 2016 18:46:44 -0800 (PST) Received: from zen.clue.co.za (c-73-20-181-123.hsd1.ga.comcast.net. [73.20.181.123]) by smtp.gmail.com with ESMTPSA id m123sm8649829ywf.26.2016.12.19.18.46.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Dec 2016 18:46:44 -0800 (PST) Subject: Re: PF TAGged jail traffic fails pass rule on egress To: freebsd-pf@freebsd.org References: <20161207171021.607579ea@rsbsd.rsb> <20161218163313.01fbc51e@rsbsd.rsb> <20161218233921.4455c466@rsbsd.rsb> From: Ian FREISLICH Message-ID: Date: Mon, 19 Dec 2016 21:46:42 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161218233921.4455c466@rsbsd.rsb> Content-Type: text/plain; charset=windows-1252 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 02:46:46 -0000 I do not know enough about how jails and their networking work to be much more help. I'd suggest reading up on how the network is handled for jails. IPFW can filter based on jail ID. I don't know if that will you. Ian -- Ian Freislich On 12/18/16 15:39, Beeblebrox via freebsd-pf wrote: > Correction to previous message; should be: >> After your ideA re "no actual packets on lo2" I ran tcpdump on that >> interface; indeed no traffic shows up. I moved the jails to a new >> vlan1 ON WAN0 (INSTEAD OF LO0) with /24 subnet, with x.x.0.1 empty and >> jails starting from x.x.0.2/32. This obviously facilitates NAT from >> pf in that NAT is now not needed for inter-jail communication. >> However, nothing changes for the greater problem of packet tagging as >> "tcpdump -i vlan1" shows no packet traversal as was the case on lo2. > So now, jails are on a vlan hosted on wan0 (egress) but tcpdump still shows no packet traversal on that interface. hardware driver is re : > wan0: flags=8843 metric 0 mtu 1500 > options=8209b > inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255 > media: Ethernet autoselect (100baseTX ) > -- Cape Augusta Digital Properties, LLC a Cape Augusta Company *Breach of confidentiality & accidental breach of confidentiality * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.