From owner-freebsd-questions Thu Sep 26 18: 3: 7 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 CFD8B37B418 for ; Thu, 26 Sep 2002 18:03:01 -0700 (PDT) Received: from hotmail.com (f19.sea2.hotmail.com [207.68.165.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5618B43ECF for ; Thu, 26 Sep 2002 18:02:57 -0700 (PDT) (envelope-from odyseus00@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 26 Sep 2002 18:02:57 -0700 Received: from 134.134.136.1 by sea2fd.sea2.hotmail.msn.com with HTTP; Fri, 27 Sep 2002 01:02:56 GMT X-Originating-IP: [134.134.136.1] From: "David B" To: freebsd-questions@FreeBSD.ORG Subject: IP NAT AND internal servers Date: Thu, 26 Sep 2002 21:02:56 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Sep 2002 01:02:57.0114 (UTC) FILETIME=[9DD91BA0:01C265C1] 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 Sorry, if this is a bone-headed question, I normally search for the answers but I am not exactly sure of that which I am searching, so a bit of direction or a complete answer would be nice. So I have a routed DSL connection, with a single static address, the DSL modem/router has an integrated 4-switch. My question is how should I setup my IPs for my server box, so things work well. The DSL router does NAT/PAT and I have all ports forwarded? to the server(private IP), the router/modem/switch is assigned the static IP (public IP). So I have one issue at hand but am thinking how to best configure things so that perhaps will not have this issue with other software packages. Issue at hand is IMP and apache, when IMP redirects the page on login it goes no further because the it takes the IP of the server box 10.0.0.1 rather than the public IP say 67.3.4.45, I am not sure if I am explaining correctly. Inet | +-----------+ | 67.3.4.45 | modem/router(my WAN ip) +-----------+ | | | | other | hosts | +--------+ web/imap/smtp |-------|10.0.0.1| server +--------+ So I am wondering can/should I IP alias the NIC to my static IP? Should I edit hosts to be something like 127.0.0.1 localhost serverbox 67.3.4.45 ?? Or is this something that I will have to make config changes and or hacks to every software package that doesn't work with the servers IP being a private IP(different from the Public IP). Is there something else of which I am not thinking? What is all the methodology behind how this should be done/works and where can I read about it (especially real world solutions)? I have no domain registered as of yet but will be doing name based vhosts in the future, I have to work with only one static IP. And in the future the above server will be a gateway to more servers on a switch all using private addresses (you know divide up the task between diffrent boxes). Sorry for being long winded and overly broad but I am not sure of the concepts and more particularly their application. Thanks, David Burton (please CC me) _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message