FORUMS
Remove All Ads from XDA

 View Poll Results: What are you mainly using NetGuard for?

Reducing data usage
 
319 Vote(s)
31.49%
Saving battery
 
224 Vote(s)
22.11%
Increasing privacy
 
485 Vote(s)
47.88%
Blocking ads
 
675 Vote(s)
66.63%

[APP][6.0+] NetGuard - No-root firewall

16,704 posts
Thanks Meter: 34,149
 
By M66B, Recognized Developer on 25th October 2015, 01:33 PM
Post Reply Email Thread
16th May 2019, 07:28 AM |#9111  
M66B's Avatar
OP Recognized Developer
Thanks Meter: 34,149
 
More
Quote:
Originally Posted by lukval

The same behaviour with FairEmail. I'm not using the screen on/off mode, NG 2.244. Thank you for your time.

I can only give the same answer:

"Software caused connection abort" and "Socket closed" are typically caused by changing connectivity, which includes restarting the Android VPN service, which is done to apply a new rule set (switching from metered to unmetered, turning the screen on/off). This cannot be fixed or improved. NetGuard as no-root app can only use the standard Android APIs and these are limited.

"Connection reset by peer" is typically done by the remote server and not related to NetGuard.

Related FairEmail FAQ:

https://github.com/M66B/open-source-...-content-faq22

"Couldn't connect to host" is likely caused by blocking FairEmail with NetGuard.
 
 
16th May 2019, 09:31 AM |#9112  
lukval's Avatar
Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by M66B

"Couldn't connect to host" is likely caused by blocking FairEmail with NetGuard.

No, FairEmail has everything allowed and log has only allowed entries for FE.


Sent from my STF-L09 using XDA Labs
Attached Thumbnails
Click image for larger version

Name:	FaiEmailRules.jpg
Views:	198
Size:	35.3 KB
ID:	4759677  
16th May 2019, 09:35 AM |#9113  
M66B's Avatar
OP Recognized Developer
Thanks Meter: 34,149
 
More
Quote:
Originally Posted by lukval

No, FairEmail has everything allowed and log has only allowed entries for FE.

Looking again to your screenshots:

"Network in unreachable" and "timeout": indicate problems with the internet connection.
16th May 2019, 09:52 AM |#9114  
lukval's Avatar
Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by M66B

Looking again to your screenshots:

"Network in unreachable" and "timeout": indicate problems with the internet connection.

But it happens everytime I started wifi/mobile connection.

+ Different thing. After disabling the internet connection (HOPO entries in log) the log still shows allowed connection for ICMP (I ping the address via bash script in SManager app).


Sent from my STF-L09 using XDA Labs
Attached Thumbnails
Click image for larger version

Name:	ICMP.jpg
Views:	142
Size:	48.8 KB
ID:	4759682  
16th May 2019, 09:54 AM |#9115  
M66B's Avatar
OP Recognized Developer
Thanks Meter: 34,149
 
More
Quote:
Originally Posted by lukval

But it happens everytime I started wifi/mobile connection.

+ Different thing. After disabling the internet connection (HOPO entries in log) the log still shows allowed connection for ICMP.

That can be, but still these messages indicate connectivity problems.
16th May 2019, 10:34 AM |#9116  
lukval's Avatar
Member
Thanks Meter: 0
 
More
I'm not sure, it is not happening with another vpn app...

Sent from my STF-L09 using XDA Labs
16th May 2019, 10:42 AM |#9117  
M66B's Avatar
OP Recognized Developer
Thanks Meter: 34,149
 
More
Quote:
Originally Posted by lukval

I'm not sure, it is not happening with another vpn app...

Not all VPN apps restart the Android VPN service on connectivity changes to apply new rules.
16th May 2019, 01:52 PM |#9118  
lukval's Avatar
Member
Thanks Meter: 0
 
More
Is it possible to disable this 'restart' feature?


Sent from my STF-L09 using XDA Labs
16th May 2019, 01:57 PM |#9119  
M66B's Avatar
OP Recognized Developer
Thanks Meter: 34,149
 
More
Quote:
Originally Posted by lukval

Is it possible to disable this 'restart' feature?

No, but maybe, just maybe, I will develop a NetGuard II or NetGuard NG (next generation) for recent Android versions which will have only filtering mode and will dynamically apply new rules (VPN/Sentry did this).

Background: especially some older Android versions have routing bugs resulting in traffic not properly routed into the VPN anymore after a connectivity change.
The Following 11 Users Say Thank You to M66B For This Useful Post: [ View ]
17th May 2019, 07:05 AM |#9120  
Senior Member
Flag Minneapolis
Thanks Meter: 29
 
More
Quote:
Originally Posted by M66B

Disabling 'Apply rules and conditions' effectively disables NetGuard for the app, so this seems not to be caused by NetGuard.

Yes, I was thinking maybe it was hooking into the Android system WiFi calling framework or something and another process it needs is blocked. Just grasping at straws, really.

Unfortunately I can't risk disabling Netguard to know for sure if it is causing the issue or I risk spilling all my data.
17th May 2019, 10:05 AM |#9121  
Licaon_Kter's Avatar
Senior Member
Thanks Meter: 515
 
More
Quote:
Originally Posted by hackel

Unfortunately I can't risk disabling Netguard to know for sure if it is causing the issue or I risk spilling all my data.

This must be a sad situation if you are forced to use apps that will "spilling all my data"
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes