Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 17:42:50 +0300
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Michael Loftis <mloftis@wgops.com>
Cc:        Giannis Nikopoulos <nikop@zeus.cs.uoi.gr>, freebsd-ipfw@FreeBSD.ORG
Subject:   Re: Load balancing with NATD
Message-ID:  <20020418144250.GF70982@sunbay.com>
In-Reply-To: <3CB9B72B.7020908@wgops.com>
References:  <200204071726.UAA12257@pontus.cs.uoi.gr> <3CB9B72B.7020908@wgops.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--Bqc0IY4JZZt50bUr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 14, 2002 at 10:06:51AM -0700, Michael Loftis wrote:
> natd won't be doing what you want.....  Not quite anyway, but what you=20
> might want to do is take the natd source, modify it to do your bidding=20
> (IE cahnge the round-robin alogrithm that it currently supports) and=20
> then run it that way.  It shouldn't be too difficult.  Someone also=20
> mentioned in another thread called (I think) dcpd or similar, basically=
=20
> a divert(4) framework program to which you can plug in your own code to=
=20
> do the dirty.
>=20
Yes it does support this, but in a simplistic form.  Search for the
"LSNAT" word in the natd(8) and libalias(3) manpages.

> Giannis Nikopoulos wrote:
>=20
> >Hello everybody !!!
> >
> >I 'm just a new member of both the FreeBSD world and this list
> >so I hope you will bare with my ignorance.
> >
> >This is the problem:
> >
> >I have a FreeBSD 4.5 running as a router between the outer world and
> >a private network (192.168.0.0) of 3 servers. I use natd to handle
> >traffic between the outer world and the PN. My goal (as part of a simple
> >university course project) is to perform load balancing among the 3
> >back-end servers. I 've written down a load balancing algorithm, that
> >uses reporting agents running on the 3 servers and reporting their load
> >on a central coordinator running on the FreeBSD router. The question is:
> >
> >How can I use natd (or maybe another tool, say ipfw or some proxy, I don=
't
> >know) in order to dynamically dispatch (redirect) incoming connections
> >among the 3 back-end servers. As far as I can tell, natd performs=20
> >redirection
> >(along with address translation) but in a static way (correct me if I 'm
> >wrong, I 've already explained I 'm new to this stuff).=20
> >
> >Is there any I way I can instruct natd to selectively choose to which=20
> >server
> >it will redirect a connection by applying a set of rules or I will have =
to
> >hack into natd's source code.
> >
> >I don't know if I should have provided more feedback on this case but or=
 be
> >a little more specific. Can anyone help ?
> >
> >Thanx in advance
> >
>=20
>=20
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-ipfw" in the body of the message

--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--Bqc0IY4JZZt50bUr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8vttqUkv4P6juNwoRAu9aAJ4oOmXveXTOffbHyNTAFH24LOPzfQCeLcs8
tHCGSsB/1t9CunCVh4V7sp8=
=8emV
-----END PGP SIGNATURE-----

--Bqc0IY4JZZt50bUr--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20020418144250.GF70982>