From owner-freebsd-questions Sat Aug 17 11:48:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE2E237B416 for ; Sat, 17 Aug 2002 11:48:08 -0700 (PDT) Received: from mail.nucleus.com (mail.nucleus.com [207.34.93.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC53D43E70 for ; Sat, 17 Aug 2002 11:48:07 -0700 (PDT) (envelope-from grant.cooper@nucleus.com) Received: from TCOOPER (unverified [205.206.254.42]) by mail.nucleus.com (Vircom SMTPRS 1.4.232) with SMTP id ; Sat, 17 Aug 2002 12:48:09 -0600 Message-ID: <060e01c2461f$07509fd0$2afececd@TCOOPER> From: "Grant Cooper" To: "Jim Geovedi" Cc: References: <056501c245b9$e51d3c80$2afececd@TCOOPER> <20020817072510.GA5026@TOXIC.MAGNESIUM.NET> Subject: Re: firewall,apache,qmail - IP Address's Date: Sat, 17 Aug 2002 12:50:57 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 All right, that was some cool stuff. Now I have a problem because I use allot of web interfaces, sqwebmail, vqadmin, ect. My thought was to run the web server maillinks on another port and forward all ports with that link to my mail server. Think this will work? ----- Original Message ----- From: "Jim Geovedi" To: "Grant Cooper" Cc: Sent: Saturday, August 17, 2002 1:25 AM Subject: Re: firewall,apache,qmail - IP Address's > > > I just acquired a new box and don't know the best way of doing this. I > > originally planned on having my box connected to the internet my web server > > / firewall / natd connected to my mail box. Can I forward tcp packets based > > on Port numbers to a specific box so I don't have to buy another ip address? > > Or does anyone have a better idea based on one ip? > > > > Yes, you can do such a Port Mapping and Redirection, which mean specific port > on the external interface mapped to services inside your private network. > For example: 207.154.X.X doesn not actually have any services (except NAT) > running on it. But its mapped the request on specific ports to another box > behind it. > > > WWW Server Mail Server > | 192.168.1.2:80 | 192.168.1.3:25 > | 192.168.1.2:21 | 192.168.1.3:110 > | | > +-----------------------+---------------+ > | > | 192.168.1.1 > Firewall/Gateway > | 207.154.X.X:21 > | 207.154.X.X:25 > | 207.154.X.X:80 > | 207.154.X.X:110 > | > Internet > > The request made to 207.154.X.X:110 are mapped to the WWW server on > 192.168.1.3, if you have highload traffic request, it is possible to have > several servers in your network, with NAT router balancing to load between. > > I found a good article about NAT, "Multiple webservers behind one IP > address", http://www.daemonnews.org/200202/multiweb.html > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message