• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Restrict FTP access by IP / user

Salvatore Brosio

New Pleskian
Hi,
i'm trying to restrict access to my ftp service using an .ftpaccess configuration file, but the server is ignoring it.
the content of .ftpaccess is:

<Class ip_allowed>
From 1.2.3.4
</Class>
<IfUser my_user>
<Limit LOGIN>
AllowClass ip_allowed
DenyAll
</Limit>
</IfUser>

Are .ftpaccess disabled by Plesk default settings?
Is this a correct approach?

Thanks in advance!
Salvatore
 
Actually, Plesk has no functionality to manage .ftpaccess file. The file should be managed manually by editing them through Plesk File Manager

The ProFTPd package shipped with Plesk is shipped with required modules to support .ftpaccess configurations:

mod_core.c
mod_xfer.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
 
Hi Igor, thanks for your reply!

Established that .ftpaccess works by default in Plesk, why ProFTPd is ignoring it?

I can still access my_user home folder with a different user and any IP despite .ftpaccess settings...
 
I suppose that mod_ban ProFTPd module is required additionally for your purpose.
 
Actually I found the way to make it work - perfectly working with Plesk Onyx - content of the .ftpaccess file:

Code:
<Limit ALL>
    Order allow, deny
    Allow from 127.0.0.1 
    Allow from IP1
    Allow from IP2
    Allow from IP3
    DenyAll
</Limit>
 
Back
Top