I’m having some issues with setting up the FTP so that I can access my WD remotely.
I have enabled FTP access in the dashboard settings and port forwarded. I can access all my shares through FTP when I type in the URL: ftp://(my external ip). However, I’m unable to download anything! Would really appreciate some help here. Thanks.
As I have mentioned before, I am able to access all the shares if I enter the FTP through my external IP. The issue is that I cannot download any files.
You need to open the port 21 on your router to the port 21 of nas first. It’s called port forwarding. Get to know your router brand/model then Google on how to port forward with your router brand/model. Each router differs.
Hello Nazar, I have already done that at the beginning.
I have checked that if I close the port 21, I will have no access to the FTP at all. With the port opened, I am able to go into the FTP server and see all the shares, but I cannot download anything.
It doesn’t solve the problem though. Are there anything else I need to do to connect in active mode?
Anyway, I’ve played around with the ftp client and found out that I can actually transfer small text files from my computer to the FTP server and vice versa. However, if I try to transfer anything else, connection would time out. Furthermore, I am able to delete any files too. Hopefully these information would be useful.
Active mode doesn’t require additional setups. It’s by default transferring data in active mode when you use CLI clients.
Passive mode on the other hand requires additional port(s) to be configured and port forwarded for data transfer. The client will issue PASV command to initiate this. The port range needs to be port forwarded and the server config will also need to specify the port range eg. /etc/vsftpd.conf:
pasv_address=ip/host of external IP
pasv_addr_resolve=YES
pasv_enable=YES
pasv_promiscuous=YES
pasv_min_port=2000
pasv_max_port=2010
If you’re able to transfer small files then this shouldn’t be the issue. I’m not sure though if your ISP is the cause of this.
Any error? If just timeout, double check your port forward. You could use online service to check if the port is open.
Just to let you know only root is able to ssh/sftp. If you need other users to login you’ll need to modify “AllowUsers” the /etc/ssh/sshd_config file. Either append the usernames space separated or comment out to allow all. I would also suggest that you set PermitRootLogin to no or at least to without-password(via key exchange) else your root will be vulnerable to internet brute force attacks.
I have checked my port using canyouseeme.org with no problem.
Btw, my sshd_config doesn’t have the option PermitRootLogin. I also just realised that I have created this thread in the wrong forum: I am actually using a My Cloud Mirror. I guess I’ll have to post this issue in the right section.