From owner-freebsd-ipfw@FreeBSD.ORG Sat Sep 24 13:10:03 2011 Return-Path: Delivered-To: freebsd-ipfw@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D1161065670 for ; Sat, 24 Sep 2011 13:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 67FCC8FC12 for ; Sat, 24 Sep 2011 13:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8ODA332066390 for ; Sat, 24 Sep 2011 13:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8ODA3b5066389; Sat, 24 Sep 2011 13:10:03 GMT (envelope-from gnats) Date: Sat, 24 Sep 2011 13:10:03 GMT Message-Id: <201109241310.p8ODA3b5066389@freefall.freebsd.org> To: freebsd-ipfw@FreeBSD.org From: Ryan Steinmetz Cc: Subject: Re: bin/104921: [patch] ipfw(8) sometimes treats ipv6 input as ipv4 (another variation on PR 91245) X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ryan Steinmetz List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2011 13:10:03 -0000 The following reply was made to PR bin/104921; it has been noted by GNATS. From: Ryan Steinmetz To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/104921: [patch] ipfw(8) sometimes treats ipv6 input as ipv4 (another variation on PR 91245) Date: Sat, 24 Sep 2011 08:42:20 -0400 I can confirm this issue also exists on 8.2 as of today. It appears as if ipfw is incorrectly assuming that an IPv6 address is an invalid IPv4 address with a mask. For example: 2001:1:2:3::4,2001:1:2:3::5 is treated as an IPv4 address of 2001 with a mask of 1:2:3::4 (as if it were specified as 1.2.3.4:255.255.255.0). Specifying the IPv6 address without the comma results in a successful rule being created. -- Ryan Steinmetz PGP: EF36 D45A 5CA9 28B1 A550 18CD A43C D111 7AD7 FAF2