By Geir Jonsson
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 … ?
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!
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!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.