From owner-freebsd-questions Sun Feb 24 10:51:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp04.wxs.nl (smtp04.wxs.nl [195.121.6.59]) by hub.freebsd.org (Postfix) with ESMTP id 1CEE537B402 for ; Sun, 24 Feb 2002 10:51:42 -0800 (PST) Received: from Alex.kruijff ([213.10.151.186]) by smtp04.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id GS1WE300.70A; Sun, 24 Feb 2002 19:51:39 +0100 Date: Sun, 24 Feb 2002 19:51:38 +0100 From: Alex X-Mailer: The Bat! (v1.53d) Reply-To: Alex X-Priority: 3 (Normal) Message-ID: <17211615632.20020224195138@cybertron.tmfweb.nl> To: Florian Nigsch Cc: Lane Holcombe , freebsd-questions@freebsd.org Subject: Re[2]: DNS? nat? In-Reply-To: <20020224191736.C23097@nigsch.com> References: <200202241748.g1OHmR701169@joeandlane.com> <20020224191736.C23097@nigsch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Florian, Sunday, February 24, 2002, 7:17:36 PM, you wrote: FN> On Sun, Feb 24, 2002 at 11:48:27AM -0600, Lane Holcombe wrote: >> I have successfully used nat to transfer incoming requests to the >> Windows box based upon port number, (e.g. www.mydomain.com:8080), >> but I can't seem to figure out how to do it based upon hostname (e.g. >> windows.mydomain.com). FN> ---end quoted text--- FN> I don't know if I am much of a help... FN> As far as I know you can only redirect adresses and ports with natd FN> based on the IP adress. What I am trying to say is that natd will FN> not know for which hostname the packet is destined which it should FN> redirect. It only knows of the IP number it runs on. So if you FN> have multiple hostnames on the same IP I personally think it's not FN> possible with natd to do redirecting based on hostname. Unlike FN> with apache where you can have multiple virtual hosts distinguished FN> by their URL. FN> Someone correct me if I am wrong... FN> flo Its able to understand this (out of the man natd): redirect_port tcp www1:http,www2:http,www3:http www:http Means http request goes to www1 2 or 3 base on the round-robin scheduling. -- Best regards, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message