#NetBSD tip that seems obvious in retrospect: NPF rules are applied before DHCP ...
Xavier @xavier@pony.social
#NetBSD tip that seems obvious in retrospect: NPF rules are applied before DHCP leases are obtained, so the inet4, inet6 and ifaddrs functions won't return the right addresses and are only called during the initial apply.
Either:
- write your rules without these functions, by targeting interface names and
anyIP - switch to static network addresses
- re-load NPF rules after DHCP lease acquisition