From owner-freebsd-questions Tue Sep 3 20:42: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 2405E37B400 for ; Tue, 3 Sep 2002 20:42:18 -0700 (PDT) Received: from vcnet.com (mail.vcnet.com [209.239.239.15]) by mx1.FreeBSD.org (Postfix) with SMTP id BC83D43E6E for ; Tue, 3 Sep 2002 20:42:17 -0700 (PDT) (envelope-from thanatos@vcnet.com) Received: (qmail 35209 invoked from network); 4 Sep 2002 03:42:12 -0000 Received: from 1-0-401.adsl.vcnet.com (HELO vcnet.com) (209.239.236.203) by mail.vcnet.com with SMTP; 4 Sep 2002 03:42:12 -0000 Message-ID: <3D75832E.1080406@vcnet.com> Date: Tue, 03 Sep 2002 20:51:10 -0700 From: Thanatos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ken Easson Cc: questions@freebsd.org Subject: Re: guy with nic problem, got somewhere. References: <5.1.1.6.0.20020903181838.031f0c18@mail.justken.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Hi Ken, Here is what I do to hit my various virtual servers: My internal NAT network is 192.168.15.0 My webserver runs on 192.168.15.200 My Win2K box runs on whatever dhcp gives it .. 15.30 to 15.60 On my webserver, I have all the virutal servers in my /etc/hosts file: 192.168.15.200 foo.domain 192.168.15.200 bubblegum.domain 192.168.15.200 another.domain I can access all of these direct for my server ( development laptop ) or from my Win2K box. To get the Win2k box to resolve, you have to edit the hosts file ( the hosts file is on all version of windows as far as I know, but I don't know where ). The file is located in WINNT\System32\drivers\etc\hosts. Add the same entries as you have in /etc/hosts on your webserver and you should be all set. Oh yeah, don't forget to set your /etc/resolv.conf file correctly. Hope I understood your problem and this helps, Thanatos Ken Easson wrote: > 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 > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message