How to add bulk IP addresses to DigitalOcean firewall ?

Trying to add bulk IP’s in DigitalOcean firewall? You are in the right place. DigitalOcean cloud control panel UI doesn’t allow you to paste in multiple IP Addresses at once. That’s a good idea for a UI improvement. In the meantime you can definitely do it via the API… Use the following shell script. It uses json for POST data, so update TOKEN, FIREWALL NAME, IP addresses, ports… and then run the script ...

July 15, 2020 · 1 min · 206 words · Akhil Jalagam