LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-04-2009, 09:16 PM   #1
dawonn
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
Question subdomains behind single IP


Hi all, First post here, so thanks in advance for your help!

Here is my network setup:

Internet <-> [public IP] Router [192.168.x.x] <-> Local
Local <-> DMZ
Local <-> HostB
Local <-> HostC

I have a system set up as a DMZ which works great for accessing SSH and other various services. I have a dyndns account that points to my public IP and allows me to access my DMZ box from around the world.

I would like to make a subdomain of my current dyndns account and point it to HostB so that it can host a webserver on it, and have another subdomain point to HostC with a separate webserver on it. each would have SSH, FTP, Etc and have to not conflict with one another behind one IP.

I don't even know if it is possible, but it seems like if there is a request for dev.host.homelinux.com that packet would have to hit host.homelinux.com and could be iptable'd to be routed to the appropriate local machine somehow.

I'm not even sure what to call this kind of setup, please advise.
 
Old 05-05-2009, 12:45 AM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Jose, CA
Distribution: Fedora, RHEL, CentOS
Posts: 136

Rep: Reputation: 16
You need a router that can do NAT. All subdomains will have the same external IP.

http://en.wikipedia.org/wiki/Network...ss_translation
 
Old 05-05-2009, 12:26 PM   #3
dawonn
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Unhappy

WRT: http://www.mail-archive.com/vserver@.../msg07840.html

I am to believe that TCP/IP carries no domain name information for iptables to filter on and my ideal setup is not possible. PLEASE correct me if you know better.


-- For others that want to do something like what I wanted, here are some links to interesting websites that may prove useful
* http://utcc.utoronto.ca/~cks/space/b...lesRedirection


I ended up with traditional port forwarding for my uses and have a landing page with a reminder of what ports forward me to where behind a login page.
 
  


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
subdomains tommytomato Ubuntu 9 06-20-2007 07:30 AM
Subdomains tommytomato Linux - Newbie 5 02-04-2004 09:48 AM
Subdomains papaj Linux - General 7 04-26-2003 04:19 PM
Bind and subdomains jnsc Linux - Software 2 03-01-2003 08:43 AM
Subdomains setting up - help :) Acid_Burn Linux - General 4 12-15-2002 05:10 AM

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

All times are GMT -5. The time now is 11:38 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