From nobody Mon Jun 17 18:33:44 2024 X-Original-To: freebsd-current@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 4W2z6f4r16z5PNfp for ; Mon, 17 Jun 2024 18:33:46 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) (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 4W2z6f36t8z4DdS for ; Mon, 17 Jun 2024 18:33:46 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-3758fa1cc8eso17862875ab.3 for ; Mon, 17 Jun 2024 11:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1718649225; x=1719254025; 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=ecVAOdSdnyGdz9Ymvgzq+lAq3pff65dlIVB/edFDjKs=; b=LkDdbdR+Bgv+Y3JDlqCqYtCgTcz14GaNezIFdQo/K37NvjQcqJHQmUeCP2CxlC86b6 +PvVpBS+5gN/eyTjfh9+Lwg67jS2Hl4xXE5obd9FNMrI3DWbYYnps7k+Lc4kpQQRvbuu Eq4uTX7cgK7KrrBlztIJmzEZLpbeQKja+Ye7GfSpW3Rvk1VWy028WXGrxbpmRlgj1fsg q+z2WgPOJlTUNS1UoFGft4Zw0JlCNfMF/Q0i0Bfx9oG2PhLLwc9rHuwG4tVZUWD8U8I3 vXcVUcpYXjS7qvsBLoy3HBwPp0sU05San0JwOx3e4djGsl/OvU9gmnIVxLyMHJq+vCsG 0u8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718649225; x=1719254025; 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=ecVAOdSdnyGdz9Ymvgzq+lAq3pff65dlIVB/edFDjKs=; b=uH4cPmSxyYg+DNhogkNbyYJSazhK2SJdBGTsLlAoqB3DLt1wvQjGbu08wVK3O4wmgJ JR9hKaxUdt+Sxe9Ic7Vxd3tbjwga5JOA/Bo3Rn3+wLfHT9PMVkuCA51qfNsUWnnV4rMA IjwmM+nhOGG6N9ioLn8I/CLYMzMymkcX5Uzb+4iHbpQb3Mlvo2nApxnJSINVk3PZADXH hnCbKYCiWSvFHx3SRQ0YftF6peBsOXGADm5kUHY2fTE2uo6uCYAkVxSrTxvXg0rK5/Q/ MLv0cFJLfvI9CtbYkzdeQy2Shm2USbasNH/XNwGZz0GVf8RFCwss6xYwsoEFSaiJtfrM 2p+A== X-Gm-Message-State: AOJu0YyTLyudA4m40hn589lyzSOSrxIXl5AZxyL7bW4ng/Unn0rO9lP7 bNEiPYI2rsw98pDYW+njY+h9ej4bj3rc/2BHWliLcUOTypsPl9h6po76+TWQK0UvU3ba+RqWeNQ 8 X-Google-Smtp-Source: AGHT+IGdzskJFa2QXgcv/4pdXhiMunuX1zP+ncbTu8+04JCBAkifpv42lrqa4/B9PXRlOPjCv4p2pg== X-Received: by 2002:a05:6e02:b42:b0:375:8fb7:7a32 with SMTP id e9e14a558f8ab-375e0fe2c57mr145640765ab.29.1718649225196; Mon, 17 Jun 2024 11:33:45 -0700 (PDT) Received: from mutt-hbsd ([184.99.37.29]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-375d86bf5c8sm18324905ab.51.2024.06.17.11.33.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 11:33:44 -0700 (PDT) Date: Mon, 17 Jun 2024 18:33:44 +0000 From: Shawn Webb To: Ed Maste Cc: FreeBSD Current Subject: Re: Heads-up: ifconfig address without a mask/width to become an error Message-ID: X-Operating-System: FreeBSD mutt-hbsd 15.0-CURRENT-HBSD FreeBSD 15.0-CURRENT-HBSD X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="trxhggq75bjp7vod" Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- 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-Rspamd-Queue-Id: 4W2z6f36t8z4DdS --trxhggq75bjp7vod Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 17, 2024 at 10:54:29AM -0400, Ed Maste wrote: > It is currently possible to specify an IPv4 address without a > netmask/width to ifconfig or in rc.conf, e.g.: >=20 > ifconfig_igb0=3D"192.168.0.2" >=20 > phk recently discovered[1] that ifconfig chose a poor netmask/width > when none was specified. This was not an intentional change in > defaults but rather a bug that has now been fixed by grembo@, in > commit 8a9f0fa42b1c and merged to stable/14 in 048ad7a9ef9f. The fix > will be in FreeBSD 14.2. I am unsure if there will be an EN update for > 14.0/14.1. The bug does not exist in FreeBSD 13.x. >=20 > Specifying an IPv4 address without a mask/width has been deprecated > since the deprecation of classful addressing. As of FreeBSD 13.1 > ifconfig has emitted a warning when no mask/width is specified, and > the intent was to make it an error after a sufficient amount of time > passed. >=20 > I've opened a Phabricator review[2] for ifconfig to change the warning > into an error. I included a link to the review in phk's thread, and > asked for input on timing for landing the change. As there seems to be > consensus to include this change in FreeBSD 15.0 I plan to commit it > soon and am sending this note to increase the visibility of the > upcoming change. >=20 > This will be prominently noted in the 15.0 release notes, and should > be mentioned in release notes for upcoming 13.x and 14.x releases. Hey Ed, I hope I don't sound pathetically verbose here, but I just wanted to make sure to remove any sense of ambiguity. Would the "netmask " option still work? For example: # ifconfig em0 inet 192.168.0.1 netmask 255.255.255.0 I suspect the answer is "yes". Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD 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 --trxhggq75bjp7vod Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmZwgYgACgkQ/y5nonf4 4fpWag//R94G1dIMVguw1kJ7xjZTPGGXDpaPFDGQojfcqTP0e5iH2QeFEvNwOM5W gDGQRaf9rk5/gepcujxjvYQBSC5p80+Ykf3rWTgRvjnq70LWYbkCziIwcAtnlybE 0uWuabYaXPcNaL1dv2ADWeMLWQGmM/keS9DY/7jN2hsFY94AUkl2dpush6Fx8/i5 gyDrzTfbSptZjXQnXOE9yKpuGUPbJz2bDHIDNrxBzfQUxiyKN5sHvah3yfsnMUGo 7N8DoHuCpMeRfSnUSgnN1lHfXkqWgN1uWb+WPOLSZqm9uv9Nn7mZkIY/efUSwDtn EcGeJ4y4hcPin0sBsA9mcOimekMjfSE5yYudgpviTccfEgPltQB/bnn0pqt5UYj9 iB+k8lfbq7tvbqeHfd5+WEFc+G9Qx1Wkucz89HoCrcfqNXGWuiebo1cJygJrMcs1 TxR+tDn7kfliCCklcg6nk7Jk4q8QCl7MOfxNI6wwPq0b2tiSsWiK1YnnMPM8lEYB knAFAPact4A18fbnyabfh3U6SR9OCoutlD732Qv2njfpH7q2e4XQgwLbwvVRCAYy weU9uw8P+bGSWksQAIg1c5V74aRahfkoNcYc+aKXcolMvFh4xRgOPTbdybPMVoI5 17qOX3UBtZQVQw4jld6Q56AZbpxx15iYHGabTzIcrTvJ0fXxy98= =bjH4 -----END PGP SIGNATURE----- --trxhggq75bjp7vod--