• 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!
  • 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 Prevent direct access with ip address

seferdemirci

New Pleskian
Hi Plesk family,

I think this question concerns a lot of people with security concerns. We use various proxy services like Cloudflare or Amazon CloudFront to hide the real IP address of the server. However, some port control bots can scan various server IP addresses from the IP pools and opened ports and see which domains host on the IP addresses. (This can be done by SSL certificates pointing to which domains)

For instance, you can check your domain via this tool search.censys.io

So my point is; how can we prevent direct access to the server IP for all ports that are used by Plesk? (80, 443, 21, 3306 etc.)

Thanks
 
As a server is always and only addressed by its IP address I wonder what alternative you are suggesting? The TCP/IP stack is based on IP addresses, not on domain names. If you cannot address a server by its address, you cannot address it at all.
 
As a server is always and only addressed by its IP address I wonder what alternative you are suggesting? The TCP/IP stack is based on IP addresses, not on domain names. If you cannot address a server by its address, you cannot address it at all.
I found a solution, but it didn't make much sense. We can limit direct access to the server's IP address to the Cloudflare IP ranges located at this address. But these IP addresses can change in a while, and in my example, it is necessary to define many rules on AWS EC2 security groups according to these IP addresses.

What I was wondering is is it possible to configure this on the server-side or on Plesk? Is it possible to configure it to only accept traffic from Cloudflare IP ranges?
 
As a server is always and only addressed by its IP address I wonder what alternative you are suggesting? The TCP/IP stack is based on IP addresses, not on domain names. If you cannot address a server by its address, you cannot address it at all.
By the way, I found a repository that can update AWS EC2 Security rules daily if you have cron it according to Cloudflare IP ranges. So right now, our server really hides behind the Cloudflare proxy servers.

For sure, my solution was based on AWS, but we are open to any suggestions. If you have any additional ideas that can do via Nginx or Plesk firewall, do not hesitate to contribute.
 
By the way, I found a repository that can update AWS EC2 Security rules daily if you have cron it according to Cloudflare IP ranges. So right now, our server really hides behind the Cloudflare proxy servers.

For sure, my solution was based on AWS, but we are open to any suggestions. If you have any additional ideas that can do via Nginx or Plesk firewall, do not hesitate to contribute.
Repository here
GitHub - johnmccuk/cloudflare-ip-security-group-update: Lambda function to retrieve Cloudflare's IP address list and update the specified security group
 
Back
Top