From nobody Wed Jun 14 10:18:37 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 4Qh1bm2vB4z4dZZ9 for ; Wed, 14 Jun 2023 10:18:44 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) (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 4Qh1bm22hQz49Tp for ; Wed, 14 Jun 2023 10:18:44 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Authentication-Results: mx1.freebsd.org; none Date: Wed, 14 Jun 2023 10:18:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enki-multimedia.eu; s=protonmail3; t=1686737921; x=1686997121; bh=LP9JLPSyvdeNKw4DOQyp67zszeXGucDlnVuydjgVDN0=; 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=jPwhvx4xskM1XHN3J/Pg8AEg29bCPZ2zbDnY/WBeVZrHcx1DO9/++2wqMral+lyU7 ksA2LMu9ZD2QhB7U3KCkZIfl/c+tfuCM3+iLAPhCM3uiIelW33uobu5boln5YbMMrn oz5hX3kQTKH+gIdpyclfC9dLIBNKyVtz45GJj23sqgjhnzdX0eibaey/DxdmVEtSdA o42czCQMC4z6tr5RxJgsnJOFDKLGGnSr/r3GyoyJav+Ffj8HwGY4uReOM8XtQtUoOJ dJCT2ekp8reBI1hYgItqNU5qbTBnETncjUINcZ+/YxNNRgP03mDqCjMC5O3Q1i2Bqr BpPIRksENmyoA== 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: <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> <0C23EFD2-1535-46B0-9E69-93D58B376CC3@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: 4Qh1bm22hQz49Tp 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 11:56, Alexander Chernikov wrote: > 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` > 8) provide the output for `route add -net 1.1.1.0/24 -blackhole` >=20 Find the result below. Such thing worked on another machine, I am not sure = why. No obvious logs. ``` # route -n get 1.1.1.0/24 route to: 1.1.1.0 destination: 1.1.1.0 mask: 255.255.255.0 fib: 0 interface: lo1 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 16384 1 0 # route -n get 1.1.1.1/32 route to: 1.1.1.1 destination: 1.1.1.1 gateway: 10.3.1.2 fib: 0 interface: vlan212 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 9000 1 0 # route delete 1.1.1.0/24 delete net 1.1.1.0 # route -n get 1.1.1.1/32 route: route has not been found # ifconfig lo1 inet 1.1.1.1/32 # route -n get 1.1.1.1/32 route to: 1.1.1.1 destination: 1.1.1.1 fib: 0 interface: lo1 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 16384 1 0 # route add -net 1.1.1.0/24 -blackhole route: writing to routing socket: Operation not supported add net 1.1.1.0 fib 0: Operation not supported # route -n get 1.1.1.0/24 route: route has not been found ```