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

Ftp question

Discussion in 'Cisco/Linksys Network Storage Devices' started by LipSkidr, Apr 6, 2006.

  1. LipSkidr

    LipSkidr LI Guru Member

    I have read the back posts about ftp issues but have not been able to find an answer that will help.

    I have the NSLU2 setup with FTP and can access it via smartFTP from the inside with no issues. I have a buddy who bought the NSLU2 the same day I did and after help from here was able to get both up and running.

    He can also access his NSLU2 with smartFTP from inside, but if we try to access either one from outside the server we get the error below.

    Code:
    [13:31:50] SmartFTP v2.0.995.16
    [13:31:50] Resolving host name "********.myftp.org"
    [13:31:50] Connecting to 0.0.0.0 Port: 49154
    [13:31:52] Connected to ********.myftp.org.
    [13:31:53] 220 FTP server at 0.0.0.0 ready.
    [13:31:53] USER *******
    [13:31:54] 331 Password please.
    [13:31:54] PASS (hidden)
    [13:31:56] 230 User logged in.
    [13:31:56] SYST
    [13:31:57] 215 UNIX Type: L8
    [13:31:57] FEAT
    [13:31:58] 211-Extensions supported:
    [13:32:00]  XPWD
    [13:32:00]  EPRT
    [13:32:00]  EPSV
    [13:32:00]  ALLO
    [13:32:00]  APPE
    [13:32:00]  MDTM
    [13:32:00]  XCWD
    [13:32:00]  XCUP
    [13:32:00]  XMKD
    [13:32:00]  XRMD
    [13:32:00]  REST
    [13:32:00]  SIZE
    [13:32:00] 211 End
    [13:32:00] PWD
    [13:32:01] 257 "/" is the current working directory.
    [13:32:01] CWD /*******
    [13:32:02] 250 OK
    [13:32:02] PWD
    [13:32:04] 257 "/*******" is the current working directory.
    [13:32:04] TYPE A
    [13:32:05] 200 Transfer type changed to ASCII
    [13:32:05] Connecting to IP Repeater "http://repeater.smartftp.com:443/" ...
    [13:32:05] IP Repeater returned: "0.0.0.0"
    [13:32:05] PORT 0,0,0,0,0,0
    [13:32:07] 200 PORT 0.0.0.0:2363 OK
    [13:32:07] LIST -aL
    [13:32:47] Timeout (40s).
    [13:32:47] Active Help: http://www.smartftp.com/support/kb/index.php/74
    [13:32:47] Client closed the connection.
    [13:33:04] Resolving host name "******.myftp.org"
    [13:33:04] Connecting to 0.0.0.0 Port: 49154
    [13:33:06] Connected to *******.myftp.org.
    [13:33:07] 220 FTP server at 0.0.0.0 ready.
    [13:33:07] USER *******
    [13:33:08] 331 Password please.
    [13:33:08] PASS (hidden)
    [13:33:10] 230 User logged in.
    [13:33:10] SYST
    [13:33:11] 215 UNIX Type: L8
    [13:33:11] FEAT
    [13:33:12] 211-Extensions supported:
    [13:33:14]  XPWD
    [13:33:14]  EPRT
    [13:33:14]  EPSV
    [13:33:14]  ALLO
    [13:33:14]  APPE
    [13:33:14]  MDTM
    [13:33:14]  XCWD
    [13:33:14]  XCUP
    [13:33:14]  XMKD
    [13:33:14]  XRMD
    [13:33:14]  REST
    [13:33:14]  SIZE
    [13:33:14] 211 End
    [13:33:14] PWD
    [13:33:15] 257 "/" is the current working directory.
    [13:33:15] TYPE A
    [13:33:16] 200 Transfer type changed to ASCII
    [13:33:16] PORT 0,0,0,0,0,0
    [13:33:18] 200 PORT 0.0.0.0:2387 OK
    [13:33:18] LIST -aL
    [13:33:58] Timeout (40s).
    [13:33:58] Active Help: http://www.smartftp.com/support/kb/index.php/74
    [13:33:58] Client closed the connection.
    
    ====================================================================
    
    All info pertaing to login or IP has been changed to **** or 0.0.0.0.

    I have tried passive mode as suggested and still no luck, on a hunch
    I tried a web based FTP website and we can connect fine to the Lan from the outside with no issues. I would prefer to use my FTP application.

    Any suggestions I may have missed.

    TIA
    LipSkidr.
     
  2. ytsejam

    ytsejam Network Guru Member

    If you are using a router, make sure the port is open. 20 or 21
     
  3. LipSkidr

    LipSkidr LI Guru Member

    I am using a Dlink router and have port 21 set as private port and port 49152 as the public port.

    I tried setting up the way my vnc account is setup with two port forwards setup 1/ as private:21public: 21 and then 2/ private:49152 public:49152 but it did not like that.

    So now back to private: 21 and public: 21.


    *note
    I am not using 49152 on my vnc account also was just an example.
     
  4. d__l

    d__l Network Guru Member

    Is the error is at the "[13:32:07] LIST -aL" point after which it times out? If so, it looks as though the FTP connection went smoothly up to that point.

    Have you tried a line-by-line comparison of the access steps involved when you connect from within the LAN to what you posted above?
     
  5. LipSkidr

    LipSkidr LI Guru Member

    No I have not but it sounds like a good idea, will try that and see what I notice going wrong.
     
  6. d__l

    d__l Network Guru Member

    I don't know if this helps any, but when connecting to my NSLU2 from my LAN with WS_FTP Pro, after the lines:

    [13:32:04] TYPE A
    [13:32:05] 200 Transfer type changed to ASCII

    I don't see:
    [13:32:05] Connecting to IP Repeater "http://repeater.smartftp.com:443/" ...

    but instead see:
    PASV
    227 Entering Passive Mode (0,0,0,0,6,24)
    connecting data channel to 0.0.0.0:6,24(1560)
    data channel connected to 0.0.0.0:6,24(1560)

    PASV is a mode command sent by the program to the NSLU2.
     
  7. LipSkidr

    LipSkidr LI Guru Member

  8. d__l

    d__l Network Guru Member

    Is there some setting in smartFTP to enable Passive mode? Try it if it isn't set already.
     
  9. LipSkidr

    LipSkidr LI Guru Member

    I have tried passive, forced passive, auto, binary, ascii and all the settings in between. I don't think it is a NSLU2 problem because the web base FTP has no issues and it is happening on two boxes.
     
  10. d__l

    d__l Network Guru Member

    How about trying another FTP client? I don't know what you paid for smartFTP, but if it isn't working, then it doesn't help.

    Some of the FTP clients have free trial periods. I think WS_FTP has a 30-day trial. The pro version is a litttle pricey but they have a cheaper home version.

    Here's a plan:
    If you can get something else to work through your router, then you examine the connection log to try to make smartFTP do that. If you can't get smartFTP to duplicate, then you will have to buy another FTP client. If you can't get ANY other FTP client to work, then it may be something about your router.
     
  11. LipSkidr

    LipSkidr LI Guru Member

    I have tried about 5 diff clients through trial software and all the same issue. I am going to check with Dlink, my buddy also has the same Dlink so that would be my next best guess also.

    Thanks again :)
     
  12. LipSkidr

    LipSkidr LI Guru Member

    I noticed something when looking at my network settings this morning. My Gateway, DHCP server and DNS server all use the same IP address, is this normal?

    Just thought this could be a problem when trying to login via FTP?
     
  13. d__l

    d__l Network Guru Member

    If that IP address is the private one for your DLink router, then that wouldn't be abnormal or even unusual. BTW, is the gateway address the same as the one listed in your NSLU2?
     
  14. LipSkidr

    LipSkidr LI Guru Member

    Yes I have the NLSU2 set staically and using the gateway my router uses.

    I checked with Dlink and they say there is no reason it should not work with Passive?

    It's funny all is well until it gets to the List - Als section then just stops for 60 seconds then says the server refused the connection?
     
  15. ytsejam

    ytsejam Network Guru Member

    Could your ISP be blocking the FTP port. I know some do. You might want to log into your DSL or Cable Modem and see if you can open the port. I know, for example that with Remote Desktop (port 3389) I had to help a friend and open that port inside of the DSL modem as well as the router.
     
  16. LipSkidr

    LipSkidr LI Guru Member

    I am not sure about that, I use Sympatico and mt Friend uses Rogers and we both have the same issue.

    I don't believe they do though.
     
  17. PeterO

    PeterO LI Guru Member

    LipSkidr - I'm having same issue... ftp works fine within LAN, but from WAN can establish communication with LSNU2 but then it times out when gets to LIST command.
    My ISP is blocking ftp port 21, but I've forwarded to another port, and it seems you have too (private port 21 to public port 49152) so that shouldn't be an issue.
    I tried beta firmware V2.3R72, but that didn't help.
    This seems to be common issue, so hope we can figure it out.
     
  18. LipSkidr

    LipSkidr LI Guru Member

    PeterO

    Are you by any chance using a Dlink router? My Friend and I both have the same router except he has the usb port for lan printer and I don't.

    And I agree to the finding a solution :rockon:
     
  19. d__l

    d__l Network Guru Member

  20. PeterO

    PeterO LI Guru Member

    LipSkidr - Yes, I'm using a D-Link DI-524 router. The link provided by d__l gives some useful info on how ftp works and the cause of LIST failures, but its going to take some time to figure it out.
    Cheers
     
  21. LipSkidr

    LipSkidr LI Guru Member

    I will check out the link tonight, my little ones computer went :thumbdown: so I had to get that repaired, god forbid Dora does not load :shock:

    I use the DI-604 amd my friend uses the DI-704UP so just wanted to see if there might be a trend with D-Link.
     
  22. LipSkidr

    LipSkidr LI Guru Member

    Well my Friend and I found out if we leave our ftp client up and let it time out then reconnect a few times there is a 50/50 shot that it will connect. Some sessions work and some don't. It is like a game of craps with it.
     
  23. PeterO

    PeterO LI Guru Member

    LikSkidr - its promising you can at least connect sometimes. Sounds as if it might just be taking too long to respond. Have you tried chaninging the timeout setting in your ftp program (FileZilla sets the timeout detection at 30 seconds by default). I tried resetting it up to 5 minutes to no avail, but I'm not sure whether my problems are due to the NSLU2, my D-Link router and the way I've set port forwarding, or my ISP who blocks port 21.
    Good luck,
    PeterO.
     
  24. LipSkidr

    LipSkidr LI Guru Member

    Yes still kicking and screaming and working on this. I was wondering if it is possible when I upgraded the firmware it could have corrupted somehow? Maybe a reinstall would help? :thumbdown:
     
  25. LipSkidr

    LipSkidr LI Guru Member

    As the cowboys like to say F*** it I am going to try the firmwear upgrade, I know 100% it is not the router now. I did a port scan from my modem and port 21 is open, did a port scan with router to modem and was also able to hit port 21.
     

Share This Page