Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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 ???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.