afwall icon indicating copy to clipboard operation
afwall copied to clipboard

[ISSUE] iptables exited with status 4

Open bthylafh opened this issue 5 years ago • 7 comments

IPv4rules.log Describe the bug When connectivity changes, AFwall complains that it can't apply changed rules. This appears in the logcat: 04-21 11:32:29.802 D/AFWall (11069): command 'iptables -A afwall-wifi-lan -m owner --uid-owner 10138 -j afwall-reject' exited with status 4, retrying (attempt 1/10)

That applies to IPv6 as well.

Firewall Logs Firewall log attached.

Smartphone (please complete the following information):

  • Device: OnePlus 5T
  • Android OS: LOS 18.1

Additional context

bthylafh avatar Apr 21 '21 17:04 bthylafh

My phone is rooted with the current rev of Magisk and I can successfully get root.

bthylafh avatar Apr 21 '21 17:04 bthylafh

Does afwall disable itself on connectvity change ?

ukanth avatar Apr 22 '21 00:04 ukanth

It does not seem to, no. The quick tile is still colored in when I check it.

bthylafh avatar Apr 22 '21 00:04 bthylafh

Do you have privateDNS enabled ?

ukanth avatar Apr 22 '21 00:04 ukanth

I do not. I am connected to a VPN, however.

bthylafh avatar Apr 22 '21 00:04 bthylafh

You can ignore this warning. it will try apply the rules 10 time before it gives up. Seems like some process/firewall in your device is also agressively trying to use iptables (it could be android as well).

ukanth avatar Apr 22 '21 00:04 ukanth

OK, thanks.

bthylafh avatar Apr 22 '21 00:04 bthylafh