From owner-freebsd-ipfw Sun Apr 14 10: 7: 3 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from free.wgops.com (dsl092-002-178.sfo1.dsl.speakeasy.net [66.92.2.178]) by hub.freebsd.org (Postfix) with ESMTP id AFD8737B404 for ; Sun, 14 Apr 2002 10:07:00 -0700 (PDT) Received: from wgops.com (zop12@[10.1.2.207]) by free.wgops.com (8.11.3/8.11.3) with ESMTP id g3EH6pR02511; Sun, 14 Apr 2002 10:06:52 -0700 (PDT) (envelope-from mloftis@wgops.com) Message-ID: <3CB9B72B.7020908@wgops.com> Date: Sun, 14 Apr 2002 10:06:51 -0700 From: Michael Loftis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Giannis Nikopoulos Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re: Load balancing with NATD References: <200204071726.UAA12257@pontus.cs.uoi.gr> Content-Type: text/plain; charset=us-ascii; format=flowed 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 natd won't be doing what you want..... Not quite anyway, but what you might want to do is take the natd source, modify it to do your bidding (IE cahnge the round-robin alogrithm that it currently supports) and then run it that way. It shouldn't be too difficult. Someone also mentioned in another thread called (I think) dcpd or similar, basically a divert(4) framework program to which you can plug in your own code to do the dirty. Best luck Giannis Nikopoulos wrote: >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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message