04-08-2024 08:41 PM
I am using a python script to update the Wireless Firewall outbound rules, but I am getting this error, "For ACL rules applied to both IPv4 and IPv6, Destination address must be 'any'\"."]}"
How do I set it to only IPv4?
"comment": "Allow",
"policy": "allow",
"protocol": "Any",
"destPort": "Any",
"destCidr": "192.168.64.0/21"
Solved! Go to Solution.
04-09-2024 04:59 AM
As suggested , A get will return this key :
{"rules":[{"comment":"Test","ipVer":"ipv4","policy":"allow","protocol":"tcp","destPort":"Any","destCidr":"1.1.1.1/32"}
04-09-2024 04:39 AM
The "IP Version" parameter is missing. You need to set it to IPv4, IPv6 or any.
04-09-2024 04:45 AM
I suggest you do a GET first, as this parameter is not in the API documentation.
04-09-2024 04:59 AM
As suggested , A get will return this key :
{"rules":[{"comment":"Test","ipVer":"ipv4","policy":"allow","protocol":"tcp","destPort":"Any","destCidr":"1.1.1.1/32"}
04-09-2024 05:01 AM
Nice.
04-09-2024 05:30 AM
Thanks, that was it the
ipVer":"ipv4"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide