policy routing with pf

Rolf Loudon <[email protected]> Fri, 23 Mar 2018 15:09:45 +1100
Newsgroups gmane.os.openbsd.pf
Message-ID <[email protected]>
Hello

I’ve had several goes at this but can’t work it out.  Hoping there may be some assistance available. I cannot find examples I can refine online.

I have two interfaces which I can use for outbound traffic.  One ethernet, one wifi.  I want to send some traffic out via a given interface depending on the service I’m connecting to (eg ssh  via ethernet, https via wifi, etc).
(In the past with linux iproute2 and netfilter this is pretty straightforward).

Do I need to use route-to or is rdr the tool?

If I only wanted to choose via destination network then simple routing is sufficient.  Adding a port decision has me stuck.

Or is pf not the tool for this?

Many thanks

r.