Routing servers

Posted on 2006-05-08
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,, 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.
Question by:smpolymen

    Author Comment

    Actually, it doesnt have to be a second NAT, I just want to limit the number of exposed ports
    LVL 3

    Expert Comment

    You can use IPcop for the second machine. (
    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.

    Author Comment

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

    Author Comment

    which is in my private network at 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.
    LVL 3

    Accepted Solution

    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
    or on port 25

    you can also add more if required

    They do not have to know any name will work.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    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…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    730 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now