Report this

What is the reason for this report?

How To access droplet only from another droplet with firewall?

Posted on January 1, 2020

I use two droplets with Docker. My first droplet A is my frontend app and it use nginx as proxy. My second droplet B is my backend app and it use DOcker. Now, i want to restrict my backend droplet by using DigitalOcean firewall but i cannot. I put the IP address of my droplet frontend in firewall backend but it does not work. how to do it please?



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!

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.

@dmm2019 have you considered opening the firewall on your private IP’s and then using that for the two droplets to talk together, That way you incur no traffic costs and get to enjoy less latency. Private IP’s are limited to just your account, in the past, you could connect to different users with private IPs but now they are secure :)

Regards

Simon SnapShooter

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.