[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pf.conf macros



neuronet,

	First of all you want to probably post pf related questions to the 
pf list @ pf@benzedrine.cx - 

You can sign up for this list at http://www.benzedrine.cx/mailinglist.html

Now on to your problem.  Your problem is all in how you have written your 
expression.  This is what you need to change:

#incorrect
int_net = "{" $net1 $net2 "}"

to

#correct
int_net = "{ $net1, $net2 }"   - 

you need to remove the " " marks inside the { } and also add a ,


Hope this helps!
Jason Houx


On Sat, 20 Sep 2003 neuronet@cyberrad.org wrote:

> OpenBSD 3.3
> 
> [pf.conf]
> 
> net1 = "123.123.1.0/24"
> net2 = "123.123.2.0/24"
> ...
> 
> int_net = "{" $net1 $net2 "}"
> 
> --------------------------------
> This causes syntax error on
> pfctl -nf /etc/pf.conf
> 
> Is this because of the '/24'?
> Is there a workaround?
> 
> TIA.