-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shutdown scripts do not work #1061
Comments
the same issue encountered. i have a stop script that cleans up custom inserted rules and results in the same error. aside from that, inserting rules on the start (before afwall chain), has random effect now. sometimes afwall chain is in the middle of OUTPUT chain. Also inserted rules are sometimes doubled. No issues on previous AFWall+ version though. |
3.5 Beta, same here. I have a script which blocks all Google and Facebook IP addresses. I've been trying to use the following but get the error. Is there another approach that might work?
|
I checked logcat and see:
So I must be missing something. In the script above, there is no line with "-F afwall" . Maybe this is being added by AFWall itself? |
I got this working.. I think the problem is that not all chains are present in Android. I commented out the following:
I added one more line: That one line should be sufficient to flush the rules that I added in my startup script. YMMV. I hope this helps. |
I'm using two different versions of AFWall+ with equal user scripts for Firewall Disable:
My shutdown script (I need to full block the Internet when I turn off):
iptables -F
iptables -X
iptables -A INPUT -j DROP
iptables -A FORWARD -j DROP
iptables -A OUTPUT -j DROP
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
ip6tables -F
ip6tables -X
ip6tables -A INPUT -j DROP
ip6tables -A FORWARD -j DROP
ip6tables -A OUTPUT -j DROP
ip6tables -P INPUT DROP
ip6tables -P FORWARD DROP
ip6tables -P OUTPUT DROP
The text was updated successfully, but these errors were encountered: