From owner-freebsd-net@freebsd.org Thu Nov 2 15:21:12 2017 Return-Path: Delivered-To: freebsd-net@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 9BC7DE5C6C5 for ; Thu, 2 Nov 2017 15:21:12 +0000 (UTC) (envelope-from marko.cupac@mimar.rs) Received: from mail.mimar.rs (tazar.mimar.rs [193.53.106.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F6A88246D; Thu, 2 Nov 2017 15:21:11 +0000 (UTC) (envelope-from marko.cupac@mimar.rs) Received: from tazar.mimar.rs (localhost [127.0.2.132]) by mail.mimar.rs (Postfix) with ESMTP id 626B7625A288; Thu, 2 Nov 2017 16:21:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mimar.rs; h= content-transfer-encoding:content-type:content-type:mime-version :x-mailer:organization:references:in-reply-to:message-id:subject :subject:from:from:date:date:received:received; s=mimar-0901; t= 1509636062; x=1511450463; bh=5LWaPl1cw/diAZcIEt2JOfzzNBc5nwG5+jt IRJGpulk=; b=FfxUTZ2vv6pd9BS+c9dPJLmeqRc3jbBESGqDbZ73kpAyiJDm5Gj pzKOEwKMq18y27/GFKsPc+Di42qbHKxsW8J8k62shahmpmPD2pdavv3ae64X7HOv Wr+GLaoYy8YOJpkigXLr/yr0+19QaDbjwuhfYhT86Y8eC71kuzuDoEpY= X-Virus-Scanned: amavisd-new at mimar.rs Received: from mail.mimar.rs ([127.0.2.132]) by tazar.mimar.rs (amavis.mimar.rs [127.0.2.132]) (amavisd-new, port 10026) with LMTP id ErLUKflSl3Nc; Thu, 2 Nov 2017 16:21:02 +0100 (CET) Received: from efreet-freebsd.kappastar.com (nat-nat.kappastar.com [193.53.106.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marko.cupac) by mail.mimar.rs (Postfix) with ESMTPSA id 66E69625A286; Thu, 2 Nov 2017 16:21:02 +0100 (CET) Date: Thu, 2 Nov 2017 16:21:01 +0100 From: Marko =?UTF-8?B?Q3VwYcSH?= To: Michael Gmelin Cc: freebsd-net@freebsd.org Subject: Re: VLANing between jails not segmenting traffic Message-ID: <20171102162101.4e334dfd@efreet-freebsd.kappastar.com> In-Reply-To: <20171102154255.12ca7e4d@bsd64.grem.de> References: <4d50ef1e-1cc2-aca2-d390-313ef824d524@gmail.com> <59F79902.40408@grosbein.net> <2A44422B-31A9-4ADC-8FCE-D1F8BC03623C@freebsd.org> <20171102131931.452f1106@efreet-freebsd.kappastar.com> <20171102154255.12ca7e4d@bsd64.grem.de> Organization: Mimar X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2017 15:21:12 -0000 On Thu, 2 Nov 2017 15:42:55 +0100 Michael Gmelin wrote: > On Thu, 2 Nov 2017 13:19:31 +0100 > Marko Cupa=C4=87 wrote: >=20 > > On Mon, 30 Oct 2017 22:46:35 +0100 > > Michael Gmelin wrote: > > =20 > > > You can use fibs with net.add_addr_allfibs=3D0 to get separate > > > routing tables (comes with its own set of complications > > > though). =20 > >=20 > > I hoped to go this way, but the fact that host (in fib0) replies to > > icmp requests destined to jail with raw_sockets disabled (in fib 1) > > via host's default gateway, making really wierd routing situation. =20 >=20 > Shouldn't you be able to fix this using a pf pass rule with rtable? I am sure it could be fixed as you said, but I don't want to introduce more complexity with PF. > Maybe you can share more of your setup, quite curious. I wrote about that here on the list, and on -jail as well (both are the same): [https://lists.freebsd.org/pipermail/freebsd-jail/2017-September/003442.htm= l] [https://lists.freebsd.org/pipermail/freebsd-net/2017-October/049037.html] I also got off-list reply from a guy who says this behaviour was introduced in 11.X, and not present in 10.X. Didn't have the time to test on 10.X. Regards, --=20 Before enlightenment - chop wood, draw water. After enlightenment - chop wood, draw water. Marko Cupa=C4=87 https://www.mimar.rs/