From nobody Wed Jun 14 10:40:43 2023 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 4Qh25P23vPz4dlLk for ; Wed, 14 Jun 2023 10:40:57 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qh25P1HWqz4KS0; Wed, 14 Jun 2023 10:40:57 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Authentication-Results: mx1.freebsd.org; none Date: Wed, 14 Jun 2023 10:40:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enki-multimedia.eu; s=protonmail3; t=1686739254; x=1686998454; bh=fN2datpTyYVylFGETHmJztyHgPc9xs1X+qWTUrRxMXo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Z4DaDmSWHqmq76hFY/l1aS8hnIz4zmzoOjE6c3wvBPiCkVeHIJKpX9J7mI5Y4R2cQ uHrhJqtrEYYxMQJGP6WVLeXb8aGBw6J0pSHAVcxVZlsTMh+y2txUaJ0SxMdmHpWLsE wstS5uXOOe+Z4zilFSpP3AAS0KCuK8cG8ukktv6DXPCTW7BrlunWfVIj3895l1ztfY qagUcI6VBo/UJ2obZwasDsp1ZOrNyVj05L5VjHdtg2CPK4PJmVJtQaE6zQ9tZA6fMi GtlJqaq5X0zpvq6fvvW3SmOxIH1frn9Q91+Icu3SaOqt4x8Qubs4ySYApCEo/Z9bPn 4FJ38GX/3MSwQ== To: Alexander Chernikov From: Benoit Chesneau Cc: "freebsd-net@FreeBSD.org" Subject: Re: can't add a /24 blackhole route with a /32 loopback Message-ID: In-Reply-To: <785732C7-A6B2-4039-A9E2-6AC3DCD97618@FreeBSD.org> References: <9Jh8lSg93tjEc0-UEU3MQkGuQc7R9Aht0NBt4kEr6-wtgMdf673nws_jGaHelYwz0U78ik2BM4WLUca2JZAjrX-WSbP5QS4rsvoBHZo_JZo=@enki-multimedia.eu> <4DF565CC-D8AE-4F35-A7CF-7ED5AAD27B49@FreeBSD.org> <5747CC08-6903-4E2F-B0A5-D0CAB08F8165@FreeBSD.org> <0C23EFD2-1535-46B0-9E69-93D58B376CC3@FreeBSD.org> <785732C7-A6B2-4039-A9E2-6AC3DCD97618@FreeBSD.org> Feedback-ID: 9066678:user:proton 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: quoted-printable X-Rspamd-Queue-Id: 4Qh25P1HWqz4KS0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:62371, ipnet:185.70.43.0/24, country:CH] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N ------- Original Message ------- On Wednesday, June 14th, 2023 at 12:36, Alexander Chernikov wrote: > > On 14 Jun 2023, at 11:26, Benoit Chesneau benoitc@enki-multimedia.eu wr= ote: > >=20 > > I found an interresting log in dmesg (see below). Not sure how it can h= appens. > >=20 > > Could it be related to the usage of bird? > >=20 > > The log: > >=20 > > `[rtsock] fill_blackholeinfo: PID 72835: Unable to find ifa for blackho= le/reject nhop [rtsock] fill_blackholeinfo: PID 72837: Unable to find ifa f= or blackhole/reject nhop [rtsock] fill_blackholeinfo: PID 72838: Unable to = find ifa for blackhole/reject nhop [rtsock] fill_blackholeinfo: PID 72847: = Unable to find ifa for blackhole/reject nhop [rtsock] fill_blackholeinfo: P= ID 72854: Unable to find ifa for blackhole/reject nhop [rtsock] fill_blackh= oleinfo: PID 72860: Unable to find ifa for blackhole/reject nhop` >=20 > Not sure if that=E2=80=99s bird (it shouldn=E2=80=99t be the case), but t= hat=E2=80=99s the reason. > Every route requires some preferred source interface address by conventio= n, as the stack wants to see some non-NULL value. > For the blackhole routes, this source address is the first address from l= o0 interface. > In your case, `lo0` doesn=E2=80=99t contain any IPv4 addresses (typically= there should be 127.0.0.1 there). > Is there any reason for not having 127.0.0.1 ? >=20 oh! good catch. When localhost added it works, indeed... Thanks!=20 There ws no reason the localhost was not set. I am not sure why it has been= not set. I will investigate. Beno=C3=AEt