[ previous ] [ next ] [ threads ]
 From:  Sylvain MEDEOT <symedeot at yahoo dot fr>
 To:  Guy Boisvert <boisvert dot guy at videotron dot ca>
 Cc:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Re: OT: Load balancing across 2 WANs
 Date:  Sat, 16 Dec 2006 11:00:14 +0100
Hash: SHA1

Guy Boisvert a écrit :
> Austin Montford wrote:
>> The only thing I can think of is to put a router in front of the
>> m0n0wall running ospf with equal cost routes.  I wonder if m0n0wall will
>> eventually support ospf?
> ... or BGP if facing internet directly.  Or simply load balance by
> alternate outgoing connections based on sessions.
> Guy Boisvert
> IngTegration inc.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch
> ----------------------------------------------------------
> Message exempt de virus ou polluriels connus (MailScanner)


I had the same problem. I am running two monowall, one on each wan.
They are both connected to a router (based on debian) with one dedicated
interface to each monowall. Then,I use iproute to load balance between
the two links.

It works perfectly.

interface to wan1 ( :
ip route add dev eth1 src table uplink1
route add default via table uplink1
ip rule add from table uplink1

interface to wan 2 ( :
ip route add dev eth2 src table uplink2
ip route add default via table uplink2
ip rule add from table uplink2

ip route add default scope global nexthop via dev eth1
weight 2 nexthop via dev eth2 weight 1

You can use weight to put priorities on each link.

Hope it helps,

Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org



Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo!