From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 18 08:30:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7A71F980 for ; Thu, 18 Apr 2013 08:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 47E0C31D for ; Thu, 18 Apr 2013 08:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3I8U1Fp089115 for ; Thu, 18 Apr 2013 08:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3I8U1us089114; Thu, 18 Apr 2013 08:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 18 Apr 2013 08:30:01 GMT Resent-Message-Id: <201304180830.r3I8U1us089114@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, Jukka Ukkonen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CB356727 for ; Thu, 18 Apr 2013 08:22:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BBDA32D3 for ; Thu, 18 Apr 2013 08:22:43 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3I8MgUb030111 for ; Thu, 18 Apr 2013 08:22:42 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r3I8MgRg030110; Thu, 18 Apr 2013 08:22:42 GMT (envelope-from nobody) Message-Id: <201304180822.r3I8MgRg030110@red.freebsd.org> Date: Thu, 18 Apr 2013 08:22:42 GMT From: Jukka Ukkonen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/177948: ipfw fails to parse port ranges (p1-p2) for udp X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2013 08:30:01 -0000 >Number: 177948 >Category: kern >Synopsis: ipfw fails to parse port ranges (p1-p2) for udp >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: Thu Apr 18 08:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jukka Ukkonen >Release: 9.1-STABLE >Organization: - >Environment: FreeBSD sleipnir 9.1-STABLE FreeBSD 9.1-STABLE #0 r249607M: Thu Apr 18 09:18:42 EEST 2013 root@sleipnir:/usr/obj/usr/src/sys/Sleipnir amd64 >Description: ipfw does not understand port ranges on lines like this... add 03011 deny log udp from any to any 1024-65535 in recv em1 Instead of treating the numbers and the dash between them as a port range it complains about "-65535". The error has been occurring only when the protocol has been UDP. When the protocol is TCP ipfw properly handles the port range as expected. Notice that SCTP has not been tested. >How-To-Repeat: Try adding a configuration line like the one shown in "full description", restart ipfw, and see it complain something like this... Line 7368: unrecognised option [-1] -65535 >Fix: No idea yet. >Release-Note: >Audit-Trail: >Unformatted: