From owner-freebsd-bugs Mon Jun 29 07:00:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA19851 for freebsd-bugs-outgoing; Mon, 29 Jun 1998 07:00:59 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA19816 for ; Mon, 29 Jun 1998 07:00:51 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA05297; Mon, 29 Jun 1998 07:00:01 -0700 (PDT) Date: Mon, 29 Jun 1998 07:00:01 -0700 (PDT) Message-Id: <199806291400.HAA05297@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Niall Smart Subject: Re: bin/7101: /sbin/ipfw unexpected variant treatment of port number expansion Reply-To: Niall Smart Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/7101; it has been noted by GNATS. From: Niall Smart To: jhs@FreeBSD.ORG, FreeBSD-gnats-submit@FreeBSD.ORG Cc: julian@FreeBSD.ORG, julian@whistle.com Subject: Re: bin/7101: /sbin/ipfw unexpected variant treatment of port number expansion Date: Mon, 29 Jun 1998 14:50:25 +0000 On Jun 28, 9:16pm, jhs@FreeBSD.ORG wrote: } Subject: bin/7101: /sbin/ipfw unexpected variant treatment of port number > > /sbin/ipfw on 2.2.6: variant treatment of port number: > failed expansion of '-' if uucp-path is first param, otherwise not > expanded & doesn't fail. > > /sbin/ipfw add pass log tcp from 193.174.4.84 uucp-path,uucp-rlogin to 193.174.4.10 out via isppp0 > fails with > ipfw: unknown port ``path'' > > /sbin/ipfw add pass log tcp from 193.174.4.84 uucp,uucp-path,uucp-rlogin to 193.174.4.10 out via isppp0 > works > How about introducing an escape character so you would use uucp\-path, or how about disallowing ranges which use service names (i.e. only accept port numbers) I prefer the latter. Niall -- Niall Smart. PGP: finger njs3@motmot.doc.ic.ac.uk FreeBSD: Turning PC's into Workstations: www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message