Automate Firewall
Posted: 18 Sep 2017 12:50
Is there any Firewall app that can be controlled by Automagic? The idea is to control Internet access for certain apps depending on time.
I don't want to block everything. Only specific apps, and only at certain time. For example, I may do internet browsing late at night but I don't want to be interrupted my messaging App.Desmanto wrote:Maybe you can use adguard, don't with current version. But the older version can be controlled using intent
viewtopic.php?f=5&t=4166
You can choose to block everything, so the same as blocking the app from accessing the network.
The block is for single app only, but I haven't tested it out. The concept is usually done via local VPN server. All apps need to go thru this local vpn and the vpn will determine which app can pass thru it. But hosting vpn server will drain more battery, even though it is local. As it filter all traffic. If it is going to be implemented, I wish there are granular control to the server, such as we can extract the domain/url that the app request, can choose to let it pass, block or redirect it to another url or even combine with HTTP request server to show message such as "This is blocked domain".simon_magus101 wrote: I don't want to block everything. Only specific apps, and only at certain time. For example, I may do internet browsing late at night but I don't want to be interrupted my messaging App.
Yes. Just use the same action execute command or execute root command if it needs root. Put all your proper bash/shell script in sh file. Save it somewhere. I think some script need to be put on /data/local or /system/bin and changed permission to be executeable before can be executed from terminal. But simple one can maybe just put at /sdcard/.simon_magus101 wrote:Is there a way run shell script from Automagic, like ".sh" file ? If yes then there might be a way to manipulate the IPtables.
Code: Select all
sh /sdcard/Automagic/shell/iptable.sh
What command do you use there? Droidwall is so old already, older than my first android I am curious if it still works.simon_magus101 wrote:Execute Root command works. I can now automate my Firewall settings, with help from Droidwall.