Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi "connected, but no internet" issue with AFWall v2.8.0 #618

Closed
killathe opened this issue Nov 14, 2016 · 16 comments
Closed

Wifi "connected, but no internet" issue with AFWall v2.8.0 #618

killathe opened this issue Nov 14, 2016 · 16 comments

Comments

@killathe
Copy link

killathe commented Nov 14, 2016

I think this might be similar as #603 or #612 still persistent in v2.8.0
When I leaf Wifi and later am connected to Wifi I get "connected, but no internet". And the Wifi symbol has an exclamation mark. I didn't recognize this as a AFWall problem for a long time and thought it would be CM13 Nightlys fault (and later switched to SlimRom to get the same issue). So I tested this on Samsung Glaxay S4 and S5. Both with CM13 and S4 with SlimRom.

I tried to pinpoint the problem, but it's confusing. Despite I get the message of "no internet" via wifi I sometimes still can surf the net. But sometimes I get no connection at all, even if I disable Wifi, then the mobile network sign also got this exclamation mark. In this case I need to disable AFWall and restart the phone.

@0xjd
Copy link

0xjd commented Nov 17, 2016

I'm also still facing the issue in both versions (2.7.0 and 2.8.0). App doesn't crash anymore, but after every switch between wifi and mobile data i have to apply afwall rules manually again to get a connection...

@ukanth ukanth added the Bug label Nov 18, 2016
@ukanth
Copy link
Owner

ukanth commented Nov 18, 2016

Do you have xposed ?
Do you have profiles enabled within AFWall+ ?

@0xjd @killathe ,

Could you test this APK and let me know if you have issues ?

https://www.dropbox.com/s/7fgkkklgow3hy0c/AFWall%2B%202.9.0-BETA-1.apk?dl=0

@killathe
Copy link
Author

Thanks for your reply.
No I'm not using xposed, or profiles within AFWall.
Seems there is a problem with the apk. After I hit install I get "App not installed".

@ukanth
Copy link
Owner

ukanth commented Nov 19, 2016

@killathe , Are you using F-droid builds ? Then you need to do clean install

@killathe
Copy link
Author

Yes I installed from F-Droid. I've installed and tested. But problem is still the same.
If I disconnect wifi I get the ! symbol on mobile data. I switch wifi back on and get the ! on wifi. If I just apply rules manually it doens't change anything for me. I need to disable firewall completely. When the ! is gone, I can re-enable the firewall.

@killathe
Copy link
Author

I've to correct myself.
With my S4 with SlimRoms the exclamation mark is now gone. After I installed AFWall beta (not via update), it was still there. Then I updated my Rom with the latest weekly build and wiped Cache+Dalvik Cache. After restart exclamation mark was gone.

Then I tried the same with my S5 with CM. Installed AFWall beta via Update. Tested: Exclamation mark still there. Restarted phone in recovery and wiped cache+dalvik cache. Reboot and tested: Exclamation mark still there. No success :/
I thought wiping cache was the solution. But doesn't seem so.

@ukanth
Copy link
Owner

ukanth commented Nov 21, 2016

I need firewall rules when you can't use internet. Please send me firewall rules from menu->show rules-> export to SDCard and attach it here.

@killathe
Copy link
Author

Like I said in my first post. Internet via wifi is working most of the time. But it's the exclamation mark which persistently tells me I wouldn't be able to use wifi for internet. Well, I hope you can see something in the log which helps to get rid of it.
https://dl.dropboxusercontent.com/u/74168867/IPv4rules.log

@wizl
Copy link

wizl commented Nov 23, 2016

This might not be a bug. I have been doing some research on sniffing network and Android connects to connectivitycheck.gstatic.com to check for connection. If there is no connection it gives the exclamation mark. From what I have read you can disable it in terminal and it will disappear.

settings put global captive_portal_detection_enabled 0
You have to reboot after this.

So this is actually showing that AFWall+ blocks the system processes. From my testing most VPN based firewalls don't block this so there is probably some data leaking.

@ukanth ukanth removed the Bug label Nov 25, 2016
@ukanth
Copy link
Owner

ukanth commented Nov 25, 2016

@killathe , Rules looks fine. Please disable captive portal by using the above command.

@wizl Thanks for the input.

@ukanth ukanth closed this as completed Nov 25, 2016
@Micha-Btz
Copy link

@wizl

settings put global captive_portal_detection_enabled 0

did you know if i had to set it after every boot?

@wizl
Copy link

wizl commented Dec 8, 2016

@Micha-Btz the settings should stay permanent.

@killathe
Copy link
Author

In Lineage 14.1 (Android 7.1.2) this doesn't seem to work anymore. Any ideas how to fix it?

@T-vK
Copy link

T-vK commented Oct 31, 2017

@killathe Please refer to #761 for Android N.

@Kein
Copy link

Kein commented Aug 9, 2022

Any suggestions for Android 9?

@yuiop0113
Copy link

-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants