From nobody Wed Jun 14 09:56:57 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 4Qh16t1rsCz4dNXp for ; Wed, 14 Jun 2023 09:57:10 +0000 (UTC) (envelope-from melifaro@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qh16t1Kc3z43mx; Wed, 14 Jun 2023 09:57:10 +0000 (UTC) (envelope-from melifaro@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686736630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8TjFg8x21vlg/1lNJVt42x0KDdF60sd7QcmWprJDg8U=; b=PYnudGqOH8CFPkS/blY2Do4/I8kGokxjCaNeTXdReDLicqIbr2NAfWlYvpemdzPMrxV+aK QzQ4UYtKcZoCdtzsjhLwOp5AaoxNsj8ZMNt1yjPw8hd2u5iq4EltlyFhhFSprq0DH1cUfA c1lhX+G5OXMJhu5pWBXXSpg/CcOPKAtoG5BOYF5R8dcrpOukWYGOIzrI3ki5NbzcQAF/fc lqHN70GtvqZnZ1oR0kEFbMDNujUZ2kytIwORECPd25yTlHUPB0ZqFtTZ0I6B+j+pFRXwd1 vzQfcWf5BjdiunXFKynY1/kuGG2HgQmIKI6/Bi/Aj2P5+TH8ANpdBcAOrsOf4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686736630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8TjFg8x21vlg/1lNJVt42x0KDdF60sd7QcmWprJDg8U=; b=G8LXRUmFjewS37AxOvdBTxI9kQJGln/HNrF0kNcw4ToxX5ZCoztBL/s1ZS0rU8djfZowiW xdkGsCQt70pYuWCaylGDBmhck75BV/7WihRWuIKN5k2zX0x9V2mB8wfYVV8xMFFxbw4xLL izp6FeOsdNMpdTloFQMpu5HGl7Sii2QmPWJGHVhkszsjfQW94VZlPxFBVszRSmlvjoUo3Z yyS5mspHiwP1X5uz4ASDqRXq1PAj6LymLpe7G7ZNfGVFxT5W4gHblAj3jmRNXqLjOGLVun E1B7j7qPC6RnSko5MrnZ/5gY1mYYEfi12F+qiOOD+8R1gIKXk2+azF4CLWsBcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686736630; a=rsa-sha256; cv=none; b=ntwb68vOW0V20Q/+iQelArIaWOZ5ljz0o8rF5GmgKuhSMPdNZHCgStuheXxxbbVLpXt9ZA n+uW11uZgJbBVUXrNfA+/fBU4SyMgb3Qsu2LQAomQQSD8FiAizUF+qj72aR7o26M42i15C NltMyZ8U+P9BNlFicmxVLvqsj75JVrI96ynN0ctxogKXvj+42HcIWxXMjHDGNl9qiG5l3t 8Kw13zF5X4P0pLopxr/MgL0JOAzLb+rydlVS5HiTwsZqPUzVlbHVCYj7TL3CpQUclsgJKB 5f4JSc3+poUuggRKOZ0nttRfbFg7kKIF2127KhpH7WX+5H+iceI96/VDZGDvCQ== Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com [66.111.4.228]) (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 did not present a certificate) (Authenticated sender: melifaro/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Qh16t0Bm8zHgK; Wed, 14 Jun 2023 09:57:10 +0000 (UTC) (envelope-from melifaro@freebsd.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id F0C9027C005C; Wed, 14 Jun 2023 05:57:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 14 Jun 2023 05:57:08 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvtddgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpeetlhgv gigrnhguvghrucevhhgvrhhnihhkohhvuceomhgvlhhifhgrrhhosefhrhgvvgeuufffrd horhhgqeenucggtffrrghtthgvrhhnpeekgeevheejvedthefgfefhhefghedtveefveej teegffdtueetveekudfgieegffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehmvgdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidq udefvdelvdduvdefvddqvdelfeeiuddtgeekqdhmvghlihhfrghroheppehfrhgvvggssh gurdhorhhgsehmphhlshdrihgv X-ME-Proxy: Feedback-ID: i02494642:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 Jun 2023 05:57:08 -0400 (EDT) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: can't add a /24 blackhole route with a /32 loopback From: Alexander Chernikov In-Reply-To: <5747CC08-6903-4E2F-B0A5-D0CAB08F8165@FreeBSD.org> Date: Wed, 14 Jun 2023 10:56:57 +0100 Cc: "freebsd-net@FreeBSD.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0C23EFD2-1535-46B0-9E69-93D58B376CC3@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> To: Benoit Chesneau X-Mailer: Apple Mail (2.3731.600.7) X-ThisMailContainsUnwantedMimeParts: N > On 14 Jun 2023, at 10:42, Alexander Chernikov = wrote: >=20 >=20 >=20 >> On 14 Jun 2023, at 10:06, Benoit Chesneau = wrote: >>=20 >> I forgot oto add the error message , sorry.=20 >>=20 >> When I try to set the theblackhole flag I get the following error: >>=20 >> ``` >> route: writing to routing socket: Operation not supported >> change net 1.1.1.0 fib 0: Operation not supported >> ``` This looks like a route change request. Could you share the command as = well? > Interesting. Could you also share full ifconfig output or at least = ifconfig for each of the loopbacks? > If the output contains something you=E2=80=99re not comfortable = sharing in the ML, you could consider sending it directly to my email. >>> 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 ^^ I see both the blackhole route and the loopback /32 here. Could you try: 1) removing the 1.1.1.0/24 route 2) removing the 1.1.1.1/32 from the lo1 3) provide the output for `route -n get 1.1.1.0/24` 4) provide the output for `route -n get 1.1.1.1/32` 5) assign 1.1.1.1/32 to lo1 6) provide the output for `route -n get 1.1.1.0/24` 7) provide the output for `route -n get 1.1.1.1/32`=20 8) provide the output for `route add -net 1.1.1.0/24 -blackhole` >>=20 >>=20 >> ------- Original Message ------- >> On Wednesday, June 14th, 2023 at 10:38, Benoit Chesneau = wrote: >>=20 >>=20 >>> 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=3D0x15b3 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@FreeBSD.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 = route 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 there 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 other 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 >=20