1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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?

    TIA
     
  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

    Slimey,

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

    Digity,

    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 192.168.1.201, public port 12021 points to port 21 on 192.168.1.202, public port 13021 points to port 21 on 192.168.1.203, 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.
     

Share This Page