PF Redirecting port traffic through alternate interface

Hello,

I would like to send port 80 and 443 traffic out one interface while all other traffic goes via another. Specifically, I'd like all 80 and 443 traffic to go out the wifi interface while all other traffic goes out the wired ethernet interface.
I tried various filtering rules to no avail, and am not sure if rdr would be the appropriate choice. If anyone has already solved this problem, I'd be most grateful to see your solution.

Best,

-Andrew
 
I think You need a source based routing thing. Read about route-to from pf.conf(5) or "pf route-to examples" from google.
Something like:
Code:
pass in quick on $vpn_bridge route-to $tun_dev keep state
I have not a ready-to-use solution, sorry

Just now I'm reading a big article about conditional routing with pf on habr, if You speak russian (just assumed).
 
Thanks for the reply Alexander. Unfortunately, I don't speak russian, but I'll read up on the "route-to" functionality you suggested.
Cheers,

-Andrew
 
Back
Top