Is it possible to apply Firewall rules to a Load Balancer?

I have a “DO Managed Load Balancer” in front of my droplets, and want to only allow certain IPs to access my website. I saw DO’s “Managed Firewall” feature that can be created and applied to a Droplet. But since the service is accessed via the LB first, set a Firewall rule for the Droplet doesn’t really help.

So I am wondering is there a way that I can create a “DO Managed Firewall” and apply it to my Load Balancer? or maybe there is but I might have missed it?


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

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.

you could set some allow/disallow rules on IP ranges through Google’s Cloud Armor Security Policies (Use case / How to) by setting the target on the backend service of an HTTP load balancer