remote "Switch-button" for firewall rules

Started by meschmesch, August 30, 2021, 04:44:49 PM

Previous topic - Next topic
Hi,
does anyone know about a possibility whether it is possible to implement a remote "switch-button" (on/off state) to enable or disable a certain firewall rule. The background is that I have a rule that blocks internet for some devices of my kids. I would like to have an easy possibilty to enable or disable the rule without the need for my wife to use the opnsense interface...

Thank you for your ideas!

There is a Beta App for Android which allows to enable/disable rules.
I never used the app, maybe its what you are looking for.
https://github.com/Red-Swingline/OPNsenseManager/releases/tag/v1.0.4-beta
i am not an expert... just trying to help...

I finally suceeded to solve the problem using the API for accessing firewall rules. In my home automation software I have a switch to turn on and off the rules, which in each case triggers a bash-script according to the commands listed in this post: https://forum.opnsense.org/index.php?topic=16943.0

Thanks again for the hint!