Hi,
I came upon a really strange thing i cannot undestand, if you try to feed pfctl with this config file on freebsd 8.0 it will say there is a syntax error on second line:
but this one is perfectly valid for pfctl:
and the best is that this one works too (from man page):
can anyone explain me that ?
PS: its is a basic example of my problem in the real case i want to put more than one network in this macro
I came upon a really strange thing i cannot undestand, if you try to feed pfctl with this config file on freebsd 8.0 it will say there is a syntax error on second line:
Code:
myvar = "192.168.10.0/24"
lans = "{" $myvar "}"
but this one is perfectly valid for pfctl:
Code:
lans = "{ 192.168.10.0/24 }"
and the best is that this one works too (from man page):
Code:
ext_if = "kue0"
all_ifs = "{" $ext_if lo0 "}"
can anyone explain me that ?
PS: its is a basic example of my problem in the real case i want to put more than one network in this macro