Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2015 20:35:35 -0700
From:      Doug Niven <>
Subject:   PF not loading at boot time
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
I've got a PF anchor referenced in my /etc/pf.conf file here:

    table <goodguys> {, }
    block in proto tcp from any to any port 22
    pass in on en0 proto tcp from <goodguys> to en0 port 22 flags S/SA =
keep state

But while the /etc/pf.conf file loads fine manually, it does not load at =
boot, generating the following error in my log:

    no IP address found for en0
    /etc/pf.anchors/my-anchor:6: could not parse host specification
    pfctl: Syntax error in config file: pf rules not loaded

I suspect this is because at the time PF loads at boot, en0 doesn't yet =
have an IP address or network state.

Is there any other way I might be able to write this rule to avoid this =

Thanks in advance,


Want to link to this message? Use this URL: <>