FTP not response in remote access

Discussion in 'Cisco/Linksys Network Storage Devices' started by xooxoo, Jul 6, 2011.

  1. xooxoo

    xooxoo Networkin' Nut Member

    Hi jac.
    I've tried access my NAS remotely, but no success.
    I setup ftp port in in web interface number X.
    I have a dyndns dinamic address.
    When I access out of house by ftp the browser ask user and pass. I input it, so ... no more response.
    When I execute the same procedure but http and with the port set Y, I get access webpage configuration on NAS200, remotelly.
    I was seeking services running in my NAS and I verified that in /etc/services :
    ftp X/tcp (like I had configured)
    ftp-data 20/tcp (original configuration)

    Here my ISP blocked the port 21. I believe that the ftp-data too will have to be set to other port to works.
    How to change the ftp-data port?
  2. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    Running an FTP server behind a NAT firewall requires cooperation from the NAT firewall. This is inherent to the FTP protocol because it needs to make a connection from the server to the client in addition to the client-to-server protocol.

    If your NAT firewall is not capable of FTP server support (and most home routers aren't!), the only way to make it work is to configure the FTP server to use specific ports, and open those ports on the firewall, and work in passive mode on the client.

    Rather than dealing with all this, you could install my firmware and use the SCP protocol instead of FTP. You will only need to open port 22 (SSH) on your firewall and as a bonus, all traffic will be encrypted. If you use FTP, no traffic is encrypted, not even the password that you have to type to log in.

  3. vlix

    vlix Networkin' Nut Member

    Hi Jac,

    I'm also trying to make my nas200 available over remote FTP, because I'd like to use it as an offsite backup location in combination with GoodSync (which doesn't support SCP). But I also got stuck. Like you wrote already, the problem is that you can't configure specific listening ports for the FTP server of the NAS. However, it should be possible to set custom listening ports with a startup script or something, right? I guess I'll install your firmware and start figuring out how to do that... any helpful hints would be greatly appreciated of course :) .Thanks!
  4. vlix

    vlix Networkin' Nut Member

    OK I figured out that I can change the PASSIVE_PORTS value in /etc/bftpd.conf to hard set listening ports. But I haven't figured out yet how to actually apply this change and retain it after a reboot...
  5. vlix

    vlix Networkin' Nut Member

    Managed to solve the problem by saving a custom version of bftpd.conf in /harddisk/volume_1/conf/, then having a startup script (early.sh) copy it to /etc/. It works :)
  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