using natd to load balance port 80 to multiple servers
Julian Elischer
julian at elischer.org
Sun Oct 24 21:50:04 PDT 2004
Stephane Raimbault wrote:
> Hi All,
>
> I'm currently using a freebsd box running natd to forward port 80 to
> several (5) web servers on private IP's.
>
> I have discovered that natd doesn't handle many requests/second all that
> well (seem to choke at about 200 req/second (educated guess))
>
use the "ipfw fwd" option to directly send the packets to the appropriate machine.
Should be able to forwarrd at wire speed.
you will probably need ipfw fwd running on both sides of the forward..
one on the switch machine to forward packets to one machine and one on
that machine to "capture" those packets to a local socket.
> There are other packet filtering options on FreeBSD and I wonder if I
> can use them to do what I'm trying to do with natd.
>
> Would someone be able to point me to documentation or help me have
> either ipf/ipfw/pf forward port 80 traffic to private space IP's?
>
More information about the freebsd-net
mailing list