On Thu, Mar 20, 2025 at 10:23:12AM +0300, Kihaguru Gathura wrote:
 
> Openbsd 7.6 upon restart, pf rules fail to load with error (no IP address
> found for em0 /etc/pf.conf:26: could not parse host specification).
> However, performing "pfctl -nf /etc/pf.conf && pfctl -vf /etc/pf.conf"
> manually after logging in gets the rules loaded successfully. Also
> commenting out lines 25 and 26 gets the file loaded successfully on restart
> confirming the error
> 
> What are the potential scenario causing the line 26 (from 41.90.23.240 to
> $ext_if port ssh modulate state) to present itself as syntax error during
> restart?

The message you get indicates that the interface is not fully configured, that
it does not (yet) have an IP address assigned. 

I would look in the direction of whatever it is that does the IP address 
assignment. Is there a problem with slow response from that network's 
DHCP service, for example?

- Peter

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.

Reply via email to