Re: NPF Policy based routing based on interface
Emmanuel Nyarko <[email protected]> Mon, 30 Mar 2026 09:28:07 +0000
| Newsgroups | gmane.os.netbsd.devel.network |
|---|---|
| Message-ID | <[email protected]> |
> On 27 Mar 2026, at 2:15=E2=80=AFPM, Michael van Elst = <[email protected]> wrote: >=20 > [email protected] (Emmanuel Nyarko) writes: >=20 >> i got access to code rmind@ started on NPF routing on interface and i = =3D >> have completed it and I want to commit it on Monday. >> attached is a diff of the work for review. >=20 > looks a bit similar to my code that does the same (except for > fragmenting). >=20 >=20 > E.g.: >=20 > procedure "via-fast" { > route: "iface" rge0, "via" "192.168.0.3", "dup" "true" > } >=20 > group ... { > pass ... apply "via-fast" > } >=20 > would be equivalent to dup-to rge0:192.168.0.3 in ipf. >=20 Oh okay,=20 so it allows you to introduce a next-hop and also duplicate the packet.=20= i will be committing what i have today and also update the man page.=20 then we see how you can essily add the patch for =E2=80=9Cvia=E2=80=9D = and =E2=80=9Cdup=E2=80=9D Emmanuel