multi gateways setup

Rossikhin Aleksey arossihin at
Tue Jun 10 10:42:57 UTC 2008

Rosli Sukri wrote:
> hi
> scenario:
> users---->[lan]freebsdpf[wan]----->{gw1,gw2}
> where gw1 goes to isp1, and gw2 goes to isp2.
> requirements:
> ftp, http, https traffic goes to gw1
> telnet, ssh, mail and pop goes to gw2
> can freebsdpf do this?
> _______________________________________________
> freebsd-pf at mailing list
> To unsubscribe, send any mail to "freebsd-pf-unsubscribe at"
yes, it can

look for "reply-to" and "route-to" options in pass rules.

for example:
pass out route-to ($wan_if $gw1)  from $wan_if to any port http keep state

here all http traffic from freebsd host goes to gw1

More information about the freebsd-pf mailing list