?
Solved

Routing servers

Posted on 2006-05-08
7
Medium Priority
?
194 Views
Last Modified: 2010-03-19
I have a domain name and 1 IP address. I give that address to a router that NATs the public address. I have another router behind the first that NATs the private address. Behind that I want to have servers like s1.mydomain.com, s2.mydomain.com, etc. I want traffic to come in on a port from the first router, go to the second and depending on the host name route to the appropriate server. How could I do this. The first router is not very configurable, although I can forward ports but not much else. The second router will probably be some kind of linux box, so configurable. Also suggestions for the best distro for this job would be appreciated.
0
Comment
Question by:smpolymen
  • 3
  • 2
5 Comments
 

Author Comment

by:smpolymen
ID: 16634360
Actually, it doesnt have to be a second NAT, I just want to limit the number of exposed ports
0
 
LVL 3

Expert Comment

by:Bennoo
ID: 16636228
You can use IPcop for the second machine. (www.ipcop.org)
its free, is a small download and very configurable.
Can do NAT VPN etc.

create port redirections from router 2 to router 1 then DMZ?
or use a public subnet ip you have one.
0
 

Author Comment

by:smpolymen
ID: 16638388
To be specific, I have a domain and I use no-ip as a dns. I have it set to send *.mydomain.com to my only IP address which is a d-link router. I want to know what to do so if someone wants x.mydomain.com. how to I make it go to x
0
 

Author Comment

by:smpolymen
ID: 16638458
which is in my private network at 192.168.0.4. But I also have y, z, a, etc. I dont want to open a port for every server. What can I do so the router or some other server can get all the traffic from one or two ports and send the data to the correct host and back.
0
 
LVL 3

Accepted Solution

by:
Bennoo earned 2000 total points
ID: 16643708
It is not possible (i believe) without a subnet of static ip addresses and domain name.
you are better off doing the following

point for example:
mail, www, webmail and pop to the no-ip address
or just *

then point the required ports to the correct server.

25 to mail server
80 to web server
(pick a port eg 8080) to webmail server
110 to pop server

you can then tell the clients to access webmail on webmail.mydomain.com:8080
or mail.mydomain.com on port 25

you can also add more if required

They do not have to know any name will work.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question