From nobody Wed Jun 12 12:40:26 2024 X-Original-To: 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 4VzlWK0wpKz5M95m for ; Wed, 12 Jun 2024 12:40:29 +0000 (UTC) (envelope-from SRS0=uYUV=NO=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 4VzlWJ5v9Jz42n6 for ; Wed, 12 Jun 2024 12:40:28 +0000 (UTC) (envelope-from SRS0=uYUV=NO=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Wed, 12 Jun 2024 14:40:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1718196026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lDGNu1RYPZx5JVTGvnQlok5gwHN8VgcIv9MVIzyIyc0=; b=bA/C2r/pBTHYRP46TDBiPPs3yzosyrtkMEaV5wgZAZadiY+/t7M4AlksXG3MTvbPa7UDe+ YLkvz1d/j9fbbBc53WqDYrNPEc3OLAf2AAU4Hqua3sfxcVRgKT1J4reO8JUmKb5fTWBjMY rKbkG9aBP+jyCtx1B9AxUrzGu/lNyCcOHHSj2a0InyQToMt5jtx5Myw8wdgZDPqPG3NjpP n9kcQTfE6jMjBmEAFILI/809lIsHWelcFkZVZwe7I067XZGpXE6t2V2N2WD7HxHFSQI90l /gXT+oN5JQTvxB8DDbHR2ybFCZuzrTsChmUX6O/EX+jpSRXaryOSL8t61tVKJA== From: Ronald Klop To: Poul-Henning Kamp Cc: current@freebsd.org Message-ID: <194188316.10234.1718196026321@localhost> In-Reply-To: <202406121039.45CAdal6010274@critter.freebsd.dk> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> <202406121039.45CAdal6010274@critter.freebsd.dk> Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out 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/alternative; boundary="----=_Part_10233_1888345337.1718196026318" X-Mailer: Realworks (705.87) Importance: Normal X-Priority: 3 (Normal) 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:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4VzlWJ5v9Jz42n6 ------=_Part_10233_1888345337.1718196026318 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Poul-Henning Kamp Datum: woensdag, 12 juni 2024 12:39 Aan: Ronald Klop CC: current@freebsd.org Onderwerp: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out > > Ronald Klop writes: > > > What do you thing about defaulting to /32 on a missing netmask? > > An interface with 1 IP address without any information about the network. All traffic can go to the gateway. > > I dont think that will work ? > > The gateway will not be inside any of the attached networks, so you have no route to it ? > > Poul-Henning > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > > > Ai. Of course. Typed quicker than I was thinking. :-) Well. Then it is maybe best to just error out on boot with a misconfigured network. Or revert back to the pre-14.1 behavior because of POLA. I'll leave it up to you and will make sure I configure my interfaces with a netmask. Regards, Ronald. ------=_Part_10233_1888345337.1718196026318 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Van: Poul-Henning Kamp <phk@phk.freebsd.dk>
Datum: woensdag, 12 juni 2024 12:39
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: current@freebsd.org
Onderwerp: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

Ronald Klop writes:

> What do you thing about defaulting to /32 on a missing netmask?
> An interface with 1 IP address without any information about the network. All traffic can go to the gateway.

I dont think that will work ?

The gateway will not be inside any of the attached networks, so you have no route to it ?

Poul-Henning

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


Ai. Of course. Typed quicker than I was thinking. :-)

Well. Then it is maybe best to just error out on boot with a misconfigured network. Or revert back to the pre-14.1 behavior because of POLA.
I'll leave it up to you and will make sure I configure my interfaces with a netmask.

Regards,
Ronald.
  ------=_Part_10233_1888345337.1718196026318--