Link to home
Start Free TrialLog in
Avatar of smpolymen
smpolymen

asked on

Routing servers

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.
Avatar of smpolymen
smpolymen

ASKER

Actually, it doesnt have to be a second NAT, I just want to limit the number of exposed ports
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.
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
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.
ASKER CERTIFIED SOLUTION
Avatar of Bennoo
Bennoo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial