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

Re: pf.conf macros



On Sat, Sep 20, 2003 at 11:08:42PM -0400, Jason Houx wrote:
> 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

huh? misc is fine for pf stuff.
 
> 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 ,

sorry, this is entirely wrong.
the OP sytax was correct.
he's stumbling over a parser limitation (actually, it's the lexer) 
that treats / special too early. we've not come up with a good idea 
how to fix that over all the time pf exists - perhaps we do soon, 
perhaps not.
there's an ugly workaround:
neta='"1.2.3.4/24'"
netb='"9.8.7.6/24'"
nets="{" $neta $netb "}"

note the strange quoting in neta and netb.

-- 
http://2suck.net/hhwl.html - http://www.bsws.de/
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)