From owner-freebsd-questions@FreeBSD.ORG Wed Aug 3 17:05:12 2005 Return-Path: X-Original-To: questions@freebsd.org 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 C818916A41F for ; Wed, 3 Aug 2005 17:05:12 +0000 (GMT) (envelope-from dick@nagual.st) Received: from nagual.st (cc20684-a.assen1.dr.home.nl [82.74.2.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 363EE43D45 for ; Wed, 3 Aug 2005 17:05:12 +0000 (GMT) (envelope-from dick@nagual.st) Received: from pooh.nagual.st (pooh.nagual.st [192.168.11.22]) by nagual.st with esmtp; Wed, 03 Aug 2005 19:05:10 +0200 id 00000018.42F0F946.000025F0 Date: Wed, 3 Aug 2005 19:05:30 +0200 From: dick hoogendijk To: fbsdq Message-Id: <20050803190530.6ea0a9f3.dick@nagual.st> Organization: de nagual X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.8; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: pf macro def X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 17:05:12 -0000 I'm in the process of rewriting a ipf firewall to a pf firewall script I have a macro defined like: tcp_services = "{ 21, 22, 25, 80, 113, 587, 110, 143, 993, 995, 6891, 49151:50251 } I use it in a rule like: pass in on $ext_if inet proto tcp from any to $ext_if \ port $tcp_services flags S/SA keep state My question is about the 49151:50251 port range. It's used by my PureFTP server. Is this a correct way of using the range. Can I have it like this in a macro definition? -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja