Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

FTP help

Options
  • 27-03-2009 10:57am
    #1
    Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭


    Hi guys,
    I'm using a Freecom Network Drive Pro connected to a Sitecom WL-174 router to run an FTP server from home.

    I can access the NAS from within my network via http and ftp perfectly.
    I can access my router configuration externally if a add access via the WAN but this does not work for the ftp.

    Connecting with FireFTP externally I get a 530 User cannot log in error

    I tried setting up port forwarding in the router for port 21 and alternative ports as described in the PortForward.com guide).

    I haven't enables SSL or anything as yet. Also the Freecom UI is pretty bare so perhaps there may be a hidden implicit setting that I'm not seeing. However since it works internally I presume the problem lies with my router.

    I'm using Smart BB and they only report blocking port 25.

    Thanks.


Comments

  • Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭5uspect


    anyone?


  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,177 Mod ✭✭✭✭Jonathan


    Some routers allow ftp access for uploading new firmware etc. Are you sure you are not getting access denied when accessing your ftp port from outside?


  • Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭5uspect


    I think so. The Gene6 test gives the following:
    * About to connect() to xx.xx.xx.xx port 21
    * Trying 84.203.71.122... connected
    * Connected to 84.203.71.122 (xx.xx.xx.xx) port 21
    < 220 tc FTP version 1.0 ready at Fri Mar 27 17:45:32 2009
    
    > USER FTP_Server
    
    > PASS *****
    
    > PASS *****
    < 530 User FTP_Server cannot log in.
    * Access denied: 530
    * Closing connection #0
    

    Where as FireFTP internally gives
    220 vsFTPd 2.0.5+ (ext.2) patched by Freecom - ready...
           USER FTP_Server
    331 Please specify the password.
           PASS (password not shown)
    230 Login successful.
           FEAT
    211-Features:
    EPRT
    EPSV
    MDTM
    PASV
    UTF8
    REST STREAM
    SIZE
    TVFS
    211 End
           PWD
    257 "/home"
           TYPE A
    200 Switching to ASCII mode.
           PASV
    227 Entering Passive Mode (192,168,0,101,208,203)
           LIST
    150 Here comes the directory listing.
    226 Directory send OK.
    


  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,177 Mod ✭✭✭✭Jonathan


    Have you tried using your router login and password to test if you are accessing the router or the nas?


  • Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭5uspect


    jmccrohan wrote: »
    Have you tried using your router login and password to test if you are accessing the router or the nas?

    Well thats interesting!
    * About to connect() to xx.xx.xx.xxport 21
    * Trying xx.xx.xx.xx... connected
    * Connected to xx.xx.xx.xx (xx.xx.xx.xx) port 21
    < 220 tc FTP version 1.0 ready at Fri Mar 27 18:11:01 2009
    
    > USER admin
    
    > PASS *****
    
    > PASS *****
    < 230 Logged in
    
    > PWD
    < 257 "" is current directory
    * Entry path is ''
    
    > CLNT Testing from http://www.g6ftpserver.com/ftptest from IP xx.xx.xx.xx
    < 500 Unknown command 'clnt Testing from http://www.g6ftpserver.com/ftptest from IP xx.xx.xx.xx'
    * QUOT command failed with 500
    * Connection #0 to host xx.xx.xx.xxleft intact
    
    * Closing connection #0
    

    So I need to route the traffic to the NAS?


  • Advertisement
  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,177 Mod ✭✭✭✭Jonathan


    5uspect wrote: »
    Well thats interesting!
    * About to connect() to xx.xx.xx.xxport 21
    * Trying xx.xx.xx.xx... connected
    * Connected to xx.xx.xx.xx (xx.xx.xx.xx) port 21
    < 220 tc FTP version 1.0 ready at Fri Mar 27 18:11:01 2009
    
    > USER admin
    
    > PASS *****
    
    > PASS *****
    < 230 Logged in
    
    > PWD
    < 257 "" is current directory
    * Entry path is ''
    
    > CLNT Testing from http://www.g6ftpserver.com/ftptest from IP xx.xx.xx.xx
    < 500 Unknown command 'clnt Testing from http://www.g6ftpserver.com/ftptest from IP xx.xx.xx.xx'
    * QUOT command failed with 500
    * Connection #0 to host xx.xx.xx.xxleft intact
    
    * Closing connection #0
    
    So I need to route the traffic to the NAS?
    Yup.


  • Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭5uspect


    Thanks!


  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,177 Mod ✭✭✭✭Jonathan


    You may need to turn off the wan remote admin on the router, as the external ftp access to the router may override any port forward you may have set up.


  • Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭5uspect


    Hmm, I'm probably doing this wrong.
    I'm having difficulty setting a static route to reroute to the NAS.

    A added the NAS static ip, 192.168.0.101 and subnet as the destination and the router IP as the Gateway.

    attachment.php?attachmentid=75822&stc=1&d=1238180364
    As you can see, I'm clearly making a mess of it.


  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,177 Mod ✭✭✭✭Jonathan


    Try selecting PVC0 as opposed to a gateway ip.

    Not too sure tho tbh.


  • Advertisement
  • Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭5uspect


    no, I tried that as well.


  • Registered Users Posts: 4,931 ✭✭✭dingding


    Are both the FTP server and the Router on the same subnet on the LAN.

    I have smartbroadband and I can access my FTP server at home.

    So smart are not blocking it.


  • Closed Accounts Posts: 64 ✭✭awkward


    there should be no need to set static ip routes. in my setup I have zero static routes set up and can sucessfully ftp my nas externally.

    check the following
    on your nas check what port num you want to use (default is 21)
    forward this port (to the internal ip of the nas) on your router
    check that this port is open using one of the many online tests (eg ShieldsUp! or canyouseeme)
    make sure NAT is turned on on the router
    create an ftp user account on the nas and enable ftp server
    test internally and then externally


  • Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭5uspect


    I know Smart isn't blocking anything other that port 25.
    I'm having trouble rerouting WAN traffic to the NAS as jmccrohan figured out. I can access it on the LAN fine so I assume everything on that side is configured correctly.
    (There's nothing to configure there anyway!)

    Testing the connection here:
    http://www.g6ftpserver.com/en/ftptest
    rejects my FTP user's user/pass but accespt the router's credentials.

    I'm not sure how to reroute the traffic however.
    I presume this page or the previous one I posted is what I need but neither seem to work. The IP filter doesn't like the subnet of my NAS and throws back an error.
    75957.jpg


  • Moderators, Arts Moderators Posts: 10,518 Mod ✭✭✭✭5uspect


    Fixed it.
    The NAS's gateway was incorrect, just switched it to the routers IP and set up the portforward under the Virtual server and its done!


Advertisement