NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
BaJohn
Jan 27, 2016Virtuoso
WordPress and FTPing to and from it.
Using Windows 10 and CoreFTP, having setup FTP on my ReadyNAS RN516. Running CoreFTP (as the ReadyNAS admin user) it seems to connect okay but does not show any files whatsoever at the other end....
- Jan 28, 2016
If you only want FTP on the local LAN then there is no need to figure out what masquerading does. But I'll tell you anyway :smileysurprised:
With passive mode FTP, the server sends the client the IP address and port numbers for the data connections. If the NAS has a public internet address, then that is fine. But when your FTP server is behind a NAT, then your client can't use the local IP address over the internet. Instead it needs to use the public IP address of the NAS router.
There are two solutions - one in the client, and one in the server.
Some clients detect that the IP address isn't routable (e.g., is 192.168.xxx.xxx or one of the other private address spaces), and simply substitute the public address of the control connection. Basically they ignore the IP address they get from the server, and only use the port number. FileZilla does that (so I don't need masquerading in the server).
The server solution is simply to sent the router IP instead of the local LAN IP. That's what masquerading does. You enter a DNS name or IP address, and it uses that instead of the local LAN address.
BaJohn wrote:
My goal is to FTP to the WordPress folder /apps/wordpress/web/wp-content/ to easily upload and change items in WordPress on the NAS.
How do I arrange a share that covers that folder?
The best way is to create a wordpress share on the NAS, and copy the /apps/wordpress/web/wp-content/ contents to it. Then create a symlink in /apps/wordpress/web/ called wp-content that points to the new share (deleting the wp-content folder).
Then you have all the normal access controls on the folder.
BaJohn
Jan 28, 2016Virtuoso
BaJohn wrote:Hi BrianL
I've just realized I cannot find the second 'page' shown in your post.
The one with:-
Documents, Properties, Network Access and File access.
Where is that found on the NAS?
Aarrgghhh - found it - The "documents" is the name of a share. Not been here for a long while.
My goal is to FTP to the WordPress folder /apps/wordpress/web/wp-content/ to easily upload and change items in WordPress on the NAS.
How do I arrange a share that covers that folder?
StephenB
Jan 28, 2016Guru - Experienced User
If you only want FTP on the local LAN then there is no need to figure out what masquerading does. But I'll tell you anyway :smileysurprised:
With passive mode FTP, the server sends the client the IP address and port numbers for the data connections. If the NAS has a public internet address, then that is fine. But when your FTP server is behind a NAT, then your client can't use the local IP address over the internet. Instead it needs to use the public IP address of the NAS router.
There are two solutions - one in the client, and one in the server.
Some clients detect that the IP address isn't routable (e.g., is 192.168.xxx.xxx or one of the other private address spaces), and simply substitute the public address of the control connection. Basically they ignore the IP address they get from the server, and only use the port number. FileZilla does that (so I don't need masquerading in the server).
The server solution is simply to sent the router IP instead of the local LAN IP. That's what masquerading does. You enter a DNS name or IP address, and it uses that instead of the local LAN address.
BaJohn wrote:
My goal is to FTP to the WordPress folder /apps/wordpress/web/wp-content/ to easily upload and change items in WordPress on the NAS.
How do I arrange a share that covers that folder?
The best way is to create a wordpress share on the NAS, and copy the /apps/wordpress/web/wp-content/ contents to it. Then create a symlink in /apps/wordpress/web/ called wp-content that points to the new share (deleting the wp-content folder).
Then you have all the normal access controls on the folder.
- BaJohnJan 28, 2016Virtuoso
StephenB wrote:
BaJohn wrote:My goal is to FTP to the WordPress folder /apps/wordpress/web/wp-content/ to easily upload and change items in WordPress on the NAS.
How do I arrange a share that covers that folder?
The best way is to create a wordpress share on the NAS, and copy the /apps/wordpress/web/wp-content/ contents to it. Then create a symlink in /apps/wordpress/web/ called wp-content that points to the new share (deleting the wp-content folder).
Then you have all the normal access controls on the folder.
What a stonking idea ........why didn't I think of that ............Thanks
- BaJohnJan 29, 2016Virtuoso
BaJohn wrote:
StephenB wrote:
BaJohn wrote:My goal is to FTP to the WordPress folder /apps/wordpress/web/wp-content/ to easily upload and change items in WordPress on the NAS.
How do I arrange a share that covers that folder?
The best way is to create a wordpress share on the NAS, and copy the /apps/wordpress/web/wp-content/ contents to it. Then create a symlink in /apps/wordpress/web/ called wp-content that points to the new share (deleting the wp-content folder).
Then you have all the normal access controls on the folder.
What a stonking idea ........why didn't I think of that ............Thanks
In trying to implement this I have come across the following problem.
I would like to have all the 'wp-content' directories and files owned by 'admin' in group 'admin.
The 'wp-content' directory itself is find as this was created by admin using the "New Shares" functionality and ownership changed to admin from the GUI.
In copying (as root via SSH) all the new sub-directories and files are all owned by root.
Trying to 'su - admin' does NOT work.
Trying 'sudo -u admin' with copy command does NOT work.
Decided to do the copy as root then use 'chown -R admin:admin wp-content' to correct the ownership.
Thought it was worth indicating the problem ....
Obviously the savvy Unix person will not not even blink at it, but us old timers need a guiding hand,
and maybe this will nugget will help someone else.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!