Loading balancing with more than one ISP.

Dinesh Nair dinesh at alphaque.com
Sat Jan 17 21:20:34 PST 2004


On Wed, 14 Jan 2004, Antoine Jacoutot wrote:

> What I'm hoping to do is find a way to route all paquets coming:
> - from DMZ to internet, using NET connexion1
> - from LAN to internet, using NET connection2
>
> To be more understandable, something like this:
> route add from DMZ defaut em0
> route add from LAN defaut em1

you can do this with IPFW's fwd rulesets.

ipfw add fwd netconnexion1_gw ip from DMZ/netmask to any
ipfw add fwd netconnexion2_gw ip from LAN/netmask to any

this sets the next hop address for a packet, based on it's incoming
address space.

Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)    http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+



More information about the freebsd-questions mailing list