Skip to content

Error codes

Gitoffthelawn edited this page Sep 17, 2016 · 10 revisions

Index

Description

This page explains details about some error codes that AFWall+ may give you during standard or custom script usage.

Error Codes

(1) Error applying iptables rules. Exit code: -1

This error usually means that the kernel does not support the iptables owner match kernel module. AFWall+ will unfortunately not work on your ROM. But, there are some workarounds for this. First try to change the iptables binary from preferences from "Built-in" to "System". In most cases this works on newer ROM's.

Or manually via adb shell or Terminal Emulator:

su
mount -o remount,rw /system
cp /data/data/android.tether/bin/iptables /system/bin
mount -o remount,ro /system

(2) Error 127 – “iptables: not found”

This error happens because iptables user-space software application that allows the system administrator to configure the tables provided by the Linux kernel firewall and the chains and rules for storage, is not an operating system Android OS. Please try the same method as described above.

(3) Error applying iptables rules. Exit code: 4

IPTables can exit with status 4 if two or more processes tries to update the same table again and again. See here for detailed information.

(4) Error applying iptables rules. Exit code: 6

Index of insertion too big - This mostly comes from custom ROM's (non CM). A workaround seems to play with the SuperSU settings (also try to update to latest first) and contact your ROM developer. In some situations it might help to play with AFWall+ internal binary options or to re-install busybox.

_ Final version 01.19.2016_