Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Chris
On 2024-06-12 00:47, Poul-Henning Kamp wrote: I had a machine with this line in /etc/rc.conf: ifconfig_bla0="192.168.87.11" I found out the hard way, that this defaults to /8 now. The main symptom was that DNS was /really/ busted, which makes sense when none of the DNS servers in the 1

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Ed Maste
On Wed, 12 Jun 2024 at 12:16, Michael Gmelin wrote: > > So this is simply a bug. > > I opened a code review request to fix this: > https://reviews.freebsd.org/D45570 Thank you. An EN for 14.0 and 14.1 (as suggested in your review) is certainly warranted. As for the path forward, what do folks th

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Michael Gmelin
On Wed, 12 Jun 2024 15:35:58 + "Poul-Henning Kamp" wrote: > > Michael Gmelin writes: > > > @phk From which version did you upgrade? > > To be totally honest: I'm not entirely sure. Probably 13.x > @Bjoern I checked again, I'm pretty sure the problem was introduced in https:

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Poul-Henning Kamp
Michael Gmelin writes: > @phk From which version did you upgrade? To be totally honest: I'm not entirely sure. Probably 13.x -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Michael Gmelin
On Wed, 12 Jun 2024 15:11:14 + (UTC) "Bjoern A. Zeeb" wrote: > On Wed, 12 Jun 2024, Bjoern A. Zeeb wrote: > > > On Wed, 12 Jun 2024, Michael Gmelin wrote: > > > >> > >> > >> On Wed, 12 Jun 2024 14:36:35 + > >> "Poul-Henning Kamp" wrote: > >> > >>> > >>> Bjoern A. Zeeb

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Bjoern A. Zeeb
On Wed, 12 Jun 2024, Bjoern A. Zeeb wrote: On Wed, 12 Jun 2024, Michael Gmelin wrote: On Wed, 12 Jun 2024 14:36:35 + "Poul-Henning Kamp" wrote: Bjoern A. Zeeb writes: I had a machine with this line in /etc/rc.conf: ifconfig_bla0="192.168.87.11" I found out the har

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Bjoern A. Zeeb
On Wed, 12 Jun 2024, Michael Gmelin wrote: On Wed, 12 Jun 2024 14:36:35 + "Poul-Henning Kamp" wrote: Bjoern A. Zeeb writes: I had a machine with this line in /etc/rc.conf: ifconfig_bla0="192.168.87.11" I found out the hard way, that this defaults to /8 now. Did yo

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Michael Gmelin
On Wed, 12 Jun 2024 14:36:35 + "Poul-Henning Kamp" wrote: > > Bjoern A. Zeeb writes: > > > > I had a machine with this line in /etc/rc.conf: > > > > > > ifconfig_bla0="192.168.87.11" > > > > > > I found out the hard way, that this defaults to /8 now. > > > > Did you track it

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Poul-Henning Kamp
Rodney W. Grimes writes: > *Stomps off my soap box, hands phk a bandaid for the bite mark (always, > always specify critical values even if they are the default), and > retreats to the background* /me hands Rod a glass of lemonade: "It's OK, you're welcome on my lawn :-)" -- Poul-Henni

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Rodney W. Grimes
> > Michael Gmelin writes: > > > You can do an interface route hack > > I think you misunderstand the situation. > > We are talking about people who have /etc/rc.conf files which relied > on how default netmasks have worked for nearly three decades, > > Now that we have changed that de

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Poul-Henning Kamp
Bjoern A. Zeeb writes: > > I had a machine with this line in /etc/rc.conf: > > > > ifconfig_bla0="192.168.87.11" > > > > I found out the hard way, that this defaults to /8 now. > > Did you track it down to a specific change? I.e. is this > ifconfig/netlink or the old kernel change fr

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Bjoern A. Zeeb
On Wed, 12 Jun 2024, Poul-Henning Kamp wrote: I had a machine with this line in /etc/rc.conf: ifconfig_bla0="192.168.87.11" I found out the hard way, that this defaults to /8 now. Did you track it down to a specific change? I.e. is this ifconfig/netlink or the old kernel change from

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Bob Bishop
Hi, > On 12 Jun 2024, at 12:28, Poul-Henning Kamp wrote: > > Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense ever. +1 -- Bob Bishop r...@gid.co.uk

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Ronald Klop
Van: Poul-Henning Kamp Datum: woensdag, 12 juni 2024 12:39 Aan: Ronald Klop CC: curr...@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 I

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Michael Gmelin
On Wed, 12 Jun 2024 11:28:38 + "Poul-Henning Kamp" wrote: > > Michael Gmelin writes: > > > You can do an interface route hack > > I think you misunderstand the situation. I completely understand the situation and I can feel your pain, I just wanted to throw in how to reach th

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Poul-Henning Kamp
Michael Gmelin writes: > You can do an interface route hack I think you misunderstand the situation. We are talking about people who have /etc/rc.conf files which relied on how default netmasks have worked for nearly three decades, Now that we have changed that default, many of them wi

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Michael Gmelin
On Wed, 12 Jun 2024 10:39:36 + "Poul-Henning Kamp" wrote: > 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 tha

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Poul-Henning Kamp
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

Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Ronald Klop
Van: Poul-Henning Kamp Datum: woensdag, 12 juni 2024 09:47 Aan: curr...@freebsd.org Onderwerp: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out I had a machine with this line in /etc/rc.conf: ifconfig_bla0="192.168.87.11" I found out the hard way, that this defaults to

14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

2024-06-12 Thread Poul-Henning Kamp
I had a machine with this line in /etc/rc.conf: ifconfig_bla0="192.168.87.11" I found out the hard way, that this defaults to /8 now. The main symptom was that DNS was /really/ busted, which makes sense when none of the DNS servers in the 192/8 "swamp" can be reached. Since we all know