Question

How to deny certain IPs through cloud firewall but allow all others?

My goal is to:

  • Allow all TCP and UDP traffic for certain ports for incoming connections and allow all traffic for outgoing connections (both of which I already know how to do)
  • Maintain the ability to block particular IP addresses from accessing all droplets the cloud firewall protects (i.e. a droplet-wide ban), as I am hosting services on multiple droplets and want to offload most of the firewall controls to the cloud firewall system. I’d love to offload everything to it (i.e. VPN routing and such)… if anyone knows how to do that, please let me know.

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.

+1 - anyone from DO explain how to DENY Ip addresses?

So DO responded to my support email and with their firewall it is not possible. They recommended finding service providers that offer a WAF - Web Application Firewall. Cloudflare does offer one- it is $20 per a domain. Not cheap