Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2015 11:20:32 +0200
From:      Hans Ottevanger <>
To:        Doug Niven <>,
Subject:   Re: PF not loading at boot time
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 04/30/15 05:35, Doug Niven wrote:
> 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 problem?

Put parentheses around en0 in every place where an IP address is 
expected. That will postpone the usage of the IP address of en0 until 
the actual evaluation of the rule (when a packet is processed).

So in your case:

pass in on en0 proto tcp from <goodguys> to (en0) port 22 flags S/SA 
keep state

> Thanks in advance,
> Doug

Kind regards,


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