Building the Network You Need with OpenBSD's PF: EuroBSDCon, St. Julian's, September 26th 2013 | ||
---|---|---|
Prev | Next |
A PF table is a data structure for storing IP addresses for quick lookup.
table <clients> { 192.168.2.0/24, !192.168.2.5 }
the file /etc/clients
192.168.2.0/24 !192.168.2.5
in /etc/pf.conf
table <clients> persist file /etc/clients pass inet proto tcp from <clients> to any port $client_out
Here all members of the table match; unlike list macros, does not generate multiple rules.