On 2026-11-11, Radu Dan <[email protected]> wrote: > Hey there, > > I have 2 extra pf.conf.primary and pf.conf.fallback files which include > pf.conf as an anchor and are loaded by ifstated depending on the status > of pppoe2. I have the following two lines in the "shared" pf.conf: > > match out on pppoe2 inet nat-to pppoe2 > match out on cnmac1 inet nat-to cnmac1
you want brackets, "nat-to (cnmac1)", and probably also "nat-to (pppoe2)". I don't think you need the ifstated complexity though, just set cnmac1 to a lower priority; if pppoe is up there will be a default route via that, if not it will fallback to the lower prio route on cnmac1. (this is similar to how wired + wireless interfaces are handled by default).

