How to enable/disable existing firewall rules? #484
-
Hello. Thank you for creating this awesome project. How do I enable/disable an existing fw rule via pfsense-api? Nothing changed on the pfSense web UI after successful requests. Did I misunderstood anything? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Looks like you are using
After running, the rule now shows as disabled: |
Beta Was this translation helpful? Give feedback.
-
How will this work on V2? This seems not work: result: |
Beta Was this translation helpful? Give feedback.
Looks like you are using
disable
in your request body instead ofdisabled
. Here's an example curl request I just used for disabling an existing firewall rule:After running, the rule now shows as disabled: