• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Forwarded to devs Plesk ProFTPD Fail2Ban jail fails to block banned IP addresses on SFTP port 8023

Genisys-Matt

New Pleskian
Username:

TITLE

Plesk ProFTPD Fail2Ban jail fails to block banned IP addresses on SFTP port 8023

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Product version: Plesk Obsidian 18.0.82.5
OS version: Debian 12.15 x86_64
Build date: 2026/11/25 19:00
Fail2Ban v1.1.1

PROBLEM DESCRIPTION

The default Plesk ProFTPD Fail2Ban jail (plesk-proftpd) does not include the port used by Plesk's additional ProFTPD SFTP service (TCP 8023).

Although Fail2Ban correctly detects failed SFTP authentication attempts and bans the offending IP addresses, the associated firewall action does not include port 8023.

Consequently, banned IP addresses can continue attempting authentication against the SFTP service, effectively rendering the jail's protection ineffective for this port.

STEPS TO REPRODUCE

  1. Enable the additional ProFTPD SFTP service in Plesk using TCP port 8023.
  2. Enable the default plesk-proftpd Fail2Ban jail.
  3. Configure the jail to ban IP addresses after three failed authentication attempts.
  4. From an external test IP address, perform sufficient failed SFTP authentication attempts against port 8023 to trigger a ban.
  5. Verify that Fail2Ban has banned the IP address using:
    fail2ban-client status plesk-proftpd
  6. Inspect the active firewall rule using:
    iptables -L INPUT -n --line-numbers | grep -i proftpd
  7. Attempt another SFTP connection from the banned IP address.
The SFTP service remains accessible from the banned IP address because port 8023 is not included in the default firewall action.

ACTUAL RESULT

Fail2Ban correctly detects failed SFTP authentication attempts and records the offending IP address as banned.

However, the default jail action is:

iptables-multiport[name="plesk-proftpd", port="ftp,ftp-data,ftps,ftps-data"]
The resulting iptables rule is:

-A INPUT -p tcp -m multiport --dports 21,20,990,989 -j f2b-plesk-proftpd
TCP port 8023 is missing.

On our production server, an offending IP address continued attempting SFTP authentication for over 17 hours after being banned.

Fail2Ban repeatedly logged "already banned" messages, whilst the corresponding iptables rejection rule recorded zero packets and bytes.

EXPECTED RESULT

When Plesk's additional ProFTPD SFTP service is enabled, its configured listening port should automatically be included in the plesk-proftpd Fail2Ban firewall action.

When Fail2Ban bans an IP address following failed SFTP authentication attempts, subsequent connections from that IP address should be rejected by the firewall before reaching the SFTP service.

If the SFTP listening port is subsequently changed through Plesk, the associated Fail2Ban action should also be updated accordingly.

ANY ADDITIONAL INFORMATION

We identified this issue whilst investigating repeated unauthorised authentication attempts against a production Plesk server.

An offending IP address was initially banned on 3 December 2026 at 17:28:36 GMT, but further authentication attempts were recorded until at least 10:45:50 GMT on 4 December 2026.

We implemented a workaround entirely through the Plesk control panel:

Tools & Settings → IP Address Banning (Fail2Ban) → Jails → plesk-proftpd

We amended the existing action to:

iptables-multiport[name="plesk-proftpd", port="ftp,ftp-data,ftps,ftps-data,8023"]
Following application of this change, we verified that the active firewall rule now includes port 8023:

-A INPUT -p tcp -m multiport --dports 21,20,990,989,8023 -j f2b-plesk-proftpd
All 27 existing banned IP addresses were successfully retained.

No Plesk-managed configuration files were manually modified.

The attacker ceased attempting authentication shortly before the workaround was applied, so we have verified the corrected firewall configuration but have not yet observed a rejected packet from that particular IP address.

Supporting logs and configuration output can be provided privately upon request.

Please investigate whether the default Fail2Ban configuration has overlooked the additional ProFTPD SFTP service and whether other Plesk installations using this functionality may also be affected.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
No need to be sorry at all! There was no public report before as far as I am aware.
And reports are always welcome as they a great way to improve Plesk
 
Back
Top