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

Re: macro doesnt expand CIDR



didnt work for me either :(

%more test.pf1
----
int_net="'192.168.0.1/24'"
john="192.168.1.3"

all="{" $int_net $john"}"

pass in quick on bge0 proto tcp from $all to 68.149.93.11 port 80
-----

%pfctl -nvv -f test.pf1
Loaded 293 passive OS fingerprints
int_net = "'192.168.0.1/24'"
john = "192.168.1.3"
test.pf1:4: syntax error


thanks



----- Original Message ----- From: "Bryan Irvine" <[email protected]>
To: "Gustavo A. Baratto" <[email protected]>
Cc: <[email protected]>
Sent: Monday, August 29, 2005 12:42 PM
Subject: Re: macro doesnt expand CIDR



On 8/22/05, Gustavo A. Baratto <[email protected]> wrote:
couldnt find any restriction about the content of a macro, so this doesnt
work:

----
int_net="192.168.0.1/24"
john="192.168.1.3"

all="{" $int_net $john "}"

pass in quick on bge0 proto tcp from $all to 68.149.93.11 port 80

Try it this way


int_net="'192.168.0.1/24'"
john="192.168.1.3"

all="{" $int_net $john"}"

pass in quick on bge0 proto tcp from $all to 68.149.93.11 port 80


--Bryan