Skip to content

How to enable/disable existing firewall rules? #484

Discussion options

You must be logged in to vote

Looks like you are using disable in your request body instead of disabled. Here's an example curl request I just used for disabling an existing firewall rule:

curl -s -k -u admin:pfsense -X PUT https://localhost/api/v1/firewall/rule -d '{"tracker": 1714079391, "disabled": true}'

After running, the rule now shows as disabled:

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@winstonw
Comment options

Answer selected by winstonw
Comment options

You must be logged in to vote
2 replies
@jaredhendrickson13
Comment options

@magtimmermans
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants