question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wireguard / WiFi Run Condition did not work

See original GitHub issue

Description of the issue

Syncthing doesn’t recognize active Wifi if VPN is active. It also doesn’t work on “Start on selected Wifi: off”

Reproducer

Wireguard VPN configured; all applications except synthing have to use it Android VPN Settings: Continuous VPN active: on Block Connections without VPN: on Synthing Run Conditions: Start on Wifi Connection: on Start on selected Wifi: on (my home Wifi is selected)

On Status I see "I can’t run because I’am configured to run on Wifi, but Wifi is off. oops

Version Information

App Version: 1.6.0.4
Syncthing Version: (does not show)
Android Version: Android 10 (Lineage 17.1)
Device manufacturer: OnePlus
Device model: 6T

Device platform info

adb shell "getprop | grep ro.product"
[ro.product.board]: [sdm845]
[ro.product.brand]: [OnePlus]
[ro.product.cpu.abi]: [arm64-v8a]
[ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: [arm64-v8a]
[ro.product.device]: [OnePlus6T]
[ro.product.first_api_level]: [28]
[ro.product.locale]: [en-US]
[ro.product.manufacturer]: [OnePlus]
[ro.product.model]: [ONEPLUS A6013]
[ro.product.name]: [OnePlus6T]
[ro.product.odm.brand]: [OnePlus]
[ro.product.odm.device]: [OnePlus6T]
[ro.product.odm.manufacturer]: [OnePlus]
[ro.product.odm.name]: [OnePlus6T]
[ro.product.system.brand]: [OnePlus]
[ro.product.system.device]: [OnePlus6T]
[ro.product.system.manufacturer]: [OnePlus]
[ro.product.system.model]: [ONEPLUS A6013]
[ro.product.system.name]: [OnePlus6T]
[ro.product.vendor.brand]: [OnePlus]
[ro.product.vendor.device]: [OnePlus6T]
[ro.product.vendor.manufacturer]: [OnePlus]
[ro.product.vendor.model]: [ONEPLUS A6013]
[ro.product.vendor.name]: [OnePlus6T]

Android Log

adb logcat v
or MatLog (search on GitHub) output
07-02 16:27:53.880  2034  2034 V DeadZone: consuming errant click: (499.0,29.0)
07-02 16:28:02.659  1032  3191 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.FirstStartActivity bnds=[234,1881][438,2214]} from uid 10180
07-02 16:28:02.676  5786  5786 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@8d56e3d
07-02 16:28:02.677  1032  1058 E system_server: Invalid ID 0x00000000.
07-02 16:28:02.687  5786  5786 D FirstStartActivity: Running on a non-TV Device
07-02 16:28:02.692  1032  7446 I ActivityTaskManager: START u0 {cmp=com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.MainActivity} from uid 10227
07-02 16:28:02.702  5786  5786 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@9f099c4
07-02 16:28:02.716   917   917 E Layer   : [Surface(name=AppWindowToken{b7ae617 token=Token{dca8a96 ActivityRecord{4fe05b1 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.FirstStartActivity t169}}})/@0x5ec1f2b - animation-leash#0] No local sync point found
07-02 16:28:02.717   917   917 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 1 line
07-02 16:28:02.717   917   917 E Layer   : [Surface(name=AppWindowToken{b7ae617 token=Token{dca8a96 ActivityRecord{4fe05b1 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.FirstStartActivity t169}}})/@0x5ec1f2b - animation-leash#0] No local sync point found
07-02 16:28:02.718  5786  5786 W ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
07-02 16:28:02.732   917   917 E Layer   : [Surface(name=AppWindowToken{b7ae617 token=Token{dca8a96 ActivityRecord{4fe05b1 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.FirstStartActivity t169}}})/@0x5ec1f2b - animation-leash#0] No local sync point found
07-02 16:28:02.733  5786  5786 D SyncthingService: onStartCommand
07-02 16:28:02.736  5786  5786 I JobUtils: Scheduled SyncTriggerJobService to run in 300(+120) seconds.
07-02 16:28:02.736  5786  5786 V NotificationHandler: Starting foreground service or updating notification
07-02 16:28:02.749   917   917 E Layer   : [Surface(name=AppWindowToken{b7ae617 token=Token{dca8a96 ActivityRecord{4fe05b1 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.FirstStartActivity t169}}})/@0x5ec1f2b - animation-leash#0] No local sync point found
07-02 16:28:02.753  1032  1062 I ActivityTaskManager: Displayed com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.MainActivity: +91ms
07-02 16:28:02.765   917   917 E Layer   : [Surface(name=AppWindowToken{b7ae617 token=Token{dca8a96 ActivityRecord{4fe05b1 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.FirstStartActivity t169}}})/@0x5ec1f2b - animation-leash#0] No local sync point found
07-02 16:28:03.148   917   917 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 23 lines
07-02 16:28:03.165   917   917 E Layer   : [Surface(name=AppWindowToken{b7ae617 token=Token{dca8a96 ActivityRecord{4fe05b1 u0 com.github.catfriend1.syncthingandroid/com.nutomic.syncthingandroid.activities.FirstStartActivity t169}}})/@0x5ec1f2b - animation-leash#0] No local sync point found
07-02 16:28:03.303  2034  2034 D ImageWallpaper: wallpaper visibility changes to: false
07-02 16:28:08.307  1032  1070 E LightsService: Light requested not available on this device. 2
07-02 16:28:10.986  2248  2888 D QCNEJ/WlanStaInfoRelay: Received action: android.net.wifi.RSSI_CHANGED

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
TRSx80commented, Jul 14, 2020

You are making me remember ancient history @Catfriend1. 😄 It’s been a long time since I looked into such issues, but back then (few or more years ago) at least I seem to recall ~ that the VPN on Android is not leak proof. There is some brief time at the beginning where some stuff can still leak out, before the VPN firewall goes into effect.

Android in general is a mess, and for someone like me used to a real operating system (GNU/Linux) Android is like a toy in comparison. Real, actual, GNU/Linux phones like Pinephone and/or Librem 5 cannot get here fast enough, IMO. Luckily, we are finally seeing some nice movement on this front. Android and iOS desperately need some competition.

But other than these sort of potential “leaks” I think the intention is for that feature to block everything except traffic going over VPN, which was what I was trying to suggest. Maybe that is/was the problem (I could also simply be wrong)?

0reactions
Catfriend1commented, Jul 14, 2020

Last time I made an audit log, Android connected to my phone manufacturers “spyware” servers during boot and then went silent as soon the vpn came up. This was with Netguard VPN back then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wireguard doesn't work on some networks - Reddit
I've got wireguard set up at home on a static IP. That works broadly speaking. e.g. Laptop hotspotting off phone.
Read more >
Wireguard handshake works but no internet access
I'm receiving a handshake between the client and server, and SSH and Ping work between clients, but I cannot access the global internet...
Read more >
Wireguard not completing handshake - Server Fault
I have two Debian GNU/Linux systems (bullseye/sid), both running wireguard on port 23456, both behind NAT. Both run a kernel version > 5.6 ......
Read more >
WireGuard VPN: Connected but NO INTERNET
My pihole is running on my pi in my network with 192.168.x.x network. The Wireguard network is a 10.8.x.x network. So local traffic...
Read more >
Internet access through a WireGuard VPN tunnel - Keenetic
1. Allowed IPs 0.0. · 2. Also, the client side configuration must have a DNS server specified (e.g. Google's public DNS server address...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found