kern/177948: [ipfw] ipfw fails to parse port ranges (p1-p2) for udp

Ian Smith smithi at nimnet.asn.au
Sun Apr 21 03:30:02 UTC 2013


The following reply was made to PR kern/177948; it has been noted by GNATS.

From: Ian Smith <smithi at nimnet.asn.au>
To: bug-followup at FreeBSD.org, jau at 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


More information about the freebsd-ipfw mailing list