Hi.
I'd like to enable or disable external (WAN) access for some devices, while letting them access the LAN. Is there a plugin
or something like that with a "push-button" method from the web UI ?
Thanks.
Toggle external access for some devices
Moderator: Moderators
Re: Toggle external access for some devices
Firewall -> Restrictions
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: Toggle external access for some devices
shame
on
me
I've already set up several ones and I don't understand why I didn't figure that out
on
me
I've already set up several ones and I don't understand why I didn't figure that out

Re: Toggle external access for some devices
Easy to overlook what's right under your nose 

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: Toggle external access for some devices
Maybe I'm growing old but this kind of stuff happens more and more recently.
On the same line, is there a CLI command I could use to toggle these access ?
I need an easy way for my wife to allow/disallow internet access for my children devices. So I plan to have her click on a termux widget on her phone that does :
On the same line, is there a CLI command I could use to toggle these access ?
I need an easy way for my wife to allow/disallow internet access for my children devices. So I plan to have her click on a termux widget on her phone that does :
Code: Select all
ssh -t myrouter command-toggle-access <device>
Re: Toggle external access for some devices
You'll need to find the rule number in /etc/config/firewall. They should start with "rule_".
There is an "enable" flag which is set to 0 or 1 which you can toggle using
Once you've done that you need to issue an
This will cause a momentary loss in connectivity while everything fires up again.
There is an "enable" flag which is set to 0 or 1 which you can toggle using
Code: Select all
uci set firewall.rulesection.enable = 1
Code: Select all
sh /usr/lib/gargoyle/restart_firewall.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: Toggle external access for some devices
Thanks a lot !