From owner-freebsd-questions Tue Sep 3 15:17:23 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 0681737B400 for ; Tue, 3 Sep 2002 15:17:19 -0700 (PDT) Received: from c001.snv.cp.net (h020.c001.snv.cp.net [209.228.32.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 4891943E4A for ; Tue, 3 Sep 2002 15:17:18 -0700 (PDT) (envelope-from ken@justken.net) Received: (cpmta 1039 invoked from network); 3 Sep 2002 15:17:17 -0700 Received: from 24.222.137.247 (HELO justken.justken.net) by smtp.register-admin.com (209.228.32.134) with SMTP; 3 Sep 2002 15:17:17 -0700 X-Sent: 3 Sep 2002 22:17:17 GMT Message-Id: <5.1.1.6.0.20020903181838.031f0c18@mail.justken.net> X-Sender: ken@justken.net@mail.justken.net X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Tue, 03 Sep 2002 18:29:31 -0300 To: questions@freebsd.org From: Ken Easson Subject: Re: guy with nic problem, got somewhere. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 I have been pulling my hair out all day on this one. it's a question that has been asked on hundreds of boards, and the answers seem to be all different and none work for me. how do i get my internal web browser to view the pages on my internal web server? and have my internal ftp client connect to my internal ftp server using www.myurl.com instead of the internal ip 192.168.0.2 since i am using virtual hosting, and this doesn't allow my to resolve the name. fig: comp B (192.168.0.2) ie browser looking for www.myurl.com apache web server hosting www.myurl.com vr0 192.168.0.1 comp A xl0 - xxx.xxx.xxx.xxx internet ipf added: pass in quick on xl0 from any to 192.168.0.2 port = 80 ipnat: rdr xl0 xxx.xxx.xxx.xxx/32 port 80 -> 192.168.0.2 port 80 rdr xl0 xxx.xxx.xxx.xxx/32 port 21 -> 192.168.0.2 port 21 tcp comp C (192.168.0.3) ie browser looking for www.myurl.com the outside can see my web server, but i can't connect to the web server from inside my nat'd network. one solution suggested using an internal dns server, which i tried to set up, but that is not a simple thing... and i'm sure i got a tonn of stuff incorrect in the zone files. (i tried setting up named - aka bind 8.?.?) much of the info i found was piecemeal like - well, ipnat is configured correctly do this for ipf - only they don't show the ipnat, so i have no idea what that looks like. i just want to pass all outgoing requests for port 80 and port 21 back to 192.168.0.2 (the server with apache and ftp). ken easson justken.net ken@justken.net justken web programming and technical support. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message