From owner-freebsd-questions Wed Feb 7 9:50:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from omta03.mta.everyone.net (sitemail.everyone.net [216.200.145.35]) by hub.freebsd.org (Postfix) with ESMTP id 9D1FA37B65D for ; Wed, 7 Feb 2001 09:49:54 -0800 (PST) Received: from sitemail.everyone.net (reports [216.200.145.62]) by omta03.mta.everyone.net (Postfix) with ESMTP id 8166048F11; Wed, 7 Feb 2001 09:49:54 -0800 (PST) Received: by sitemail.everyone.net (Postfix, from userid 99) id 7942A274A; Wed, 7 Feb 2001 09:49:54 -0800 (PST) Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 X-Mailer: MIME-tools 4.104 (Entity 4.117) Date: Wed, 7 Feb 2001 09:49:54 -0800 (PST) From: Benjamin Ossei To: Ruslan Ermilov Cc: questions@freebsd.org Subject: Re: NAT with multiple services Reply-To: ben@cahostnet.net X-Originating-Ip: [162.6.224.88] Message-Id: <20010207174954.7942A274A@sitemail.everyone.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This was what I was referring to as load balancing. This is not what I want to do. In the example of the man pages -redirect_address they are talking about using the address of one server and transparently redirecting it to any of the web servers that you may have in that pool. What I'm talking about is this: www.domain1.com (xxx.xxx.xxx.2) mapped to 192.168.1.3 www.domain2.com (xxx.xxx.xxx.2) mapped to 192.168.1.4 www.domain3.com (xxx.xxx.xxx.2) mapped to 192.168.1.5 etc. As you can see, I'm taking different domain names using the same IP address and redirecting it to a number of servers behind the firewall. Think of it as doing virtual hosting, which is what I will be doing but the web servers will be split. There will be two web servers serving up web pages of different sites. I can do virtual hosting on one machine, not a big deal, I will just use host headers but when there are TWO or more web servers, that's where the issue comes in. Using only ONE PUBLIC IP address. Hope this helps. --- Ruslan Ermilov > wrote: >On Wed, Feb 07, 2001 at 08:27:33AM -0800, Benjamin Ossei wrote: >> I was wondering if it is possible to use natd in this way. I will >> like to be able to run multiple web servers behind my firewall >> using one public IP address. I know you can do load balancing with >> natd but I don't know if you can do it with just one IP. >> >Here is an example from natd(8) manpage: > >: -redirect_address localIP[,localIP[,...]] publicIP >: These forms of -redirect_port and -redirect_address are used >: to transparently offload network load on a single server and >: distribute the load across a pool of servers. This function >: is known as LSNAT (RFC 2391). For example, the argument >: >: tcp www1:http,www2:http,www3:http www:http >: >: means that incoming HTTP requests for host www will be trans- >: parently redirected to one of the www1, www2 or www3, where a >: host is selected simply on a round-robin basis, without re- >: gard to load on the net. > > >Cheers, >-- >Ruslan Ermilov Oracle Developer/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 _____________________________________________________________ ========GET YOUR FREE E-MAIL============ http://freemail.cahostnet.net Web Hosting http://www.cahostnet.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message