Question

Whitelist ip range

Posted June 10, 2021 319 views
Customer Success

since 1st of June our employee aren’t able to access the application hosted on Digital Ocean we need to whitelist our ip ranges to able our employee to access the application

[9:02 AM] Malhotra, Akshay
okay, now your next action is to contact Digital ocean IT team to whitelist those IP ranges o their network. SO that whenever , a user from SCJ wants to access the URL, they can access

[9:04 AM] Miglani, Sarthak
Sao Paulo IV147.161.128.0/23

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.

×
Submit an Answer
1 answer

Hi @rsmacedo,

You can allow access to your Application from your Droplet. This is the correct way to do so.

If you are using UFW, you can allow the IP range to execute the following:

ufw allow from 147.161.128.0/23

If you are using IPtables, you can do:

iptables -A INPUT -s 147.161.128.0/23-j ACCEPT.
iptables -A OUTPUT -d 147.161.128.0/23 -j ACCEPT.

This should be enough for you to allow access from this IP range to your Droplet.