From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 16 21:30:04 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4CF2D16A407 for ; Fri, 16 Feb 2007 21:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 11A7C13C474 for ; Fri, 16 Feb 2007 21:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1GLU3YB063098 for ; Fri, 16 Feb 2007 21:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1GLU3cf063097; Fri, 16 Feb 2007 21:30:03 GMT (envelope-from gnats) Resent-Date: Fri, 16 Feb 2007 21:30:03 GMT Resent-Message-Id: <200702162130.l1GLU3cf063097@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ingo Flaschberger Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E5BD16A406 for ; Fri, 16 Feb 2007 21:23:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD1613C4B7 for ; Fri, 16 Feb 2007 21:23:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1GLNmKV040433 for ; Fri, 16 Feb 2007 21:23:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l1GLNmrZ040432; Fri, 16 Feb 2007 21:23:48 GMT (envelope-from nobody) Message-Id: <200702162123.l1GLNmrZ040432@www.freebsd.org> Date: Fri, 16 Feb 2007 21:23:48 GMT From: Ingo Flaschberger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/109246: ICMP rejects are not generated with fastforwarding enabled X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2007 21:30:04 -0000 >Number: 109246 >Category: kern >Synopsis: ICMP rejects are not generated with fastforwarding enabled >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 16 21:30:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ingo Flaschberger >Release: 6.1-RELEASE-p12 >Organization: >Environment: i386 >Description: In the routingtable is a blackhole reject route: Destination Gateway Flags Refs Use Netif Expire 192.168.0/16 127.0.0.1 UGR1 0 0 lo0 With fastforwarding disabled, a ICMP reject is generated: traceroute to 192.168.200.1 (192.168.200.1), 30 hops max, 38 byte packets 1 10.0.0.175 (10.0.0.175) 2.752 ms 0.231 ms 0.208 ms 2 10.0.0.175 (10.0.0.175) 0.224 ms !H 0.187 ms !H 0.193 ms !H With fastforwarding enabled, not: traceroute to 192.168.200.1 (192.168.200.1), 30 hops max, 38 byte packets 1 10.0.0.175 (10.0.0.175) 0.620 ms 0.214 ms 0.142 ms 2 * * * 3 * * * 4 * * * >How-To-Repeat: No problem: At the router: sysctl -w net.inet.ip.forwarding=1 route add -net 192.168.0.0/8 lo0 -reject -nostatic -proto1 At another machine: route add -net 192.168.100.0/24 gateway traceroute 192.168.101.1 Problem: At the router: sysctl -w net.inet.ip.fastforwarding=1 At another machine: traceroute 192.168.101.1 >Fix: >Release-Note: >Audit-Trail: >Unformatted: