AdguardForAndroid
AdguardForAndroid copied to clipboard
Forwarding vpn traffic to downstream proxy will cause the connection to be interrupted
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- [x] I am running the latest version
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
Issue Details
Adguard config with socks proxy will cause frequent connection drops, especially in game app.
-
AdGuard version:
- 3.6.4(32)
-
Filtering mode:
- local vpn with a socks proxy as outbound
-
Device:
- OnePlus 7p
-
Operating system and version:
- android 11(lineage 18.1)
-
Root access:
- no
Expected Behavior
connections won't be droped unexpectedly
Actual Behavior
connections drop frequently
Screenshots
Additional Information
this problem can be reproduced even after removing all filter rules. only represent when use a socks proxy. and it was not cause by socks proxy server(I test it with more than one proxy)
step to reproduce
- install connectbot (android ssh tool)
- setup adguard with socks proxy outbound
- enable Adguard protection on connectbot(enable ad blocking only and don't enable https filter)
- open connectbot and connect to you ssh server
- when the password input box pops up, do not enter the password immediately but enter it slowly. After a few seconds, the connection will be disconnected
this screenshot shows connection was closed by adguardforandroid ip end with 113 is my android phone. ip end with 187 is my socks5 proxy hosted by xray.
in the pic, adguard sent FIN packet cause whole connection closed
@xxxsen Hello! Did we understand your configuration correctly: you had connected to some remote server via AdGuard and tried to monitor the behavior via connectbot ? Could you try it with AdGuard VPN and send us the debug logs so we could see the traffic?
Here's how you can do it:
- Collect the debug log as it's explained here;
- Remember the exact time when the issue was reproduced. We will need it to find the corresponding records in the log file;
- Send it to
[email protected]
. Mention the Github issue number and the exact time when the issue was reproduced.
@xxxsen Do you use Connectbot as the outbound proxy for Adguard, or it is just an example?
no, outbound proxy is xray hosted on another machine, and traffic of connectbot was route by adguard
traffic of connectbot->adguard->xray svr(socks proxy)->remote svr
@Birbber @sfionov I already sent my log to [email protected] at Oct 27, 2021, 12:11 AM
Sergey Fionov @.***> 于2021年10月28日周四 下午4:50写道:
@xxxsen https://github.com/xxxsen Do you use Connectbot as the outbound proxy for Adguard, or it is just an example?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AdguardTeam/AdguardForAndroid/issues/4005#issuecomment-953642530, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5TKVCZANWQJ3U3WPAP7O3UJEFGNANCNFSM5GYECOLA .
@xxxsen We've identified the issue, will be fixed with the next release.
@Birbber ok, thank you for your reply
still not fixed in ver. 3.67 Premium. any update?
Oddly enough, changing Adguard DNS from upstream SOCKS5 DNS to public DNS solved this issue temporarily.
A tentative solution is scheduled for version 4.0.
Stay tuned :)
and when is that happening? It's a critical bug. An urgent fix is required :(