From owner-freebsd-questions Tue Sep 3 21:31:38 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 879DD37B400 for ; Tue, 3 Sep 2002 21:31:33 -0700 (PDT) Received: from c001.snv.cp.net (h001.c001.snv.cp.net [209.228.32.115]) by mx1.FreeBSD.org (Postfix) with SMTP id B98FB43E4A for ; Tue, 3 Sep 2002 21:31:29 -0700 (PDT) (envelope-from ken@justken.net) Received: (cpmta 27186 invoked from network); 3 Sep 2002 21:31:28 -0700 Received: from 24.222.137.247 (HELO justken.justken.net) by smtp.register-admin.com (209.228.32.115) with SMTP; 3 Sep 2002 21:31:28 -0700 X-Sent: 4 Sep 2002 04:31:28 GMT Message-Id: <5.1.1.6.0.20020904012140.033827e0@mail.justken.net> X-Sender: ken@justken.net@mail.justken.net X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Wed, 04 Sep 2002 01:27:24 -0300 To: Thanatos From: Ken Easson Subject: internal browser can't view internal web server. Cc: questions@freebsd.org In-Reply-To: <3D75832E.1080406@vcnet.com> References: <5.1.1.6.0.20020903181838.031f0c18@mail.justken.net> 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 thankyou, yeah - that worked... only i have several domain names and many many more subdomains... each time i build a new website for a new client i set them up in the virtual domain name - this will create a massive hosts file, and i'd have to set that for each of the computers that are on the internal network, and need to see these files... i'm currently trying to set up an internal dns server to handle wildcard *.justken.net *.youthcircle etc names. i thought there was a way to do it using a combination of inat, and ipf and bounce - but i couldn't get that to work. thanks for the suggestion - it could be an emergency solution to get work done tomorrow if i cant get the dns solution to work! ken >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 > > 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