Why is my firewall not allowing droplet IPs to pass through the firewall?

I have setup a firewall for a Droplet-A. (Droplet A is an API and Droplet-W is a website - both running in docker containers). Everything works well when I setup the firewall and allow all IP4s and IP6s. Now I want to limit access to Droplet-A only to allow traffic coming from Droplet-W. I remove the “All IPS” and instead add the ipv4, Private Ips and Reserved Ips of Droplet-W to the sources column of the Https/Tcp/443 incoming firewall entry.

Now all traffic gets blocked - including the traffic from Droplet-W (which means that the web gets no data) Any ideas what I might be doing wrong here or forgetting … ?

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.

Bobby Iliev
Site Moderator
Site Moderator badge
December 19, 2022

Hi there,

Is Droplet-W also attached to the firewall? If this is the case you would then need to also configure your Outbound Rules to allow the outbound traffic for those ports.

If this is not the case, what you could do is add your Droplet-W to the source field directly rather than specifying the IP address explicitly. You can do that by typing the name in the source field directly and then selecting the Droplet from the list.

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel