Is anyone else being brute forced by Chinese IP addresses?

So for the past few days i’v been keeping track of my fail2ban logs and noticed that a ton of Chinese ip addresses are being banned. It seems from my auth.log they are trying to brute force there way into my root account. I was wondering if anyone else is experiencing this and if its something I should report directly to DigitalOcean?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This is not at all unusual for any server on the public Internet. There are a few steps you can take to reduce the risk from this. You have indicated you already set up fail2ban which is a great step.

You can change your ssh port. Since most of these brute force attacks are automated and usually target the default port 22 this would further reduce the number of attacks on your ssh service.

You could set up CloudFlare’s free reverse-proxy plan in front of your droplet. Since ssh is not proxied a user looking up your domain name would only receive a CloudFlare IP. This will not prevent indiscriminate scans but would help a lot with any attack that may be targeted at your domain.

You can report these instances to the network operator of the IPs you are detecting. Operators in many countries will take action against this activity, unfortunately in others these reports may be ignored. You can usually find the abuse email address by performing a whois on the ip address:



Welcome to the club, it’s nothing unusual.

Yes, back in 2019, I started working on improving the security of the SSH login to our database, and I noticed Linux’ logs showing a lot of login attempts. As I continued blocking new addresses, I started tracing them, and found that 99.9% were from Chinese ISPs. I figured it must be state sponsored, since these attacks were coming from all over the country (with just a few exceptions, e.g., a couple of Amazon AWS accounts). My solution was to change to an allow-only list, since I had blocked literally billions of addresses, and it wasn’t enough. For the past couple of years, this has remained an effective mitigation.