ukanth / afwall

AFWall+ (Android Firewall +) - iptables based firewall for Android
GNU General Public License v3.0
2.77k stars 456 forks source link

Background application of rules terminates active connection #955

Open ghost opened 5 years ago

ghost commented 5 years ago

Since a few versions, AFWall+ is applying the rules again and again in the background. Whenever this is happening, the active IP connection is terminated. For instance, Firefox claims to not being connected and the page load needs to be re-triggered. Worst is when playing Clash of Clans. The current attack is lost due to network disruption. That's extremely annoying!

Could you please add an option to disable the automatic application of rules in the background? Or, alternatively, create a list of exceptional apps so that when such an app is in the foreground, do not auto apply the rules.

I'm running Lineage OS 14.1 on a Xiaomi Note 4 (mido).

ukanth commented 5 years ago

Disable active rules from preferences -> Rules and connectivity.

ghost commented 5 years ago

Hm, how can I then set separate rules for WiFi, mobile and roaming? This flaw was not available in former versions. Can I fetch the old apk somewhere which does not have the auto application of rules so that I still can configure network access for different connectivity scenarios?

ukanth commented 5 years ago

It could be problem with your connectivity in your area or mobile provider or wifi setup. AFWall+ applies rules on connectivity change (to get roaming state/LAN address etc.,)

Yes, you can get the old version from release page on github.

hipunk commented 5 years ago

Since a few versions, AFWall+ is applying the rules again and again in the background. [...]

I noticed this as well.

temp10min commented 1 year ago

It could be problem with your connectivity in your area or mobile provider or wifi setup. AFWall+ applies rules on connectivity change (to get roaming state/LAN address etc.,)

I have this issue recently, yet my connection does not change. Regardless of if i am using WiFi or mobile data, while playing a game AFWall+ often tries to re-apply the rules (without a connectivity change), while blocking the internet and causing my game to disconnect.

My phone is old (Nexus 6). Could it be that high CPU usage and/or low free RAM conditions could trigger false "connection change" for AFWall+?

I also noticed this while just staring at the home screen, with no apps open - AFWall+ sometimes just tries to re-apply rules several times in a row.