On Wed, May 24, 2006 at 01:55:34AM +0200, Daniel Hartmeier wrote:
> On Tue, May 23, 2006 at 03:31:46PM -0700, andrew fresh wrote:
>
> > host_list = "{" $hosts "}"
> > port_list = "{" $ports "}"
>
> Try adding
>
> q_host_list = '"{' $hosts '}"'
> q_port_list = '"{' $ports '}"'
>
> then replace
>
> > end_03 = "proto tcp from " $host_list " to any port " $port_list
>
> with
>
> end_03 = "proto tcp from " $q_host_list " to any port " $q_port_list
That does work. Thank you!
Having two different macros depending on if I am using them in another
macro or in a rule is not as handy as I had hoped, but it works. I will
probably end up putting the {} in the secondary macro (as in end_01 in
my original mail).
I really wish I could do something like:
macro = "{ item_1 item_2 }"
and that would allow me to do
pass ... { item_3 $macro }
and
pass ... $macro
in the same ruleset and it would just work. Oh well, maybe someday :-)
PF is great anyway. I am sure I will learn all the quirks I need
eventually.
l8rZ,
--
andrew - ICQ# 253198 - JID: [EMAIL PROTECTED]
Hey! It compiles! Ship it!