Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 2025 11:17:50 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        FreeBSD User <freebsd@walstatt-de.de>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
Subject:   Re: 15-STABLE: dhclient fails on em0 (Lenovo T580)
Message-ID:  <1585113262.3581.1764757070010@localhost>
In-Reply-To: <20251203101500.36545493@hermann>
References:  <20251128082630.3dbea678@hermann> <20251128110534.3987f908@hermann>	<86fr9yie5u.fsf@ltc.des.dev> <20251201132649.5aef71e8@thor.sb211.local>	<86a500hdbu.fsf@ltc.des.dev> <20251203101500.36545493@hermann>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hi,

Did you copy /etc/defaults/rc.conf to /etc/rc.conf?

AFAIK, the idea is to only override settings from /etc/defaults/rc.conf in /etc/rc.conf. My rc.conf is usually just 10 or 20 lines. Some network config and enabling some services. Like what you have in /etc/rc.conf.local.

Regards,
Ronald.

 
Van: FreeBSD User <freebsd@walstatt-de.de>
Datum: woensdag, 3 december 2025 10:15
Aan: "Dag-Erling Smørgrav" <des@FreeBSD.org>
CC: FreeBSD CURRENT <freebsd-current@freebsd.org>
Onderwerp: Re: 15-STABLE: dhclient fails on em0 (Lenovo T580)
> 
> On Tue, 02 Dec 2025 20:51:33 +0100
> Dag-Erling Smørgrav <des@FreeBSD.org> wrote:
> 
> > A FreeBSD User <freebsd@walstatt-de.de> writes:
> > > Dag-Erling Smørgrav <des@FreeBSD.org> writes:  
> > > > As a workaround, add this to /boot/loader.conf:
> > > >
> > > >     net.inet.ip.fw.default_to_accept="1"  
> > > the above "trick" doesn't help.  
> >
> > This is concerning.
> >
> > The fact that `dhclient em0` works after the firewall is up proves that
> > the firewall rules themselves are not the issue.  I therefore assumed
> > that the problem was that dhclient was trying to acquire a lease before
> > the firewall was configured.  Switching default_to_accept on should have
> > made that possible.  The fact that it doesn't means the firewall isn't
> > to blame at all.  Something else is causing dhclient not to run at boot.
> >
> > Could you please provide the output from the following command:
> >
> >     grep -r '^[^#]' /etc/rc.conf*
> >
> > Could you please also provide a log of the boot messages, if possible?
> >
> > DES
> 
> Having had a feeling that statically compiling in FIREWALL (ipw) support into
> my kernel, I tested by excluding the appropritae lines and adding the
> /boot/loader.conf.local line again allow packets by default. Result is the very
> same.
> 
> Attached you'll find the requested files.
> 
> A side note: I do etcupdate on a regular basis on all of the maintained boxes.
> 
> Kind regards,
> 
> oh
> 
> 
> 
>  

 
[-- Attachment #2 --]
<html><head></head><body>Hi,<br>
<br>
Did you copy /etc/defaults/rc.conf to /etc/rc.conf?<br>
<br>
AFAIK, the idea is to only override settings from /etc/defaults/rc.conf in /etc/rc.conf. My rc.conf is usually just 10 or 20 lines. Some network config and enabling some services. Like what you have in /etc/rc.conf.local.<br>
<br>
Regards,<br>
Ronald.<br>
<br>
&nbsp;
<p><strong>Van:</strong> FreeBSD User &lt;freebsd@walstatt-de.de&gt;<br>
<strong>Datum:</strong> woensdag, 3 december 2025 10:15<br>
<strong>Aan:</strong> "Dag-Erling Smørgrav" &lt;des@FreeBSD.org&gt;<br>
<strong>CC:</strong> FreeBSD CURRENT &lt;freebsd-current@freebsd.org&gt;<br>
<strong>Onderwerp:</strong> Re: 15-STABLE: dhclient fails on em0 (Lenovo T580)</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="MultipartMixedViewer">
<div class="MultipartMixedViewer">
<div class="TextPlainViewer" id="P.P.P1.P1">On Tue, 02 Dec 2025 20:51:33 +0100<br>
Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt; wrote:<br>
<br>
&gt; A FreeBSD User &lt;freebsd@walstatt-de.de&gt; writes:<br>
&gt; &gt; Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt; writes: &nbsp;<br>
&gt; &gt; &gt; As a workaround, add this to /boot/loader.conf:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;net.inet.ip.fw.default_to_accept="1" &nbsp;<br>
&gt; &gt; the above "trick" doesn't help. &nbsp;<br>
&gt;<br>
&gt; This is concerning.<br>
&gt;<br>
&gt; The fact that `dhclient em0` works after the firewall is up proves that<br>
&gt; the firewall rules themselves are not the issue. &nbsp;I therefore assumed<br>
&gt; that the problem was that dhclient was trying to acquire a lease before<br>
&gt; the firewall was configured. &nbsp;Switching default_to_accept on should have<br>
&gt; made that possible. &nbsp;The fact that it doesn't means the firewall isn't<br>
&gt; to blame at all. &nbsp;Something else is causing dhclient not to run at boot.<br>
&gt;<br>
&gt; Could you please provide the output from the following command:<br>
&gt;<br>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;grep -r '^[^#]' /etc/rc.conf*<br>
&gt;<br>
&gt; Could you please also provide a log of the boot messages, if possible?<br>
&gt;<br>
&gt; DES<br>
<br>
Having had a feeling that statically compiling in FIREWALL (ipw) support into<br>
my kernel, I tested by excluding the appropritae lines and adding the<br>
/boot/loader.conf.local line again allow packets by default. Result is the very<br>
same.<br>
<br>
Attached you'll find the requested files.<br>
<br>
A side note: I do etcupdate on a regular basis on all of the maintained boxes.<br>
<br>
Kind regards,<br>
<br>
oh</div>

<hr></div>

<div class="DefaultViewer">&nbsp;</div>
</div>
</div>
</blockquote>
<br>
&nbsp;</body></html>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1585113262.3581.1764757070010>