• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Can Plesk block a specific incoming IP address?

David Jimenez

Basic Pleskian
I run our domain through Cloudflare and have it setup with no DNS wildcards. So, only our domain.com and www.domain.com have A records. Today we have seen a few hundred attempts by a single IP address out of China to hit our server asking for a file that doesn't exist (wpad.dat).

I have blocked that IP address at the Cloudflare firewall, but it keeps making it through to our server. Cloudflare says that the IP address isn't showing up in their logs so they have found a way to get directly to our server. I didn't think that was possible, but now I need to find a way to block them directly at the server.

Is this possible with Plesk? I don't see a security setting that allows me to enter an IP address as such.

Thanks
 
Hi David Jimenez,

in order to be able to see the ( additional ) extension in "Tools & Settings", you certainly have to install it first ( "HOME > Updates and Upgrades" ) . ;)

Plesk-Onyx_Updates-Upgrades_Extensions_Firewall.png

or consider to install it over the command line ( as user "root" ):
Code:
plesk installer --select-product-id plesk --select-release-current --install-component psa-firewall
 
Last edited by a moderator:
So, just to make sure I got this right. I was able to do the install of the firewall. Now, I want to ONLY allow incoming traffic to our web site from Cloudflare IP address. So, I modified the WWW Server setting to:

Allow incoming from 103.21.244.0/22, 103.22.200.0/22, 103.31.4.0/22, 104.16.0.0/12, 108.162.192.0/18, 131.0.72.0/22, 141.101.64.0/18, 162.158.0.0/15, 172.64.0.0/13, 173.245.48.0/20, 188.114.96.0/20, 190.93.240.0/20, 197.234.240.0/22, 198.41.128.0/17, 199.27.128.0/21, 2400:cb00::/32, 2405:8100::/32, 2405:b500::/32, 2606:4700::/32, 2803:f800::/32, 2a06:98c0::/29, 2c0f:f248::/32

Just want to make sure that I put this in the right category.
 
Hi David Jimenez,

I hope for you, that you never want to update/upgrade/patch your server, or use mail - related services, because if you completely block other traffic, but the ones you defined, you will experience issues on your server ( just inspect the corresponding log - files, pls. ). ;)
 
Mail is on another box, so that isn't an issue. Problem is Plesk won't accept those changes. I keep getting the following message:

Warning: The current configuration has not been activated. The system has been reverted to the previous configuration. This has occured because there were connection problems between your browser and the server. Most probably, the reason is that you have arranged the configuration so that connections from your computer to the server are prohibited.
 
Back
Top