From owner-freebsd-ipfw@FreeBSD.ORG Sun Apr 21 03:30:02 2013 Return-Path: Delivered-To: freebsd-ipfw@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 07179AA4 for ; Sun, 21 Apr 2013 03:30:02 +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 EEB43FB for ; Sun, 21 Apr 2013 03: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 r3L3U1gn088730 for ; Sun, 21 Apr 2013 03: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 r3L3U1c5088729; Sun, 21 Apr 2013 03:30:01 GMT (envelope-from gnats) Date: Sun, 21 Apr 2013 03:30:01 GMT Message-Id: <201304210330.r3L3U1c5088729@freefall.freebsd.org> To: freebsd-ipfw@FreeBSD.org Cc: From: Ian Smith Subject: Re: kern/177948: [ipfw] ipfw fails to parse port ranges (p1-p2) for udp X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Ian Smith List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Apr 2013 03:30:02 -0000 The following reply was made to PR kern/177948; it has been noted by GNATS. From: Ian Smith To: bug-followup@FreeBSD.org, jau@oxit.fi Cc: Subject: Re: kern/177948: [ipfw] ipfw fails to parse port ranges (p1-p2) for udp Date: Sun, 21 Apr 2013 12:17:12 +1000 I can't reproduce this on 9.1-RELEASE, unless I put a space anywhere amongst p1, '-' and p2, in which case I see the same error you show. # ipfw add 03011 deny log udp from any to any 1024-65535 in recv fxp0 03011 deny log udp from any to any dst-port 1024-65535 in recv fxp0 # ipfw list 3011 03011 deny log udp from any to any dst-port 1024-65535 in recv fxp0 # ipfw add 03011 deny log udp from any to any 1024 -65535 in recv fxp0 ipfw: unrecognised option [-1] -65535 # ipfw add 03011 deny log udp from any to any 1024- 65535 in recv fxp0 ipfw: unrecognised option [-1] 1024- Can you verify that there is no whitespace (obvious, or perhaps some non-printing character?) on or near line 7368 of your config file? If that looks ok, can you show the byte offset of that line in your file, for example by placing that line at the bottom of the screen in less(1) then pressing '='? cheers, Ian