From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 9 00:20:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A84B9D09 for ; Sun, 9 Feb 2014 00:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 684BD1C48 for ; Sun, 9 Feb 2014 00:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s190K0U6081424 for ; Sun, 9 Feb 2014 00:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s190K0a2081423; Sun, 9 Feb 2014 00:20:00 GMT (envelope-from gnats) Resent-Date: Sun, 9 Feb 2014 00:20:00 GMT Resent-Message-Id: <201402090020.s190K0a2081423@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, Marcin Mazur Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF8E1BEB for ; Sun, 9 Feb 2014 00:14:14 +0000 (UTC) Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C93DF1C1D for ; Sun, 9 Feb 2014 00:14:14 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s190EEYa050452 for ; Sun, 9 Feb 2014 00:14:14 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s190EEJA050447; Sun, 9 Feb 2014 00:14:14 GMT (envelope-from nobody) Message-Id: <201402090014.s190EEJA050447@cgiserv.freebsd.org> Date: Sun, 9 Feb 2014 00:14:14 GMT From: Marcin Mazur To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/186570: ipfw interprets incomplete (3 octets) ip in a table as an wildcard that match whole traffic. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Feb 2014 00:20:00 -0000 >Number: 186570 >Category: kern >Synopsis: ipfw interprets incomplete (3 octets) ip in a table as an wildcard that match whole traffic. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 09 00:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Marcin Mazur >Release: 9.2 RELEASE >Organization: >Environment: FreeBSD browar.ITit.dk 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I just upgraded from 9.0 to 9.2, and lost contact to server, finally after investigation i found that ipfw interprets incomplete (3 octets) ip in a table as an wildcard that match whole traffic. >How-To-Repeat: ipfw table 4 add 1.2.3.4/24 ipfw table 4 list 1.2.3.0/24 0 ipfw table 4 add 1.2.3/24 ipfw table 4 list ::/0 0 1.2.3.0/24 0 >Fix: >Release-Note: >Audit-Trail: >Unformatted: