Re: pf.conf: modifier :0 doesn't work for IPv6 addresses

2024-01-19 Thread Stuart Henderson
On 2024/01/19 20:05, Peter Hessler wrote: > Thinking out loud, ignore addresses with scopeid (link-local), and > deprecated, then pick the zero-th address. For places where "(iface:0)" is actually used, which I think is mainly translation rules, we pretty much always _only_ want to use addresses

Re: pf.conf: modifier :0 doesn't work for IPv6 addresses

2024-01-19 Thread Peter Hessler
On 2024 Jan 19 (Fri) at 19:58:15 +0100 (+0100), Alexandr Nedvedicky wrote: :Hello, : :On Thu, Jan 18, 2024 at 08:00:54AM -0300, Crystal Kolipe wrote: : : :> On Thu, Jan 18, 2024 at 01:01:31AM +0100, Alexandr Nedvedicky wrote: :> :> In these situations, it would be nice to have a modifier like :0

Re: pf.conf: modifier :0 doesn't work for IPv6 addresses

2024-01-19 Thread Alexandr Nedvedicky
Hello, On Thu, Jan 18, 2024 at 08:00:54AM -0300, Crystal Kolipe wrote: > On Thu, Jan 18, 2024 at 01:01:31AM +0100, Alexandr Nedvedicky wrote: > > In these situations, it would be nice to have a modifier like :0 that > returns 'the first non-deprecated IPv6 address with global scope'. > > That

Re: pf.conf: modifier :0 doesn't work for IPv6 addresses

2024-01-18 Thread Crystal Kolipe
On Thu, Jan 18, 2024 at 01:01:31AM +0100, Alexandr Nedvedicky wrote: > If I remember correct it's been pointed out in 2020. > Unfortunately I'm not able to find details. > > the diff was not accepted because we could not find > a good way to establish concept of primary address (:0) > and alias

Re: pf.conf: modifier :0 doesn't work for IPv6 addresses

2024-01-17 Thread Alexandr Nedvedicky
be updated. regards sashan On Wed, Jan 17, 2024 at 05:09:10PM -0300, K R wrote: > >Synopsis: pf.conf: modifier :0 doesn't work for IPv6 addresses > >Category: system amd64 > >Environment: > System : OpenBSD 7.4 > Details : OpenBSD 7.4 (GENERIC)

pf.conf: modifier :0 doesn't work for IPv6 addresses

2024-01-17 Thread K R
>Synopsis: pf.conf: modifier :0 doesn't work for IPv6 addresses >Category: system amd64 >Environment: System : OpenBSD 7.4 Details : OpenBSD 7.4 (GENERIC) #2: Fri Dec 8 15:38:40 MST 2023 r...@syspatch-74-amd64.openbsd.org:/usr/src/sys/arch/amd64/compil