From nobody Wed Jun 14 09:06:11 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 4Qh00L1JVpz4d1T5 for ; Wed, 14 Jun 2023 09:06:26 +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) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qh00K6GDXz3jMQ for ; Wed, 14 Jun 2023 09:06:25 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Authentication-Results: mx1.freebsd.org; none Date: Wed, 14 Jun 2023 09:06:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enki-multimedia.eu; s=protonmail3; t=1686733583; x=1686992783; bh=wbkoS5xdiwRbC70+TAoEAdPgrSIcZtbQcAQuqHFPMMo=; 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=PzkituPO+plVxdDAT+wsC3aVxLeEykeonzZt/r0jWRhKX6YRBT6N1atyIr8iE39Ua 43uN87PXqW8Ejrf4ehWferfiQRV4qtFJ4iRCO4rs889Vb4pmGwB/nt9kgqXGjSTdRd jT3Jaep5EpxLimFfmLGIg8NMTeVUriesl9/HiYgYthZ3p6TsA/p8yhzmI5IYSHcFrA fC/AKnuSdRYqZe3BEotE2ceqn8GuL89WK8xFaS9epeijnz0qGD2GQnJw7xOWqzhCDd j8SdfnNWV8+pHduVbn1jNsxfp3OaJZR4CGHLCXNmkEZYE5DxTiIWibFfRikna4EeuT aR06lSJp4zjnA== To: Benoit Chesneau From: Benoit Chesneau Cc: Alexander Chernikov , "freebsd-net@FreeBSD.org" Subject: Re: can't add a /24 blackhole route with a /32 loopback Message-ID: In-Reply-To: References: <9Jh8lSg93tjEc0-UEU3MQkGuQc7R9Aht0NBt4kEr6-wtgMdf673nws_jGaHelYwz0U78ik2BM4WLUca2JZAjrX-WSbP5QS4rsvoBHZo_JZo=@enki-multimedia.eu> <4DF565CC-D8AE-4F35-A7CF-7ED5AAD27B49@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: 4Qh00K6GDXz3jMQ 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 I forgot oto add the error message , sorry.=20 When I try to set the theblackhole flag I get the following error: ``` route: writing to routing socket: Operation not supported change net 1.1.1.0 fib 0: Operation not supported ``` ------- Original Message ------- On Wednesday, June 14th, 2023 at 10:38, Benoit Chesneau wrote: > Hi, >=20 > Thanks for your answer. I'm using Freebsd 13.2 latest version: >=20 > $ uname -srm > FreeBSD 13.2-RELEASE amd64 >=20 > I edited the filtred result of the table since it has a full view: >=20 > netstat -4rnW |grep -e "1.1.1" > 1.1.1.0/24 127.0.0.1 USB 14 16384 lo0 > 1.1.1.1 link#9 UHS 26 16384 lo1 > 1.1.1.2 10.3.1.1 UGH1 15 9000 vlan2212 > 1.1.1.2 10.3.1.1 UGHS 16 1500 vlan2212 > 1.1.1.2 10.3.1.1 UGHS 25 9000 vlan2212 >=20 >=20 > Also I forgot to mention that the ethernet driver is MLX4EN(4): >=20 > mlx4_core0@pci0:8:0:0: class=3D0x028000 rev=3D0x00 hdr=3D0x00 vendor=3D0x= 15b3 device=3D0x1007 subvendor=3D0x103c subdevice=3D0x22f3 > vendor =3D 'Mellanox Technologies' > device =3D 'MT27520 Family [ConnectX-3 Pro]' > class =3D network > Corrected =3D Advisory Non-Fatal Error >=20 >=20 >=20 > Hope it helps, >=20 >=20 > Beno=C3=AEt > ------- Original Message ------- > On Wednesday, June 14th, 2023 at 10:29, Alexander Chernikov melifaro@Free= BSD.org wrote: >=20 >=20 >=20 > > > On 14 Jun 2023, at 07:05, Benoit Chesneau benoitc@enki-multimedia.eu = wrote: > > >=20 > > > Hi, > > >=20 > > > When I setup a loopback to a /32 , I can add a /24 as a blackhole rou= te anymore. I can only create a /24 attached to this looopback. Ie. > >=20 > > Could you add a bit more context? > > What is the FreeBSD version (uname -srm)? > > What does 'route add 1.1.1.0/24 -blackhole=E2=80=99 show? > > Could you also share netstat -4rnW and ifconfig output (maybe privately= )? > >=20 > > > when `lo1` is set to `1.1.1.1/32` I cant create a blackhole route to = `1.1.1.0/24` using the command : `route add 1.1.1.0/24 -blackhole` . Is the= re any reason for it? The idea is to be able to advertise the prefix `1.1.1= .0/24` via BGP (bird) and use 1.1.1.1/32` as a loopback distributed to othe= r nodes using OSPF. I can probably make the loopback a /24 used by bird but= what would be the other way to do it? > > >=20 > > > Beno=C3=AEt