Thursday, July 29, 2021

Re: Where to sleep to wait for lease

Hi Leon,

On Wed, Jul 28, 2021 at 08:18:41PM +0200, Leon Fischer wrote:
| > no IP address found for vlan34:0
| > /etc/pf.conf:56: could not parse host specification
| > pfctl: Syntax error in config file: pf rules not loaded
|
| Sleeping isn't needed if the address in pf.conf(5) is parenthesized:
|
| pass out to (vlan34:0)

You are right - that solves my issue, thanks for the reminder.

Interestingly enough, most other rules in my pf.conf use the
parenthesized interface name, can't recall why I didn't use that in
this instance.

I now have:

pass in on $extIF inet proto udp from <wgpeers> to ($extAddr) port $wgport

Where $extIF is 'vlan34' and $extAddr is 'vlan34:0'.

This is better than additional delays during boot. Thanks again!

Paul

--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/

No comments:

Post a Comment