From nobody Wed May 25 09:26:46 2022 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 89E7E1B3E096 for ; Wed, 25 May 2022 09:27:01 +0000 (UTC) (envelope-from ol@dbconn.net) Received: from mout-b-105.mailbox.org (mout-b-105.mailbox.org [195.10.208.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4L7Qgm37Ycz4bXS for ; Wed, 25 May 2022 09:27:00 +0000 (UTC) (envelope-from ol@dbconn.net) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-b-105.mailbox.org (Postfix) with ESMTPS id 4L7Qgb348bz9srl for ; Wed, 25 May 2022 11:26:51 +0200 (CEST) Date: Wed, 25 May 2022 11:26:46 +0200 From: Ole Lemke To: freebsd-net@freebsd.org Subject: Re: FreeBSD 12.3-p5: problems vnet on if_bridge Message-ID: <20220525112646.56aae445@lenp43s> In-Reply-To: <20220524171654.705f67b2@hermann> References: <20220510212129.35041f02@hermann> <20220511204755.2028dce9@hermann> <20220524115246.0ef1ff59@lenp43s> <20220524171654.705f67b2@hermann> 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: multipart/signed; boundary="Sig_/dz64SXKk7vc+jCuiBuU=xd8"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-Queue-Id: 4L7Qgm37Ycz4bXS X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ol@dbconn.net designates 195.10.208.50 as permitted sender) smtp.mailfrom=ol@dbconn.net X-Spamd-Result: default: False [-5.00 / 15.00]; MID_RHS_NOT_FQDN(0.50)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.10.208.0/24]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_NA(0.00)[dbconn.net]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-net]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:199118, ipnet:195.10.208.0/24, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[195.10.208.50:from] X-ThisMailContainsUnwantedMimeParts: N --Sig_/dz64SXKk7vc+jCuiBuU=xd8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Tue, 24 May 2022 17:17:19 +0200 - FreeBSD User : > > could you solve the problem? I think I ran into the same problem. > > I opened a Ticket. =20 >=20 > I couldn't solve the problem. >=20 > >=20 > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264198 > >=20 > > I seems to be related to IPFW and effects vnet-Jails and also bhyve > > VMs. =20 >=20 > There is also a PR regarding vnet/if_bridge/routing issues, at >=20 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240106 >=20 > but I can not guarantee this PR is in any way similaror adjacent to > the problem of mine (and probably yours). Difficult to say if the problems are related. In my problem IPFW plays a role.=20 Are you using IPFW? If so, please take a look at the issue https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264198 I described very simple setup to reproduce the bug, in a Bhyve VM with only one Interface: vtnet0---bridge0---epaira0---epairb0 vm # ifconfig bridge create mtu 1400 vm # ifconfig epair create mtu 1400 vm # ifconfig bridge0 addm epair0a vm # ifconfig bridge0 addm vtnet0 vm # ifconfig epair0a up vm # ifconfig epair0b inet /28 mtu 1400 up vm # ifconfig bridge0 up vm # nc -v -l 2222 > /dev/null the only IPFW rule is vm # ipfw list 65535 allow ip from any to any from another host (in the same network) I send data with nc: dd if=3D/dev/zero bs=3D1024k count=3D6 | nc -v 2222 result: 6291456 bytes transferred in 70.693446 secs (88996 bytes/sec) after 'service ipfw stop' on vm-a, it is about 700 times faster )-: 6291456 bytes transferred in 0.100673 secs (62493675 bytes/sec) I wonder if IPFW + bridge is broken in 12.3. ... --Sig_/dz64SXKk7vc+jCuiBuU=xd8 Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcfiBcfJXFWtoGXjffPhD3vCz2EwFAmKN9lYACgkQfPhD3vCz 2Ewq5BAAp3uamofimZG3iwsAir2T4W+FGT+qzz/hUa5ExOo8AMYOo0CqopIH3JPJ 4KZzk5QxCNOmy76Q6v7ZCMTPFj6zY0LC8KPiWoM4FKV60xfadtLeF1NM8cIn+doF RQY9NZY4ruaHswjVcc+3o5ejtPT6BO4/CIA33Tg76Pr+HWThI1MwG0k5kD8NrKhs QeOfmTRGzOF++ZeM6c5JXRNBfQ+LEGPrCzOrxHbbhlbda2y33pbznrAfBOJtgFcc NJpV70L59S0waXlvnpTB9sWwwia50tllBdy0h7KrYRiXwY7zraNbMOOynjo+UdfV Sl230yMercFY+Wxg7yzjeMN7LInKmr59ip98kMAowx/n1FtvdVVy6C9nc4sM0JcE slgxyMxLB0uEh0zDDScCn/sdGOGQTFTO6GQe6+InGrQihObQx07djP9oQ9BhrQB+ mk7fFzGmcaftlsBwNGWpzYOX6wUplzKmcBV9GYZ6orrIwn4DpfFwT9DqSQeqOcl4 aahVFbYp5OnNrSSMl3hDPGkljmNU/BhqCEchItqJJP2yt2tNQm75+nj3XQnprCfN kRjTAH2LSkJKkrlnjPHH8wUTrkTXsy48rZSfd2332WXTbXAf5NfGGYpKnnuG3t5b meWydl2kfNC94i8wSzSkngpVgSI601fS81NyXDy5D4C0E9F0Q2g= =C6Rd -----END PGP SIGNATURE----- --Sig_/dz64SXKk7vc+jCuiBuU=xd8--