From owner-freebsd-ipfw Sun Apr 7 10:26:39 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from gaia.cs.uoi.gr (gaia.cs.uoi.gr [195.130.121.201]) by hub.freebsd.org (Postfix) with ESMTP id 7B25337B416 for ; Sun, 7 Apr 2002 10:26:35 -0700 (PDT) Received: from zeus.cs.uoi.gr (zeus.cs.uoi.gr [195.130.121.11]) by gaia.cs.uoi.gr (8.11.6/8.11.6) with ESMTP id g37HQXg71788 for ; Sun, 7 Apr 2002 20:26:34 +0300 (EEST) (envelope-from nikop@zeus.cs.uoi.gr) Received: from pontus.cs.uoi.gr (pontus [195.130.121.41]) by zeus.cs.uoi.gr (8.9.1b+Sun/8.9.1) with ESMTP id UAA24166 for ; Sun, 7 Apr 2002 20:26:32 +0300 (EET DST) Received: (from nikop@localhost) by pontus.cs.uoi.gr (8.8.8+Sun/8.8.8) id UAA12257 for freebsd-ipfw@freebsd.org; Sun, 7 Apr 2002 20:26:33 +0300 (EET DST) From: Giannis Nikopoulos Message-Id: <200204071726.UAA12257@pontus.cs.uoi.gr> Subject: Load balancing with NATD To: freebsd-ipfw@freebsd.org Date: Sun, 7 Apr 2002 20:26:32 +0300 (EET DST) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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). Is there any I way I can instruct natd to selectively choose to which 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 -- Ioannis K. Nikopoulos Postgraduate Student and Reasearcher Computer Science Department University of Ioannina GREECE For more information: http://www.cs.uoi.gr/~nikop To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message