angrytux 510f222ed7 „afwall.sh“ ändern | 1 ano atrás | |
---|---|---|
README.md | 1 ano atrás | |
Screenshot.png | 6 anos atrás | |
afwall.sh | 1 ano atrás | |
asn_ipfire.sh | 5 anos atrás | |
default | 5 anos atrás | |
default.8 | 5 anos atrás | |
iptables_off.a7 | 5 anos atrás | |
iptables_off.a8 | 1 ano atrás |
Simple script for generating ASN block lists and DNS Server entry for Android AFWall.
Options for dns server (exception for Wifi), captive portal check disabling, ASN blocklists... Android version 7 or older and 8+ are supported
It generates AFWall scripts for blocking connections to google, facebook, whatever you want. This gets achieved through setting the corressponding iptables rules.
Following Packages are required to fetch and set the corressponding rules:
Awk, printf, wget
In Terminal:
git clone https://codeberg.org/angrytux/afwall_easy.git
cd afwall_easy
Make script executable with chmod +x afwall.sh
Run script with bash afwall.sh
Custom DNS Server set by this script: Disable DNS via netd- (preferences->Binaries->DNS proxy).
For DNS over TLS choose enable DNS via netd.
You must allow (Android 5+) -0 - Apps running as root- in afwall else dns resolving won´t work!
Since there isn't an update function yet, the script should be run regularly (e.g monthly) to fetch New ASNs for each company you wish to block. But well this happens not that often.
Thx ukanth, Mike and maloe for the amazing work! :+1:
License: All scripts are under GPLv3.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.