OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: pf.conf syntax error

From: phoenixcomm (phoenixcommgmail.com)
Date: Fri Aug 08 2008 - 16:45:17 CDT


Jose Quinteiro-5 wrote:
>
> The pf.conf man page sez:
>
> Macros are not expanded inside quotes.
>
> For example,
>
> ext_if = "kue0"
> all_ifs = "{" $ext_if lo0 "}"
>
>
> However, that following fails with a syntax error on 4.3. On 4.2
> something like this worked:
>
> foo = 123
> bar = 456
>
> fubar_ports = "{ $foo $bar }"
>
> However, that does not work on 4.3 either.
>
> Thanks,
> Jose.
>
>
>

the book is alway right
Macro names must start with a letter and may contain letters, digits, and
underscores. Macro names cannot be reserved words such as pass, out, or
queue.

    ext_if = "fxp0"

    block in on $ext_if from any to any

This creates a macro named ext_if. When a macro is referred to after it's
been created, its name is preceded with a $ character.

Macros can also expand to lists, such as:

    friends = "{ 192.168.1.1, 10.0.2.5, 192.168.43.53 }"

good luck

--
View this message in context: http://www.nabble.com/pf.conf-syntax-error-tp18898829p18899454.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.