Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unleftie/4d7a0a9f21c78d4be5d8608b4b377847 to your computer and use it in GitHub Desktop.
Save unleftie/4d7a0a9f21c78d4be5d8608b4b377847 to your computer and use it in GitHub Desktop.
# see https://github.com/ukanth/afwall/wiki/CustomScripts#some-examples
OEM_SCRIPT_PATH=/system/bin/oem-iptables-init.sh
IP6TABLES=/system/bin/ip6tables
IPTABLES=/system/bin/iptables
# block ota-cache2.googlezip.net
$IPTABLES -A "afwall" -d 209.85.137.5 -j REJECT
# block ota-cache1.googlezip.net
$IPTABLES -A "afwall" -d 209.85.137.4 -j REJECT
# block ota.googlezip.net
$IPTABLES -A "afwall" -d 216.239.32.112 -j REJECT
# see https://forum.xda-developers.com/t/systemless-adaway-with-magisk.3733839/
0.0.0.0 ota-cache2.googlezip.net
0.0.0.0 ota-cache1.googlezip.net
0.0.0.0 ota.googlezip.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment