Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2023 10:40:43 +0000
From:      Benoit Chesneau <benoitc@enki-multimedia.eu>
To:        Alexander Chernikov <melifaro@FreeBSD.org>
Cc:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   Re: can't add a /24 blackhole route with a /32 loopback
Message-ID:  <JwbosyfjgGLW90NQ4X4eGBlw3R733HYvveuYsRZMfc20rcyRoMzssroz2yxwIkYw6qsSErVlFUlQzUYl4MQg3DigK03FlyUGzLB3yVMBRS4=@enki-multimedia.eu>
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> <t_gT66nRcCT4fte7HbEMcM6J2spH-rEGFNYtZqX0GsUlxW4R5_pEVx3ZqtAwphKT4UBZsGZKX9gxeym1SKdc5GmceXGy1rRYEnSU1X6-_8c=@enki-multimedia.eu> <sgx1BljfJfV-Bn0PlfJ0va7yWHE9QraHpTjPBB6jlJWq4aehFwihem8C8f3ikkjvdEGIYY15S3ppTkQpWDfR3LDi_IKewBg7XQ1v9_u3SC4=@enki-multimedia.eu> <5747CC08-6903-4E2F-B0A5-D0CAB08F8165@FreeBSD.org> <0C23EFD2-1535-46B0-9E69-93D58B376CC3@FreeBSD.org> <U2t98l4c8iB0VFmMFD9ET2Qd-xAeybUqjfNmvBPjEA5OBWiSpLdBRT9Ci6GHqryyLo8JJVnV4rMqNFvWiOKv-_6DkeVcpOTmf6c7HRAA-Qk=@enki-multimedia.eu> <WjecIjlFU9R_pRXbSj-GUxyI_O45IsDQg8tVTLo9E4BdyMUAzjSYsKtaBpewzCCv9JjWkWDkIYaW3Qm9ge3Jd10hyO-pckdRri5dWoPM7uU=@enki-multimedia.eu> <785732C7-A6B2-4039-A9E2-6AC3DCD97618@FreeBSD.org>

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


------- Original Message -------
On Wednesday, June 14th, 2023 at 12:36, Alexander Chernikov <melifaro@FreeB=
SD.org> 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



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