From owner-freebsd-pf@FreeBSD.ORG Wed Aug 20 17:50:28 2008 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6103E1065681 for ; Wed, 20 Aug 2008 17:50:28 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from hawk.thalamus.net (hawk.thalamus.net [212.31.160.3]) by mx1.freebsd.org (Postfix) with ESMTP id 22A5B8FC26 for ; Wed, 20 Aug 2008 17:50:28 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from localhost (localhost.thalamus.net [127.0.0.1]) by hawk.thalamus.net (Postfix) with ESMTP id 7E8631EE872 for ; Wed, 20 Aug 2008 19:50:22 +0200 (CEST) X-Virus-Scanned: by amavisd-new at thalamus.net X-Spam-Flag: NO X-Spam-Score: 2.337 X-Spam-Level: ** X-Spam-Status: No, score=2.337 tagged_above=-999 required=4.2 tests=[AWL=-0.832, HELO_LH_HOME=3.169] Received: from hawk.thalamus.net ([127.0.0.1]) by localhost (hawk.thalamus.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xbfYVEMOj1d7 for ; Wed, 20 Aug 2008 19:50:15 +0200 (CEST) Received: from lesbsdpc.homenet.home (c-195-216-040-164.static.bjare.net [195.216.40.164]) by hawk.thalamus.net (Postfix) with ESMTP id DF3A01EE893 for ; Wed, 20 Aug 2008 19:50:15 +0200 (CEST) Message-ID: <48AC595C.2090506@eskk.nu> Date: Wed, 20 Aug 2008 19:50:20 +0200 From: Leslie Jensen User-Agent: Thunderbird 2.0.0.16 (X11/20080729) MIME-Version: 1.0 To: freebsd-pf@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: A problem with variable X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2008 17:50:28 -0000 I've defined a variable proxyport = "{ 8080 }" The rule rdr on $int_if inet proto tcp from $internal_net to any / port $proxy_services -> $proxy port $proxyport gives me a "Syntax error in config file:" I use the same variable in another rule and it does not produce a "Syntax error" pass in on $int_if inet proto tcp from $internal_net to / $proxy port $proxyport keep state If I change the variable in the first rule to 8080 it works. Can someone shed some light on this? Thanks /Leslie