From owner-freebsd-questions Wed Oct 9 21:34:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58D0337B401 for ; Wed, 9 Oct 2002 21:34:21 -0700 (PDT) Received: from kumprang.or.id (kumprang.or.id [202.143.103.227]) by mx1.FreeBSD.org (Postfix) with SMTP id 5C24C43E3B for ; Wed, 9 Oct 2002 21:34:16 -0700 (PDT) (envelope-from budsz@kumprang.or.id) Received: (qmail 95009 invoked by uid 1008); 10 Oct 2002 04:35:38 -0000 Date: Thu, 10 Oct 2002 11:35:37 +0700 From: budsz To: FreeBSD-Questions Subject: Question port in ipfw Message-ID: <20021010043537.GA94881@kumprang.or.id> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Pubkey: "http://www.kumprang.or.id/~budsz/Pubkey.txt" X-Pubkey-MD5: "http://www.kumprang.or.id/~budsz/Pubkey-checksum.md5" X-Finger-Print: "A05A 268C 3CD4 ABBD D9EB 11E1 F64C 4B4E 6269 5304" X-System-Operation: FreeBSD 4.6-STABLE i386 X-Organization: "Internet Cafe and Game PC Kumprang" X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I try to limit rule base on port for example: Case 1: port_tcp="53,1024-1500" ${fwcmd} add 001 allow tcp from any to any ${port_tcp} ${fwcmd} add 002 allow tcp from any ${port_tcp} to any I got some error "1024-1500 unknow port", If I change variable to port_tcp="1024-1500,53", it's OK, Why..? Case 2: port_tcp="1024-1500,53,1600-1700" ${fwcmd} add 001 allow tcp from any to any ${port_tcp} ${fwcmd} add 002 allow tcp from any ${port_tcp} to any I got some error again "1600-1700 unknow port", Does FreeBSD support only one range port..? TIA -- budsz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message