Hello,

I am trying to reproduce the example below, given in the FAQ:

host1 = "192.168.1.1"
host2 = "192.168.1.2"
all_hosts = "{" $host1 $host2 "}"

This sample works with a host type macro but network type macro, like
following lines, do not work.

int_lan = "172.16.1.0/24"
rel_int_lan = "172.16.2.0/24"
rel_ext_lan = "172.16.3.0/24"

lans = "{" $int_lan $rel_int_lan $rel_ext_lan "}"

I obtain this error:

# pfctl -nf /etc/pf.conf 
/etc/pf.conf:48: syntax error
/etc/pf.conf:83: macro 'lans' not defined

Could you give me the correct syntax?

Thanks
Xavier

Reply via email to