proftpd localhost

5 posts / 0 new
Last post
#1 Thu, 04/11/2013 - 11:52
hamishguthrie

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

Thu, 04/11/2013 - 12:16
andreychek

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#DEFAULTAD...

Fri, 04/12/2013 - 03:48 (Reply to #2)
hamishguthrie

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

Sat, 05/03/2014 - 13:58
hamishguthrie

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.

Fri, 04/12/2013 - 07:12
andreychek

I'm glad you got it working -- thanks for letting us know how you fixed it!

-Eric

Topic locked