From nobody Sun May 18 20:39:52 2025 X-Original-To: dev-commits-src-all@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 4b0t3b4nXsz5wp0J for ; Sun, 18 May 2025 20:39:55 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b0t3b2ff7z3Flg for ; Sun, 18 May 2025 20:39:55 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-3d948ce7d9dso11642025ab.2 for ; Sun, 18 May 2025 13:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1747600794; x=1748205594; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bsJSypQoZiyA7sG+7oRZ0NJU5TOR8WUooCK2tncu37g=; b=WT4jeUh5F6SQBjE7j5QYXAee+RJVjF5NITw3oLHCPS59T7ip+KM7E468+OmcAaemPN tV6P9ko8oSPrhBsXEcstlawo8pBKUFRBUt7Z+WBzd980u0wzgxNq8eJ5l2QCcH3x8iCY 4y64PrW1AOQUYXKDzpyEFAR+1P05mwp7DYjMI+0Fg8HK0SgeHMnWHmGb6AEWImvyCqwK P6ZTylR9pzz2dopBHLjYUHhxbHfFtcNX3i2JQd0KO7hZQcg3qJZ4ClU3eDr7HZm/GiTu 5DyLpPxnwCslZt1aiKhUgnfRmE7BwrS0wnRgJMktbKDXJ7j+Eg7ZH8WaVbnuHfg7L42r I1QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747600794; x=1748205594; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bsJSypQoZiyA7sG+7oRZ0NJU5TOR8WUooCK2tncu37g=; b=qD4zxlAGSXgvYelrJ2FASfgQRC5fI0B7i3tl9J0T0WTy75l/fKPHLfTlfdAJQfaZOn gfHUHc+A7vOtNXjrI40awToNCzFvbepXbxTV+LG1jrqqexqe0RISAPqiqRA1GMKLu+f3 8787t0MHe9KBl0jUAmNKOBzLfEEWL9Py2nSV00nurVlzVckhGCaCJxReHRFbLiVV5oy0 11+6Un/BNuphA4edPuXfEbC3u7SI94UxoQp9ncxW9mcYfc6eilRaiVl8TS5TYGKgmz+Y v8XVZTPlAp0sJWd0rLB1ryGYYlfs5MnFSQE3f/3N0FU3B3oagMR0GPggBM/jtkcS1lkQ Tm5w== X-Forwarded-Encrypted: i=1; AJvYcCWjajurejN7N+VtcQZe63/1qauN8rtpbGvJnpketu9Rm45kgzaxb/FKfvmdQjk7XeJYuwLn5yB0YwDb0g4b/QaBxr5Z@freebsd.org X-Gm-Message-State: AOJu0YzW/eE6jgkiZ5TBdwalpkt0eP+Gg/7fiBZYPeE1fnPWBgrFq0wb 391rJBR7HiG6Fni5F29pJnUqCA0xyaDrs4zFnuun6gMNXj+btWwhs8aRk6WQvgagkWE= X-Gm-Gg: ASbGnctZykG63ztWmgJxXkSBisZo+nRbINepN9218hIdOfXjHUXQkIDCzm/Pyzzg2yA rB5A8p77tKBJVdjQ3Y6faBMctEYI1Kz6D3p64/sm11GlKlSW4Oqjhz8dsmIgTwY8N7ZLItJgJoM OzHM53UF4LiNlm+S6XR6QG9sqESIXYXiIaYTc3qBerRLRtwbEQagj+n8EHPfewtyLXyLoR/qJSM a7bPi9STxdkvF85XfogUZ2kbNxovfia+sZQ3W3saaYxymDrby8ON5AFRrvh70jZWjd4ZPX/mLTW QnUYHh2++wgKGqHCu7fif5vbiH0MPqRKvgC068lo7OsI X-Google-Smtp-Source: AGHT+IGwosFe4rr5re/1ExSPeuvfU+nMTQcYeYyawEtGfT9l0dsL5tg7Tw1YIxiv/IbOkXigIUGfMQ== X-Received: by 2002:a05:6e02:2409:b0:3da:7cb7:78c with SMTP id e9e14a558f8ab-3db84303117mr97822045ab.11.1747600793852; Sun, 18 May 2025 13:39:53 -0700 (PDT) Received: from mutt-hbsd ([2001:470:4001:1::95]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4fbcc4b2dd5sm1406072173.110.2025.05.18.13.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 May 2025 13:39:53 -0700 (PDT) Date: Sun, 18 May 2025 20:39:52 +0000 From: Shawn Webb To: Mitchell Horne Cc: Kristof Provost , Lexi Winter , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: b61850c4e6f6 - main - bridge(4): default net.link.bridge.member_ifaddrs to false Message-ID: X-Operating-System: FreeBSD mutt-hbsd 14.2-STABLE-HBSD FreeBSD 14.2-STABLE-HBSD HARDENEDBSD-14-STABLE amd64 X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <202505150004.54F04FhR046897@gitrepo.freebsd.org> <94441836-bb03-4c80-b603-aaa2997c4d29@freebsd.org> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vyhrsnil4f2vwizj" Content-Disposition: inline In-Reply-To: <94441836-bb03-4c80-b603-aaa2997c4d29@freebsd.org> X-Rspamd-Queue-Id: 4b0t3b2ff7z3Flg X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Spamd-Bar: ---- --vyhrsnil4f2vwizj Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: git: b61850c4e6f6 - main - bridge(4): default net.link.bridge.member_ifaddrs to false MIME-Version: 1.0 On Sun, May 18, 2025 at 01:37:30PM -0300, Mitchell Horne wrote: > On 5/17/25 18:57, Kristof Provost wrote: > > On 17 May 2025, at 23:18, Mitchell Horne wrote: > >=20 > > On 5/14/25 21:04, Lexi Winter wrote: > >=20 > > The branch main has been updated by ivy: > >=20 > > URL: https://cgit.FreeBSD.org/src/commit/? > > id=3Db61850c4e6f6b0f21b36da7238db969d9090309e > cgit.FreeBSD.org/src/commit/? > > id=3Db61850c4e6f6b0f21b36da7238db969d9090309e> > >=20 > > commit b61850c4e6f6b0f21b36da7238db969d9090309e > > Author: Lexi Winter ivy@FreeBSD.org > > AuthorDate: 2025-05-14 14:26:24 +0000 > > Commit: Lexi Winter ivy@FreeBSD.org > > CommitDate: 2025-05-15 00:02:52 +0000 > >=20 > > |bridge(4): default net.link.bridge.member_ifaddrs to false As > > discussed on arch@, this behaviour is broken and confuses users, > > so disable it by default. For 15.0-RELEASE, allow it to be re- > > enabled using a sysctl, but the sysctl will be removed in 16.0R= =2E | > >=20 > > Hi Lexi, > >=20 > > I just updated my workstation past this commit. I found that my main > > ethernet interface didn't receive an IP address, and had to set the > > sysctl to proceed as before. > >=20 > > I have the following network configuration lines in my rc.conf: > >=20 > > cloned_interfaces=3D"bridge0 tap0" > >=20 > > This ought to do the trick: > >=20 > > ifconfig_bridge0=3D"DHCP addm re0 addm tap0=E2=80=9D > >=20 > > Ensure the address gets assigned to the bridge, not to a bridge member > > interface. > >=20 >=20 > Here is what I ended up with: >=20 > ifconfig_re0=3D"up" > cloned_interfaces=3D"bridge0 tap0" > ifconfig_bridge0=3D"DHCP addm re0 addm tap0" > synchronous_dhclient=3D"YES" I wonder if there is any security difference between DHCP on the physical interface versus the bridge. Having the bridge grab an IP via DHCP (or IPv6 SLAAC/DHCPv6) means that VMs much be trusted. If a VM is compromised, a threat actor could redirect traffic on the host by running their own DHCP service in the compromised VM. The question I have, though, is: is this an issue when the physical interface is used instead of the bridge for grabbing a dynamic IP? So, I guess I'm asking, is there any security difference between the following two configs: =3D=3D=3D=3D BEGIN CONFIG 1 =3D=3D=3D=3D ifconfig_re0=3D"DHCP" cloned_interfaces=3D"bridge0 tap0" ifconfig_bridge0=3D"addm re0 addm tap0" =3D=3D=3D=3D END CONFIG 1 =3D=3D=3D=3D =3D=3D=3D=3D BEGIN CONFIG 2 =3D=3D=3D=3D ifconfig_re0=3D"up" cloned_interfaces=3D"bridge0 tap0" ifconfig_bridge0=3D"DHCP addm re0 addm tap0" synchronous_dhclient=3D"YES" =3D=3D=3D=3D END CONFIG 2 =3D=3D=3D=3D Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Signal Username: shawn_webb.74 Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --vyhrsnil4f2vwizj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmgqRYkACgkQ/y5nonf4 4foZ8g//ZtZzTpRGuhm6AqTVliV7NWAbnZf5aVGggtWVxGGPQPnfJbYwJirQKLgQ 9JM/NOtKpM7cIcqKFpIntobc4ZqVYYcmQlHGyyBeoemCodske4vWflNbinVbl5SX Xcrqt6MjQt56KUy6FqLbNiHqBOuPz6cONpBulK/7uyXIGUIgEo67pA/WIWiqfPr6 d5KT25d5SY68nZnB4IjZ/zadPeG7FS40gi6aeDSw8DmuUaHvzSRvVzdBsWpEOpEU vhX2+lsL2mYhk2/nKUZYEp23+/0f2VHNSIIqPok+wD3zEQ7mUNY/quBJjZ/kNele zyP1AJBqe2nrqgvpuvtp6Kv5b6kmtbArKo4j+6ZNtqlBnUx4EFgsPgNEXk9IyL+j 2n8Mj7Rr2ekhfg2xpG/2kGX7FlsKGNDplpqzVcGNHrwW7X5U8J5npFhL0BCOSeRv 1XykhxP1F/zEgkO+jjWKASPTlvWLUQ/L8cgu+//C6jGGm2juR1DFoDcFOLP08y1G rFTeF/f6cqBVwE0c90mPKM6zdfC//BsBTqaQI6f5ERmG4SAhAiQsTGpmg/Dg+/gB 5pBVZB+yP4jDN0Vpdt6sYksh3F/bbz7RynizMTvVrZfTodjQTzFa3of7t5NIR90y U0r7+IpH1sQKp18pKNsBlUCUiF2YIveu1MTHofH5oAim/4L2a/I= =dC7m -----END PGP SIGNATURE----- --vyhrsnil4f2vwizj--