Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2001 15:38:59 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Dale Chulhan - Home <dchulhan@uwi.tt>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Server redirection based on service request.
Message-ID:  <20010608153859.A32122@student.uu.se>
In-Reply-To: <3B20D360.67B1BEE0@uwi.tt>; from dchulhan@uwi.tt on Fri, Jun 08, 2001 at 09:30:08AM -0400
References:  <3B20D360.67B1BEE0@uwi.tt>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010608153859.A32122>