From owner-freebsd-net@freebsd.org Mon Sep 3 07:02:41 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2293FE04C0 for ; Mon, 3 Sep 2018 07:02:41 +0000 (UTC) (envelope-from run00er@gmail.com) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 36E6178136 for ; Mon, 3 Sep 2018 07:02:41 +0000 (UTC) (envelope-from run00er@gmail.com) Received: by mail-lf1-x12b.google.com with SMTP id v77-v6so4715309lfa.6 for ; Mon, 03 Sep 2018 00:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=Kdly3onh5ZjtrYT23t+L6PKu180cCDdtNhTSZon1cvc=; b=V7zVQA24TDT4jA4nzH5iPtXyo8rZSGUNIOBa+3zvh3V6N+lUHYTePecORBpF9YiaKf nidEuiiv/4IkVepKGnT2u88FWGi8eWw0hIif06GTAy6+p5A4G4zqSg42XpDhFQeLvCz3 xB82taRzbskOPBTmH7KAeui0WZsxR23R+1Sc4WkXg4vh1hAU1p/84pf1HlqBcHMx5UEw r2dfHg8tXGFk7VW/p+vHKejUGFkNjaK76ttccOYPy/tw+4B1/MPzaZQC3W/rc7EFiXBB 1Lcun4OtLTrAsTbD4VxLhrR7waLyrFKkjJICHX3cAMU+Z4GGorQyxuRC4LZpW7AgD584 77Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=Kdly3onh5ZjtrYT23t+L6PKu180cCDdtNhTSZon1cvc=; b=jWTUVwAxQ/ryJYHEft4ZtxK2xS+9PKvsPK/bl2WiPy2gnAC0UkOpv5Yb3fnbNH8eF9 kazbH45Apqy6AbAtUoF1jsYPXFBEQJ5MPm0IEu5I2iyBn9RNR9sheClcr7eN0wRW9Nzf 7AIirScih/jOJJN//fhHIcAKLMthSGPi5rFimyPUQe0d9gu1CIgrj+K2xID/KMrUTkZc KSJ/R/PQG8+Wgq/blxss+pShp/rIT9r7wz07sgZeIP1XyWE2aFgn9Igh4hChhXDj33CY eDayxp4a08z0FU6o2YJQZEKGwMhX7Aw5Y8+CjOQNjNIwes42XxQIHh95MOBZT8qrAYNm xtuA== X-Gm-Message-State: APzg51CrT1izj+QTCSRQ4/eT0YgkhDDMvUsI2nKgkg4AcpXDTPNPO2hz jEBu+SY8M5DtwsB2JjqjmwGl1elx X-Google-Smtp-Source: ANB0VdbosRkSTpvOsyg8gsSunvYRinEMyRoeI+bZHgt4JQCoDENvICxLDPI29bjOSnaTXAVIvI4FyQ== X-Received: by 2002:a19:2287:: with SMTP id i129-v6mr16372577lfi.20.1535958159505; Mon, 03 Sep 2018 00:02:39 -0700 (PDT) Received: from [10.0.0.59] ([193.111.156.141]) by smtp.gmail.com with ESMTPSA id x20-v6sm3361754lfi.8.2018.09.03.00.02.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 00:02:38 -0700 (PDT) To: freebsd-net@freebsd.org From: Runer Subject: Ipfw fwd with route(8) RTF_BLACKHOLE and fast forwarding on FreeBSD 11 Message-ID: <99f99bf0-59ef-11e7-d1a4-c34a40492308@gmail.com> Date: Mon, 3 Sep 2018 10:02:37 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Language: ru Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2018 07:02:41 -0000 *Hello Community! A situation has arisen in which ipfw fwd stops working when RTF_BLACKHOLE or RTF_REJECT, ROUTE (8), is enabled on Freebsd 11 release. ** FreeBSD 11.2-RELEASE-p1 route add default 127.0.0.1 -blackhole –iface ipfw show00100 30 4056 fwd 10.0.0.5 ip from table(1) to not 10.0.0.0/8 in via em0 The packet counter changes, but forwarding does not work.On FreeBSD 10 everything works fine. I suppose this is due to changes to forwarding -> fast forwarding by default in FreeBSD 11 and man ROUTE (8), “BUGS - unless IP fast forwarding is enabled, in which case the meaning of the flag will always be honored.” I want to know if it's possible to implement the work ipfw fwd together with RTF_BLACKHOLE on FreeBSD 11 as before in FreeBSD 10? Thank you in advance! ***