LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2006, 01:59 AM   #1
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Rep: Reputation: 15
Virtual Hosting DNS & 1 real IP on the Firewall


Hi,
I got some virtual hosts"name based" and DNS working fine in a local network
and I got just one real IP to configure an external firewall interface
How it suppose to work all my VH have the same local IP
for example I'll change my DNS IP from my domain registrar to my IP then to internal_ip:53
and NAT all HTTP & HTTPS to my local IP_z but all of VH_s are :80 :443
so how the DNS would answer the client "which is which"??
the whole network getting out from one public IP??
#=============================================
EXT-firewall-ip 1.2.3.4
ENT-firewall-ip 192.168.0.1

server 192.168.0.10
"Some Name Based Virtual Hosts on that server + DNS"
===================================
DNS query for www1.mysite.com
"from the firewall to the my DNS" what would be the answer here
My DNS will have all my VH_s as a "CNAME OR A with the same EXT-IP"
the return back to the client with the IP from the client again to the firewall
which forward HTTP to 192.168.0.10:80
How the web server suppose to answer here ?? which VH
===================================
How I'm suppose to configure such a setup?
Or the request at some point is an ip/hostname ..then I don't have to worry?
I know it works somehow but I'm missing something needs some declaration
Thanks

Last edited by ziox; 07-10-2006 at 02:05 AM.
 
Old 07-11-2006, 12:38 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You need to setup apache virtual hosts. You can have thousands of virtual hosts using a single IP address. For example you can have www.domain.com and www.example.com using the same IP address but different directories. Read about virtual hosts using apache.
 
Old 07-11-2006, 02:51 PM   #3
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Original Poster
Rep: Reputation: 15
Hi there,
Thanks for your reply, but if you have noticed I already have lots of VH using the
same IP "Name Based VH"
My question was mainly about DNS
I've 1 real ip on the firewall "Hardware firewall" then this Linux box
with 10 VH "My DNS has already these VH with the local IP"

Now the request comes to the firewall 1.2.3.4 .. "HTTP & HTTPS" >> 192.168.0.55 "where as many VH"
which VH suppose to answer "from the DNS with local IP_z or what"
or should I add this ip "firewall ip " to the VH and DNS entry
for that IP with CNAME_s for these VH and accept DNS queries for my domain and so on ???


============
Thanks again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up virtual hosting/DNS/ phatboyz Linux - Networking 6 03-16-2005 10:42 AM
DNS & Virtual hosting help needed amp2000 Linux - Networking 4 12-19-2003 01:00 PM
RedHat 9 Virtual Hosting -- Configure DNS?? mlhammer Linux - Networking 6 09-24-2003 08:10 PM
Problems With Apache & Virtual Hosting Using Dynamic DNS moetjojo Linux - Networking 7 12-02-2002 04:51 AM
Trying to understand DNS and Virtual Hosting dsiguy Linux - Newbie 2 11-26-2002 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration