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

Recursively expanded macros



Hi,
the pf.conf(5) man page states "Macros are not expanded recursively".
Luckily this is not always true:
% cat pf.conf
host1 = 1.1.1.1
host2 = 2.2.2.2
host3 = 3.3.3.3
hostgroup = $host1 $host2 $host3
pass in on rl0 from any to { $hostgroup }
% pfctl -vvnf pf.conf
host1 = "1.1.1.1"
host2 = "2.2.2.2"
host3 = "3.3.3.3"
hostgroup = "1.1.1.1 2.2.2.2 3.3.3.3"
@0 pass in on rl0 inet from any to 1.1.1.1 
@1 pass in on rl0 inet from any to 2.2.2.2 
@2 pass in on rl0 inet from any to 3.3.3.3 
-- Armin