Routing / port forwarding / WAN ip address?

Discussion in 'Tomato Firmware' started by beikul, Oct 15, 2010.

  1. beikul

    beikul Networkin' Nut Member

    Apologies for the vague title, I wasn't sure how best to describe this.

    This is a simplified description of my setup (with a made up WAN IP address):

    • WRT54GL + Tomato 1.28 with LAN IP address 192.168.1.1
    • current WAN ip address 82.46.46.46
    • two PCs on the LAN:
      • PC One IP address 192.168.1.101
      • PC Two IP address 192.168.1.102
    • PC Two is running an FTP server listening on port 21
    • 'basic' port forwarding rule set up as follows:
      • proto = Both
      • src address = blank
      • ext ports = 21
      • int ports = blank
      • int address = 192.168.1.102 (i.e. PC Two)

    My issue is: on PC One, if I telnet to the the WAN ip address of 82.46.46.46 port 21 a connection is successfully forwarded to PC Two but the IP address that is recorded by the FTP server is the WAN IP of 82.46.46.46. I was expecting it to record the LAN IP address of PC One i.e. 192.168.1.101.

    The reason I was 'expecting' this is because I'm pretty sure it's the behaviour I have seen in the past with different firmwares (specifically HyperWrt 2.0).

    My questions:
    1) is this the expected behaviour and my memory is wrong?
    2) is there any way to change this to the behaviour I was expecting? I was thinking possibly modifying the routing table but I confess I do not really understand the concepts involved.

    Any help would be greatly appreciated, thanks in advance.
     
  2. beikul

    beikul Networkin' Nut Member

  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