From owner-freebsd-net@freebsd.org Fri Feb 22 04:08:03 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8876714FE4A8 for ; Fri, 22 Feb 2019 04:08:03 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 058E177EB8 for ; Fri, 22 Feb 2019 04:08:03 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: by mailman.ysv.freebsd.org (Postfix) id BA06014FE4A7; Fri, 22 Feb 2019 04:08:02 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9767514FE4A6 for ; Fri, 22 Feb 2019 04:08:02 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 20F5077EB7 for ; Fri, 22 Feb 2019 04:08:02 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id x1M47svZ068731 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Feb 2019 05:07:55 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: crapsh@monkeybrains.net Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id x1M47stw073633 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 22 Feb 2019 11:07:54 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Running PPPoE server in jail, possible with VNET? To: BulkMailForRudy , net@FreeBSD.org References: <6cf02349-678b-9c18-83b0-dda95d70ed80@monkeybrains.net> <39485ab4-483c-72db-bd99-51f7f797fcef@monkeybrains.net> From: Eugene Grosbein Message-ID: <17fe369d-a4a0-35c1-9146-58a5aabe52ff@grosbein.net> Date: Fri, 22 Feb 2019 11:07:47 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <39485ab4-483c-72db-bd99-51f7f797fcef@monkeybrains.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 20F5077EB7 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.976,0] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2019 04:08:03 -0000 22.02.2019 2:41, BulkMailForRudy wrote: > > On 2/20/19 1:13 PM, Eugene Grosbein wrote: >> 21.02.2019 3:37, BulkMailForRudy wrote: >> >>> Dear FreeBSD-net, >>> >>> PPPoE has some broadcast ethernet frames... >>> >>> I have epair0a on my bridge and epair0b in the jail, but the jail doesn't get any PADI (PPPoE packets destinged to ff:ff:ff:ff:ff:ff). >>> >>> Is there a way to have bridge pass broadcast ethernet frames? (tcpdump in the jail shows no PADI packets) >>> >>> Right now, I have netgraph cranking out ncX devices for the PPPoE clients, and I'd like to stuff that mess in a jail so I can run ifconfig on the host and not see a mess. >> You do not need jail to limit output of ifconfig. >> Each network interface in FreeBSD can belong to one or more interface groups. >> First add all your interfaces except of ng* to some new interface group with ifconfig(8), then use: >> >> alias ifconfig='/sbin/ifconfig -g groupname' >> >> Or create new short alias ifc='/sbin/ifconfig -g groupname' >> for short output. > > That's neat, "ifconfig -g epair" shows all my epairs. My primary question, if anyone knows: > > Is there a way to have bridge pass broadcast ethernet frames? > > My goal is to run the PPPoE service inside a jail. I have not tried running PPPoE service inside a jail and a would not recommend that, but I did run PPPoE client running inside VirtualBox Windows guest using tap(4) for bridged networking when tap(4) was bridged with host's vlan(4) interface using if_bridge(4) and PPPoE ran in both directions just fine to establish and run a session. You need to read bridge(4) manual page, section PACKET FILTERING and disable all kinds of filtering using sysctls documented there.