Hi
I would like to activate some firewall resteiction rules I set through my home automation system (running on a raspberry pi and capable to run any script).
Is there a way to activate / deactivate a restriction rule from outside the router (through a script on the network for example)?
Thx
Remote restriction activation
Moderator: Moderators
Re: Remote restriction activation
Identify the quota/restriction you want to enable/disable in the /etc/config/firewall config file
Set it's "enabled" option to 0 or 1
Restart the firewall (/usr/lib/gargoyle/firewall_restart.sh)
Set it's "enabled" option to 0 or 1
Restart the firewall (/usr/lib/gargoyle/firewall_restart.sh)
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Remote restriction activation
Sounds good, will give a try, thanks
Re: Remote restriction activation
So I dit it through UCI command but I have an issue to make it happen.
I mean, I change the rule enabled option, then I commit (and I see it in the gargoyle web interface) and then I dobut it doesn't apply the change.
I need to do to make it working. Sounds to me strange and seems to me like using a sledgehammer to kill a fly...
Is it normal that firewall restart is not enough?
I mean, I change the rule enabled option, then I commit (and I see it in the gargoyle web interface) and then I do
Code: Select all
/etc/init.d/firewall restart
I need to do
Code: Select all
/etc/init.d/network restart
Is it normal that firewall restart is not enough?
Re: Remote restriction activation
Please re read my first response.
There is a gargoyle specific firewall restart script which restarts all of the gargoyle dependencies.
Using the default restart scripts is not recommended.
There is a gargoyle specific firewall restart script which restarts all of the gargoyle dependencies.
Using the default restart scripts is not recommended.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.