Multiple servers, same ports

Discussion in 'Cisco/Linksys Wireless Routers' started by DiGiTY, Jul 14, 2007.

  1. DiGiTY

    DiGiTY LI Guru Member

    I have a number of machines sitting behind my WRT54GS (w/ latest stock/Linksys firmware) each running web, email, ftp, ssh, etc. servers. I know I can only set up one machine for Port Forwarding for those corresponding ports at a time. Is there a workaround so that I can get to all the machine's services even they all have the same ports?

  2. Slimey

    Slimey Network Guru Member

    sounds like what you want is to put your machine in the routers dmz
  3. shrapnel64

    shrapnel64 Network Guru Member


    The DMZ doesn't actually include support for multiple hosts; it's typically only an address space for 1.


    May I ask if you are using a business-class connection? If so, I would think that you would want a business-class or at least a SOHO router which supports One-to-One NAT.

    However, in the meantime, I suppose that you could setup each server application (FTP, SSH, etc.), through a Port Redirection to each box. For example, setup SSH on port 23 (external) for box 2, but it redirects it to port 22 internal to the network to box 2.

    Really...without having a router such as the RV042 or RV082, I'm not sure that you are able to do it, even with 3rd party firmware. I would recommend multiple IPs as well if you need access to the same services, if port redirection will not work for you.
  4. DiGiTY

    DiGiTY LI Guru Member

    is there a way i can do something similiar to D-Link's Virtual Servers feature on their routers where I can choose which public port points/forwards to which IP and private port (i.e. public port 11021 points to port 21 on, public port 12021 points to port 21 on, public port 13021 points to port 21 on, etc.)?
  5. HennieM

    HennieM Network Guru Member

    With 3rd party firmware, and if that 3rd party firmware allows you to insert a script at startup, you would be able to do it by manually specifying some iptable rules.

    I have not done it myself on a WRT, but I do it all the time on a Linux box, which uses the same iptables.

    Some 3rd party f/w may also allow it from the web interface. The firmware you can try in turn depends on what version GS you have. See the WRT autopsy on this site. My guess is that you have a V5+, which limits you to dd-wrt micro firmware, and the conversion stock f/w -> dd-wrt is a bit tricky.

    Another way, although perhaps not very elegant, may be to forward all incoming connections to some box behind your WRT, and then have this box forward to box A port X, box B port X, etc., based on the port being connected to. This way you take the forwarding job away from the WRT.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice