From owner-freebsd-questions@FreeBSD.ORG Thu Apr 26 23:26:19 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 32A2216A406 for ; Thu, 26 Apr 2007 23:26:19 +0000 (UTC) (envelope-from alex@schnarff.com) Received: from outbound.mailhop.org (outbound.mailhop.org [63.208.196.171]) by mx1.freebsd.org (Postfix) with ESMTP id 0BFCF13C457 for ; Thu, 26 Apr 2007 23:26:18 +0000 (UTC) (envelope-from alex@schnarff.com) Received: from c-76-111-69-34.hsd1.va.comcast.net ([76.111.69.34] helo=schnarff.com) by outbound.mailhop.org with esmtpa (Exim 4.63) (envelope-from ) id 1HhDLu-000Lig-7R for freebsd-questions@freebsd.org; Thu, 26 Apr 2007 19:26:18 -0400 Received: (qmail 11176 invoked by uid 67); 26 Apr 2007 23:26:17 -0000 Received: from 192.168.2.68 ([192.168.2.68]) by mail.schnarff.com (Horde) with HTTP for ; Thu, 26 Apr 2007 19:26:17 -0400 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 76.111.69.34 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19sg05KIEYzimcQVBVhpkAZWcNEuDNiG18= Message-ID: <20070426192617.v2zsj73wgsg04s0s@mail.schnarff.com> Date: Thu, 26 Apr 2007 19:26:17 -0400 From: alex@schnarff.com To: freebsd-questions@freebsd.org References: <463132D5.2090602@szalbot.homedns.org> In-Reply-To: <463132D5.2090602@szalbot.homedns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.4) Subject: Re: pfctl syntax error 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: Thu, 26 Apr 2007 23:26:19 -0000 > I want to store table data in /etc/pfspammers so I created the file and > also put in the pf.conf table definition on line 18 > > table persist file /etc/pfspammers > > and added a rule to block tcp connections if an IP is in /etc/pfspammers > > When I reload pfctl, I get a warning: > No ALTQ support in kernel > ALTQ related functions disabled > /etc/pf.conf:18: syntax error > pfctl: Syntax error in config file: pf rules not loaded First off, the ALTQ lines aren't really so much of an error, since you're not trying to use altq functionality; don't worry about that. As for the actual error on line 18, if you review: http://www.openbsd.org/faq/pf/tables.html You'll see that the file name should be enclosed in quotes. If that doesn't fix the error, please post the contents of /etc/pfspammers, so it can be checked for syntax errors. Alex Kirk