WAN load balance with PF

Daniel Hartmeier daniel at benzedrine.cx
Tue Nov 20 12:01:05 UTC 2012


On Tue, Nov 20, 2012 at 02:26:15PM +0330, Hooma Fazaeli wrote:

> >   # assuming default route through $wan_if1
> >   nat on $wan_if1 from $lan_if1:network to any -> { $wan_if1 $wan_if2 } 
> >   round-robin
> >   pass out on $wan_if1 route-to ($wan_if2 $wan_ip2) from $wan_if2 to any
> >
> >Daniel
> But there is no wan_if2 actually. The box has only two interfaces: one 
> connected to LAN and
> the other connected to L2 switch (to which modems are connected).

Same thing, just

pass out on $wan_if1 route-to ($wan_if1 $wan_ip2) from $wan_if2 to any

Daniel


More information about the freebsd-pf mailing list