Re: How do people use npf with dhcpcd?
RVP <[email protected]>
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 26 Dec 2025, David Brownlee wrote: > My npf.conf contains the below, which fails when rge0 does not (yet) > have an IP address > > $int_if = "rge0" > $int_ip = inet4($int_if) > > So far I have worked around this by having the following in rc.conf > > if ifconfig rge0 | grep -q 'inet ' ; then > npf_rules=/etc/npf.conf > else > npf_rules=/etc/npf.boot > fi > > and calling /etc/rc.d/npf reload in dhcpcd.exit-hooks, but this > seems... inelegant > Pass the `-w' (wait) flag to dhcpcd?: ``` $ fgrep dhcpcd /etc/rc.conf dhcpcd=YES dhcpcd_flags="-4Mqw ure0 vioif0" $ ``` -RVP