Question

How To access droplet only from another droplet with firewall?

Posted January 1, 2020 204 views
Firewall

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?

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.

×
1 answer

@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

Submit an Answer