• 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 Socket() Erros while under DoS

MaxChri

New Pleskian
Hey guys,

while my site was under DoS, I got multiple erros within the proxy_error_log file in the domains logs directory.

Code:
upstream timed out (110: Connection timed out) while reading response header from upstream
connect() failed (110: Connection timed out) while connecting to upstream
upstream timed out (110: Connection timed out) while SSL handshaking to upstream

socket() failed (24: Too many open files) while connecting to upstream

When I entered the website, I got "500 internal server error - nginx".

- There where no error logs on nginx or apache that the max connections are reached. (var/log/apache2 & var/log/nginx)
- Websites are running via cloudflare (cloudflare ips are whitelisted in fail2ban)
- The attack was very weak (150pps in plesk monitoring) but websites where down after that. No resources in plesk monitoring reached it's limit.
- Plesk is running on a vps with default php settings.

Do you have any suggestions how to fix these timeout errors? And why are the websites down that fast?
 
- There where no error logs on nginx or apache that the max connections are reached. (var/log/apache2 & var/log/nginx)

Did you also look into the domain logs at /var/www/vhosts/system/<domain>/logs?

Do you have any suggestions how to fix these timeout errors? And why are the websites down that fast?
Keep in mind that you are sharing resources with other vps on the same physical server. Depending on your plan, you might experience throttling sooner or later when using e.g. too much I/O bandwidth.
 
Hey @mow yeah I checked the domain logs, there has been a lot of entries like get requests at this time.

Do you know a good tool how to throttle I/O bandwidth?


I know it's not a huge attack but it seems like there are a lot incoming packet floods.
rVNQAqS.png
QVL0aXh.png
 
The best thing to do is to put a DoS-protection in front of your server, because once a flood reaches your network interface, it's normally too late to do something about it. It will simply eat up all your bandwith, making your system inaccessible through the network. So what you'll really need is a router in front of your system that is capable of recognizing and filtering all typical DoS attacks.

In addition to that protection you can limit the bandwith on your network interface by applying some iptables rules. However, there is not standard recipe for this, because your options are manifold and should match your specific needs. I suggest to search Google for "iptables limit" or "iptables limit burst" or similar keywords and to delve into some articles that describe how you can use iptables to protect your server against too much useless traffic.
 
Do you know a good tool how to throttle I/O bandwidth?
Not anything that would help you as user on a vps.
As the ethernet device is shared, the hypervisor has to take the packets and distribute them to the virtual hosts. So any useful rate-limiting would have to be done in the hypervisor, which can only be configured by the provider.
 
Back
Top