-
Notifications
You must be signed in to change notification settings - Fork 233
Function list_firewallrules returning empty #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
TBH I have not yet spent time on the new Zone-based firewall and what implications are when migrating to it. I may be able to spend some time on this in the coming weeks, otherwise maybe someone else can chip in? |
Maybe you had time to look into this? |
Hi, I got this problem, and here is the way I do it (in nodejs) . -> First retrieve [
{
"_id": "678e2e683452b52d7bd2845c",
"feature": "ZONE_BASED_FIREWALL",
"timestamp": 1744317485150
}
] -> if you found a feature -> then you can call [
{
"_id": "67822f683c52d52deba373c6",
"attr_no_edit": false,
"default_zone": true,
"name": "Internal",
"network_ids": [
"678e2e683452b52d7bd2845q"
],
"zone_key": "internal"
}
] -> then you can get/post/put/delete firewall-policies on In case, I use it here (in nodejs) : https://github.com/thib3113/unifi-blockips-srv/blob/main/src/Blocker.ts#L40-L78 |
Using simple curl queries, these are 3 usefull endpoints:
I am now searching for a method to disable "NAT" rule via API |
I believe this issue solves it? #216 |
Found some time to look into this. For complete listings of firewall policies you appear to need a combination of data returned by these 3 routes: Firewall Zones: Firewall Zone Matrix: For now developers can use the PS: it seems to be expected that |
IMHO this isn't related to the OP's question. |
Uh oh!
There was an error while loading. Please reload this page.
Using Unifi_Api_Client vers 2.0.4 with UDM Pro with Unifi OS 4.1.13 and Unifi Network Application 9.0.108.
I have switched the firewall to use the new Zones model.
I had a few custom firewall rules before the switch. These rules still exist after the switch. They have ID 10000 and 10001.
When using list_firewallrules, it comes up empty. This was working before.
I checked with the latest API Browser but it returns empty as well.
Can this be fixed?
The text was updated successfully, but these errors were encountered: