OPNsense Forum

English Forums => General Discussion => Topic started by: meschmesch on August 30, 2021, 04:44:49 PM

Title: remote "Switch-button" for firewall rules
Post by: meschmesch on August 30, 2021, 04:44:49 PM
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!
Title: Re: remote "Switch-button" for firewall rules
Post by: tiermutter on August 30, 2021, 05:43:25 PM
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
Title: Re: remote "Switch-button" for firewall rules
Post by: meschmesch on August 30, 2021, 08:48:55 PM
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 (https://forum.opnsense.org/index.php?topic=16943.0)

Thanks again for the hint!