proftpd localhost

What is the best way to limit access to the ftp server to localhost only - I have a number of Joomla sites and I would like to limit ftp access to the joomla backend ftp only (in other words only access from localhost) and all external requests should be denied.

Thanks in advance

Howdy,

You can set what IP address ProFTPd listens to by editing /etc/proftpd/proftpd.conf, and set “DefaultAddress” to “127.0.0.1”.

There’s more details on that option here:

http://www.proftpd.org/docs/directives/configuration_full.html#DEFAULTADDRESS

I tried that but it still accepts logins from external computers - I am a bit puzzled

I’m glad you got it working – thanks for letting us know how you fixed it!

-Eric

I have discovered the key to this. The proftpd.conf file should be updated as follows:

DefaultAddress 127.0.0.1

SocketBindTight on

Without the SocketBindTight the server would still accept requests from external IP addresses.