By d1r2a3g4o5n6
Hey, I am trying to update a firewall via the API, I have read the documents (https://developers.digitalocean.com/documentation/v2/#update-a-firewall) and did not find how to allow all the incoming traffic from “All IPv4” and “All IPv6” this is the data that i send (PHP array)
$data = array(
"name" => "firewall123",
"inbound_rules" => [
[
"protocol" => "tcp",
"ports" => "444",
"sources" => [
"addresses" => [
"18.0.0.0/8"
]
]
],
[
"protocol" => "tcp",
"ports" => "443",
"sources" => [
"addresses" => [
"All IPv4",
"All IPv6"
]
]
]
],
"droplet_ids" => [
1234567
]
);
This is the response that I received :
{ “id”: “unprocessable_entity”, “message”: “invalid address”, “request_id”: “7b93c71d-fe51-40ca-9321-3a1dbce54321” }
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!
nvm iv got them from the firewall page with the network tap 0.0.0.0/0 ::/0
Hi @d1r2a3g4o5n6,
I see that you’ve mentioned you’ve found the solution. Having said that, I’ll recommend allowing access only from that certain IP rather than to everyone.
If you are using your laptop, allow only your IP address, or if you are using another Droplet to make the API request allow just that one. Avoid giving access to the whole world wherever possible.
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.