• 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.

Issue New Subcription and Fail2Ban

WebHostingAce

Silver Pleskian
Hi,

I have came across this issue few times.

Adding New Subcription with Wordpress is not covered by Wordpress Jail.

According to Fail2Ban Log ONLY the Error Log for new Subcription is ADDED to Fail2Ban.

So the issue seems to be any Jails with Access logs.

Turning off and on the Fail2Ban fix the issue.

Tested on,

CentOS 6 & 7
Plesk 17.5 #9

Possibly a bug?

Thank you.
 
Last edited:
Hi AusWeb,

I'm currently also struggling with fail2ban to mysql, see my post here.

Not sure what you mean with 'New subscription', but the default plesk-wordpress filter uses this failregex:

^<HOST>.* "POST .*/wp-login.php([/\?#\\].*)? HTTP/.*" 200

So you need to set the jail to search the access logs. I use this plesk-wordpress logpath:

logpath = /var/www/vhosts/*/logs/access_log

Maybe this helps you?

Best regards,

Bjorn Joosen
 
Hi Bjorn,

Sorry I mean by 'New subscription' > Adding a new website to the server.

I had a look into Fail2Ban log, Only the error log is added. Not the Access Logs.

Unless I restart F2B. Access Logs to the New Website will not added to F2B.

Seems like a bug but so far anyone from Plesk Team haven't reply.

Thank you!
 
F2B reads the logs at startup, so this is normal fail2ban working.

I agree it should be done by plesk after adding a new hosting, but this can be tricky. fail2ban can take a looooong time to restart if you have many jails that read domainlogs. restarting fail2ban every time a hosting is added can take very long.

And then what with fail2ban setups that don't read domainlogs, but only general logs?

We used to have an wp-xml-rpc jails also, but disabled them because they interfere with normal wp working.

this is a good article on xml-rpc

Should You Disable XML-RPC on WordPress?

We had a client that uses Jetpack plugin on dozens of sites and almost left because "his sites where never online when he was updating them"

regards
Jan
 
Hi Linulex,

Thank you for your input.

Do you think its the Normal behavior of F2B?

I can see the Newly Added Domain's Error log is added to F2B without restarting but not the Access Logs. So the anything covered by Access Logs are not covered. ex. wp-admin logins..
 
Last edited:
Back
Top