Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2007 19:26:17 -0400
From:      alex@schnarff.com
To:        freebsd-questions@freebsd.org
Subject:   Re: pfctl syntax error
Message-ID:  <20070426192617.v2zsj73wgsg04s0s@mail.schnarff.com>
In-Reply-To: <463132D5.2090602@szalbot.homedns.org>
References:  <463132D5.2090602@szalbot.homedns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <pfspammers> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070426192617.v2zsj73wgsg04s0s>