From owner-freebsd-questions Fri Jun 8 6:39:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by hub.freebsd.org (Postfix) with ESMTP id BA0D237B407 for ; Fri, 8 Jun 2001 06:39:20 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailg.telia.com (8.11.2/8.11.0) with ESMTP id f58DdJY18998 for ; Fri, 8 Jun 2001 15:39:19 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id PAA24753 for ; Fri, 8 Jun 2001 15:39:18 +0200 (CEST) Received: (qmail 32155 invoked by uid 1001); 8 Jun 2001 13:38:59 -0000 Date: Fri, 8 Jun 2001 15:38:59 +0200 From: Erik Trulsson To: Dale Chulhan - Home Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Server redirection based on service request. Message-ID: <20010608153859.A32122@student.uu.se> Mail-Followup-To: Dale Chulhan - Home , freebsd-questions@FreeBSD.ORG References: <3B20D360.67B1BEE0@uwi.tt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B20D360.67B1BEE0@uwi.tt>; from dchulhan@uwi.tt on Fri, Jun 08, 2001 at 09:30:08AM -0400 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 On Fri, Jun 08, 2001 at 09:30:08AM -0400, Dale Chulhan - Home wrote: > Hello, > > I have seen it done a couple of times and I have not a clue as to how to > do it. > > I need to redirect people's requests automatically based on the port the > connection is made on ... > > Eg. > > Single public IP for mygate.co.com > mygate.co.com:80 ----> Webserver1 ( static NAT, private IP ) > mygate.co.com:8081---> Webserver2 ( Static NAT, private IP ) > mygate.co.com:IMAP---> MailServer ( Static NAT, private IP ) > mygate.co.com:SMTP---> MailServer ( Static NAT, private IP ) > mygate.co.com:NNTP---> News Server ( Static NAT, private IP ) If you are using ipfw/natd for handling NAT then you can use the -redirect_port flag for natd to do eactly what you want. See natd(8) for the details. If you are using something else I am afraid you will have to ask somebody else. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message