I'm going through my periodic re-examination of firewalls and packet filtering rules here and am exploring
One issue that can occur with some systems is that the system boots and brings up interfaces with forwarding enabled before the firewall rules are in place. There is some period of time where "inappropriate" forwarding can occur.
What are the reasonable ways to manage the at-boot behavior when using
pf
as an option for a host that forwards packets.One issue that can occur with some systems is that the system boots and brings up interfaces with forwarding enabled before the firewall rules are in place. There is some period of time where "inappropriate" forwarding can occur.
net.inet.ip.fw.default_to_accept
and the associated kernel config parameter handles this for ipfw
and can be managed early in the boot, long before interfaces come up. I didn't seem mention of a similar mechanism when using pf
.What are the reasonable ways to manage the at-boot behavior when using
pf
?