Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Nov 2004 21:14:34 +0900 (JST)
From:      Masachika ISHIZUKA <ishizuka@ish.org>
To:        freebsd-questions@freebsd.org, freebsd-net@freebsd.org
Subject:   Re: Multiple default gateway 
Message-ID:  <20041104.211434.74715204.ishizuka@ish.org>
In-Reply-To: <4188C65D.4020005@mra.co.id>
References:  <4188C65D.4020005@mra.co.id>

next in thread | previous in thread | raw e-mail | index | archive | help
> Is there any (future) release of FreeBSD concern about multiple default 
> gateway ?
> Supposed i want to have load balancing and round robin connection in my 
> FreeBSD firewall without routing daemon.

  It can be done using ipfw, if you want to use only IPv4.
An example is shown below. (Although it is not round robin
connections.)

# route add default GW1
# ipfw add prob 0.5 fwd GW2 ip from any to any out
# ipfw add allow ip from any to any

-- 
ishizuka@ish.org



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