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

Port Forwarding in Client Mode

Discussion in 'Tomato Firmware' started by georgiatech, Jun 24, 2008.

  1. georgiatech

    georgiatech LI Guru Member

    I have two WRTGL routers with Tomato firmware. Is it possible to have FTP port forwarding to the second router which is running in client mode? The second router uses the address 192.168.2.2 and the first router uses 192.168.1.1.
     
  2. LLigetfa

    LLigetfa LI Guru Member

    If the second router is in client mode, then it really shouldn't be doing any routing. Why then is it in a different subnet or are you using a /16 mask?
     
  3. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    Yes. In wireless client mode, the wireless connection works as your WAN connection and port forwarding rules apply.
    I believe he is saying that the second router uses 192.168.2.2 on the LAN side. If the WAN (wireless) side uses DHCP or a 192.168.1.0/24 address, he's fine.
     
  4. georgiatech

    georgiatech LI Guru Member

    I'm using the second router in client mode because I have a computer that requires an Internet connection AND an Nfusion that also requires an Internet connection. If it was only the computer, I could use a wireless card in the computer. I'm not familiar with the terminology, but what I meant was that the IP address 192.168.1.1 allows me to get into the Tomato menus of the first router and the IP address 192.168.2.2 allows me to get into the Tomato menus of the second router which is in client mode. I've tried port forwarding in the first router for FTP(21) to my computer address 192.168.2.117, but Serv-U still doesn't work.
     
  5. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    That's because everything connected to the second router looks like one device to anybody upstream. You'll have to do port forwarding on both routers. On the first router, you'll have to forward port 21 to the WAN IP of the second router. On the second router, you'll have to forward port 21 to 192.168.2.117.

    That said, if that is all you are trying to accomplish, it may be easier to just use WDS. Set up both routers as WDS (WDS+AccessPoint if you want other wireless clients). Then, you'd give your second router an address like 192.168.1.2 to put it on the same subnet as the first router. With this setup, it is as if the devices plugged into the second router are plugged directly into the first. The single port forward you've set up would work fine then.
     
  6. georgiatech

    georgiatech LI Guru Member

    The first method works! Thank you very much. Now I'll try the WDS method, because I have lots of time on my hands.
     
  7. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    Great!

    With either method, though, you should make use of the Static DHCP feature. Without it, any of the ip addresses can change, breaking any port forwarding you have set up.

    And, unless you have a particular reason to use wireless client mode (such as wanting computers connected to router one not to see computers connected to router two except for forwarded ports), I would definitely keep at it until you get WDS working. It is a much cleaner solution that puts all your computers on the same subnet as if they are all connected to the same router.
     
  8. georgiatech

    georgiatech LI Guru Member

    And port forwarding works also, with WDS! Thank you! Thank you! I had WDS figured out, but not with port forwarding. Now everything works, but better still, I've learned something. Keeping all computers on the same subnet is much more elegant.
     

Share This Page