guardianproject / guardianproject/orbot-android
[BUG] VPN mode fails to bootstrap because it can not bind to port 53
- Dominant language
- Kotlin
- Stars
- 3.5k
- Forks
- 485
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 24
Description
**Describe the Bug**
There has been a longstanding bug in OrbotVpnManager that causes Orbot to get stuck at about 10% while bootstrapping to the Tor network. My tablet running Nougat is one of those affected devices. I spent some time trying to debug this issue and if I change `tproxy_conf` to bind to port 5353 (instead of port 53), Orbot's VPN mode starts right up with no issues. Although, I know this will not work because hev-socks5 needs to listen on port 53 in order to see the requests. I have tried changing the order in the builder below with little success.
```
---- a/app/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java
+++ b/app/src/main/java/org/torproject/android/service/vpn/OrbotVpnManager.java
@@ -128,6 +128,7 @@ public class OrbotVpnManager implements Handler.Callback {
try {
builder.addAddress(TProxyService.VIRTUAL_GATEWAY_IPV4, 32)
.setMtu(TProxyService.TUNNEL_MTU)
+ .addRoute("198.18.0.0", 16)
.addRoute("0.0.0.0", 0)
.addDnsServer(TProxyService.FAKE_DNS)
.setSession(Notifications.getVpnSessionName(mService))
```
Is there a way for hev-socks5 to use a different port for DNS that is not in the protected range?
**To Reproduce**
Steps to reproduce the behavior:
1. Start Orbot in VPN mode
2. Orbot gets stuck bootstrapping at ~10% every time.
**Expected Behavior**
VPN mode should work on all devices
**What Custom Configuration Do You Use?**
If applicable, how did you set up Orbot? Did you configure some settings?
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Smartphone (please complete the following information):**
- Device: T813
- OS: Nougat
- Version: f634bdcab1e3e968e6cd37b22b351e669047a1d4
**Crash Logs (Advanced)**
If applicable, add crash logs collected using ADB Logcat.
**Additional Context**
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.