Would it be possible/advisable to combine multiple tables into a single variable?
Say I had 3 tables in my pf:
Code:
table <fat> persist file "/etc/pf_fat
table <drunk> persist file "/etc/pf_drunk
table <stupid> persist file "/etc/pf_stupid
Now normally I would add a rule for each table:
Code:
block in quick from <fat> to any
block in quick from <drunk> to any
block in quick from <stupid> to any
But what if, I put all three tables in a single variable:
Code:
AnimalHouse="{ <fat> <drunk> <stupid> }" #Not even sure if syntax is right - just stabbing in dark
Thereby reducing it to one rule that i could tack onto that is already present:
Code:
block in quick on egress from { $AnimalHouse $broken urpf-failed no-route } to any
As always, thanks!