From nobody Thu Dec 21 15:56:08 2023 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sww5b2jxkz54x5s for ; Thu, 21 Dec 2023 15:56:19 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sww5Z04ZLz3JhC for ; Thu, 21 Dec 2023 15:56:17 +0000 (UTC) (envelope-from freebsd@grem.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=grem.de header.s=20180501 header.b=lE9R9Pza; spf=pass (mx1.freebsd.org: domain of freebsd@grem.de designates 213.239.217.29 as permitted sender) smtp.mailfrom=freebsd@grem.de; dmarc=none Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 9b7134b8; Thu, 21 Dec 2023 15:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=20180501; bh=N7AIIBHo bnn2TJqNrhCxH0laE/8=; b=lE9R9Pza/iBwu5SWvMEQITMy0ac3Yp5Uwh9r0CoS PpAd1mAOmNm0sozTnoW2dt98rjZ7aMKrQSZZZVGNou7WNO9Ln+6WM1bUUE6jV4sk ZqAYd2W7xAoMIKurN704IVPmkHdEaPJ9fnKwaXeP+ZQNlCcXrefGjllp9uNcW7Eu h7Idx+vBSj3exB3riwhVuuyKIyehl18xynZ7Wa6KcfUfBqsP1pTdHMrYZM+xBC2u ma+aHkgqJqyt+OUThERlzjzvBytpZ0TZFhLx5JDUW0zJN6lZYBi+XVZGEm5UCo5h KXsuqjEfy+pTeF1uSgv070MfoVFZmUDyBsDU6aE7qcRSvw== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=20180501; b=W9 TZDhG3QDWk3OonsetpWqhzBQTYXL8Yx6HWNZyGHIJHB1o/WKdvc5CtyzgOkkg9BF 8+BxSZQ/VGB2PCt/amtDwqnpxyEJhChqgSGerXOYjtYEBNi7wqP4ZhMJHwTH5ikW HsVHxWpkGyWLJ9hxG1RnU9TdGASESCrX7OZ/fH2RyV+AVAMjqTCl+SylKFhluW1V OQsv+S7ovYxmr0AmAE9E1JTf0Lwb5CxofsQ0K2HIbKgVn70s2YpUNlKysbVty7m7 ytApbHkJOUAojyWYUC6sNH7wrHJB8KWSZkFxpVcunbv1dkYmEePDSUGTBCMcTQGd 5oHEQyOw/O/e/l9HagGQ== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 6b38e37f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 21 Dec 2023 15:56:15 +0000 (UTC) Date: Thu, 21 Dec 2023 16:56:08 +0100 From: Michael Gmelin To: "Patrick M. Hausen" Cc: FreeBSD Net Subject: Re: Display of bridge member interfaces cut short - bug or intention? Message-ID: <20231221165608.5296355a@bsd64.grem.de> In-Reply-To: <20231220213245.3596498a@bsd64.grem.de> References: <20231220213245.3596498a@bsd64.grem.de> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-2.48 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.984]; R_DKIM_ALLOW(-0.20)[grem.de:s=20180501]; R_SPF_ALLOW(-0.20)[+ip4:213.239.217.29/32]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[grem.de:+]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; DMARC_NA(0.00)[grem.de]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Sww5Z04ZLz3JhC X-Spamd-Bar: -- On Wed, 20 Dec 2023 21:32:45 +0100 Michael Gmelin wrote: > On Wed, 20 Dec 2023 18:04:36 +0100 > "Patrick M. Hausen" wrote: > > > Hi all, > > > > as some probably know we provide web hosting services and we use > > jails for that. > > > > On some particular host we have 255 vnet jails all of which are > > connected to the external interface of the host - renamed to "inet0" > > in our environment - via if_bridge(4) and all managed with iocage. > > > > root@ph003:~ # grep inet0 /iocage/jails/vpro*/config.json|wc -l > > 255 > > > > Of these 251 also have a second epair interface connected to a > > private bridge named "priv1". These are used for connections to the > > central database server which should not be exposed to the Internet. > > > > root@ph003:~ # grep priv1 /iocage/jails/vpro*/config.json | wc -l > > 251 > > > > While looking for a different problem to my great suprise I found > > today that ifconfig truncates the list of member interfaces for both > > bridge instances. And both to the same value of 102, although the > > member numbers are (albeit slightly) different: > > > > root@ph003:~ # ifconfig inet0|grep member:|wc -l > > 102 > > root@ph003:~ # ifconfig priv1 | grep member: | wc -l > > 102 > > > > All 255 jails are connected to the external network and perfectly > > reachable from the Internet. That's why I conclude that the display > > is wrong, not the bridge configuration. > > > > What's happening here? Is this intentional or shall I file a bug > > report? > > > > More importantly: either way is this only cosmetic or will we hit > > another unexpected limit of the number of interfaces that can be > > members of a bridge any time soon? > > > > Hi Patrick, > > I could reproduce the issue and created a fix: > https://reviews.freebsd.org/D43135 > > As far as I can tell the issue is cosmetic (unless, of course, you > have automation based on libifconfig or the output of the ifconfig > command). > > Best > Michael > The fix landed in main[0] and will be MFCed to releng/13.2. Cheers Michael [0]https://cgit.freebsd.org/src/commit/?id=3d36053ca6d6a17d408c8f92c504e6135dc9d8df -- Michael Gmelin