• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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