From nobody Fri Jun 7 13:12:41 2024 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 4VwhSw2yRfz5NTV8 for ; Fri, 07 Jun 2024 13:12:48 +0000 (UTC) (envelope-from roy@marples.name) Received: from sender-of-o58.zoho.eu (sender-of-o58.zoho.eu [136.143.169.58]) (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 4VwhSt5bt4z4TxX; Fri, 7 Jun 2024 13:12:46 +0000 (UTC) (envelope-from roy@marples.name) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=marples.name header.s=zmail header.b=BgCQSmd7; dmarc=pass (policy=quarantine) header.from=marples.name; spf=pass (mx1.freebsd.org: domain of roy@marples.name designates 136.143.169.58 as permitted sender) smtp.mailfrom=roy@marples.name; arc=pass ("zohomail.eu:s=zohoarc:i=1") ARC-Seal: i=1; a=rsa-sha256; t=1717765963; cv=none; d=zohomail.eu; s=zohoarc; b=Il/v6srVYyZWU/krcNsM6ZlbkYHqJX2KXHTTOh+AZsRcx8b1GTd1G66P5ROVpuHyOmkgUGIActhMeXP0Zee+/WfZkTlW/U0Y0Vr684POCONQmp/wMmMPDFPqJ31ZmJwz4KUZqCo0IIK+2BWzTwawAUm3I0+gDnILIfq014FSsdw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1717765963; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=HAJ4gskACdAqC5rC6ZaAQuO5x7yJr6OARZCiou7SUpY=; b=JiXonGLCVXcBG3Ao2mH4yBMjdLTTFFuJccjpvGA9mVbZ/YVt7HxTmN+tU5h7/42XyEbWr5LBRc4qNEd65+od7WdJZsV6gOrrvyKUdj7MW4BnVTMkMf1nFebfNr8jZ/nKqEvd5YU62urzAAmRAI3iXoaMYxhJC8NQuWGqrmDPM8Y= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=marples.name; spf=pass smtp.mailfrom=roy@marples.name; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1717765963; s=zmail; d=marples.name; i=roy@marples.name; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=HAJ4gskACdAqC5rC6ZaAQuO5x7yJr6OARZCiou7SUpY=; b=BgCQSmd7hkwenGW9t1VTrzGr4XFlM5cQqQ0PRHkby2bbO8KIwdrhXEkORz84vdxm zbn9QNCkHtPlqt6O3+ya8nS4tt2Tts++suR5vYrJeUmKWAp9x4D1zpXNvhqLYosXCrK tpTcKFjFenc4ycQSHb6RHaBJMscOGYaEVYJm2sJM= Received: from mail.zoho.eu by mx.zoho.eu with SMTP id 1717765961557712.0018551597966; Fri, 7 Jun 2024 15:12:41 +0200 (CEST) Date: Fri, 07 Jun 2024 14:12:41 +0100 From: Roy Marples To: "Ed Maste" Cc: "freebsd-net" , "Ben Woods" Message-ID: <18ff2d4772a.129dde187836962.5411001908566459400@marples.name> In-Reply-To: References: Subject: Re: Importing dhcpcd(8) into FreeBSD base 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="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.08 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_ALLOW(-1.00)[zohomail.eu:s=zohoarc:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.986]; DMARC_POLICY_ALLOW(-0.50)[marples.name,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:136.143.168.0/22]; RWL_MAILSPIKE_VERYGOOD(-0.20)[136.143.169.58:from]; R_DKIM_ALLOW(-0.20)[marples.name:s=zmail]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; XM_UA_NO_VERSION(0.01)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:41913, ipnet:136.143.168.0/23, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[marples.name:+] X-Rspamd-Queue-Id: 4VwhSt5bt4z4TxX Hi Ed ---- On Thu, 06 Jun 2024 02:48:36 +0100 Ed Maste wrote --- > On Sun, 7 Aug 2022 at 01:32, Ben Woods woodsb02@freebsd.org> wrote: > In the previous threads some objections were raised about dhcpcd's > lack of sandboxing (Capsicum / privilege separation), which has since > been addressed. > > I would like to start building and installing dhcpcd by default so > that it is available for testing and experimentation. I do not intend > to replace dhclent or rtsold, at least without more information, test > results, and consensus. That's nice news, thanks for carrying the torch here :) > > > - 14.0 (and perhaps 13.2) - dhcpcd included but off by default (WITH_DHCPCD=on, but rc.conf/network.subr continue to use dhclient/rtsold). Release notes list forward plan. > > > > - 14.1 - switch defaults in rc.conf/network.subr to use dhcpcd instead of dhclient/rtsold. Subject to any issues being addressed prior. Release notes could list deprecation of dhclient/rtsold - this deprecation step could be done slower if desired. > > Any change to use dhcpcd by default doesn't belong in a minor release, > so if we're going to do this it won't be before 15.0. > > > - 15.0 - remove dhclient/rtsold - again, could be done slower if desired. > > I agree with a minimum of one major release for this, so it would be > 16.0 at the earliest. > > > https://reviews.freebsd.org/D22012 > > There's a lot of history in this review, which is useful but also > unwieldy. When there's a rebased patch set ready I'll create a new > review and reference it from D22012. Sounds good. For reference, there was a new dhcpcd-10.0.8 released recently. I see it's already made it's way into ports, but it's worth mentioning regardless. But for the port itself and how it integrates into FreeBSD please be aware that dhcpcd-11 (not released yet) will be the first where you cannot have a process per interface/family. Instead there will be a single process which covers everything. This will reduce the code base, the complexity of how things hang together, remove the need for a network proxy process and solve some unsolvable problems that have surfaced over the years with the current structure. How does this affect distributions using dhcpcd? Well, if use another framework (such as FreeBSD's rc) to control DHCP per interface you still can, but you need to start dhcpcd first with all interfaces disabled. You can do this in /etc/dhcpcd.conf or on the command line. Once done, `dhcpcd $interface` works as before to activate the interface. You can currently do this now with any dhcpcd-10 version as well. Just worth mentioning I think as FreeBSD are now looking at integrating. Plenty of discussion on this upcoming change can be read here: https://github.com/NetworkConfiguration/dhcpcd/discussions/271 Thanks Roy