API 2.1.0 and "Reset the firewall state table" #547
-
|
The main thing I have been awaiting for the new 2.1.0 release is the plural If I read the documentation for the API then I do have a couple of questions to its usage:
Sorry, but I just need a little hint 😁 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
For the Applies immediately attribute, see this section in the documentation. It is really only applicable to endpoints that interact with the pfSense configuration like firewall rules, static routes, etc. For firewall states you do not need to apply anything because nothing gets written to the configuration. Admittedly it is a little misleading for some endpoints. I've been working on a better way to programmatically determine the relevance of that attribute for endpoints when the documentation is generated. To reset all firewall states, you can make a DELETE query to /api/v2/firewall/states with If the desired effect was to kill all states with a specific interface, you could run this call for example: Or if you wanted to delete all firewall rules referencing a specific alias in the destination field: DELETE queries also support query filters so you can construct some pretty powerful queries to target the objects you need. |
Beta Was this translation helpful? Give feedback.
-
|
Great - thanks for the explanation and I now have it working 😁 However, you mention that I can use
Documentation: So what kind of other parameters could I also use here? |
Beta Was this translation helpful? Give feedback.
-
|
I will try it out, but for sure I see this as answered - thank you very much for your great service and swift response! 👌 |
Beta Was this translation helpful? Give feedback.

For the Applies immediately attribute, see this section in the documentation. It is really only applicable to endpoints that interact with the pfSense configuration like firewall rules, static routes, etc. For firewall states you do not need to apply anything because nothing gets written to the configuration. Admittedly it is a little misleading for some endpoints. I've been working on a better way to programmatically determine the relevance of that attribute for endpoints when the documentation is generated.
To reset all firewall states, you can make a DELETE query to /api/v2/firewall/states with
allset totrueto reset the table. For query deletions, it is required to have at least one…