No Description

angrytux 510f222ed7 „afwall.sh“ ändern 1 year ago
README.md dd57436ab3 „README.md“ ändern 1 year ago
Screenshot.png 06db47d432 Clean commits 5 years ago
afwall.sh 510f222ed7 „afwall.sh“ ändern 1 year ago
asn_ipfire.sh b17a8bc54c update asn script 5 years ago
default b17a8bc54c update asn script 5 years ago
default.8 b17a8bc54c update asn script 5 years ago
iptables_off.a7 b17a8bc54c update asn script 5 years ago
iptables_off.a8 8444357d31 „iptables_off.a8“ ändern 1 year ago

README.md

afwall_easy

Last update: 02.12.2022

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


How to use:

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


In Afwall app:

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:

ukanth AFWall

Mike Kuketz

Maloe

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.