Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2012 13:01:01 +0100
From:      Daniel Hartmeier <daniel@benzedrine.cx>
To:        Hooma Fazaeli <hoomanfazaeli@gmail.com>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: WAN load balance with PF
Message-ID:  <20121120120101.GB18780@insomnia.benzedrine.cx>
In-Reply-To: <50AB61CF.9040309@gmail.com>
References:  <3908090977629100732@unknownmsgid> <50AB59F3.6070208@gmail.com> <20121120103424.GA18780@insomnia.benzedrine.cx> <50AB61CF.9040309@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121120120101.GB18780>