NetBare-Android
NetBare-Android copied to clipboard
Sample not working on Google Pixel 3a with Android 10
I tried your application on different devices and versions of Android and I didn't have any issue until I tried it on the Google Pixel 3a. After enabling the VPN from the sample application the network stops working. The following image is the screenshot of the error message Google Chrome gives me.

The error it gives me is DNS_PROBE_FINISHED_NXDOMAIN which just means it was not able to resolve the name. Below is the log of the sample app, I hope it will be helpful.
NetBare I Start NetBare service!
V [TCP]proxy server: 10.1.10.1:40797
W Unknown ip protocol: 0
W Unknown ip protocol: -128
W Unknown ip protocol: -128
I [TCP]Server starts running.
W Unknown ip protocol: -128
I [UDP]Server starts running.
W Unknown ip protocol: -128
W Unknown ip protocol: -128
V ip: 10.1.10.1:37873 -> 216.58.208.164:443
V udp: 37873 -> 443, size: 1350
I UDP connects to: 216.58.208.164:443
I [UDP][216.58.208.164:443]Connect to remote server /216.58.208.164:443
I [UDP][216.58.208.164:443]Write to remote: 1350
I [UDP][216.58.208.164:443]Read from remote: 1350
I [UDP][216.58.208.164:443]Read from remote: 1350
V ip: 10.1.10.1:37873 -> 216.58.208.164:443
V udp: 37873 -> 443, size: 36
I [UDP][216.58.208.164:443]Write to remote: 36
V ip: 10.1.10.1:37873 -> 216.58.208.164:443
V udp: 37873 -> 443, size: 1350
I [UDP][216.58.208.164:443]Write to remote: 1350
V ip: 10.1.10.1:37873 -> 216.58.208.164:443
V udp: 37873 -> 443, size: 488
I [UDP][216.58.208.164:443]Write to remote: 488
W Unknown ip protocol: -128
I [UDP][216.58.208.164:443]Read from remote: 1350
I [UDP][216.58.208.164:443]Read from remote: 20
I [UDP][216.58.208.164:443]Read from remote: 373
I [UDP][216.58.208.164:443]Read from remote: 220
V ip: 10.1.10.1:37873 -> 216.58.208.164:443
V udp: 37873 -> 443, size: 28
I [UDP][216.58.208.164:443]Write to remote: 28
V ip: 10.1.10.1:37873 -> 216.58.208.164:443
V udp: 37873 -> 443, size: 28
I [UDP][216.58.208.164:443]Write to remote: 28
W Unknown ip protocol: -128
V ip: 10.1.10.1:37873 -> 216.58.208.164:443
V udp: 37873 -> 443, size: 23
I [UDP][216.58.208.164:443]Write to remote: 23
I [UDP][216.58.208.164:443]Read from remote: 20
V ip: 10.1.10.1:37514 -> 74.125.71.188:5228
V tcp: SYN 37514 -> 5228 -782190166:0, size: 0
V ip: 10.1.10.1:40797 -> 74.125.71.188:37514
V tcp: SYNACK 40797 -> 37514 1203069732:-782190165, size: 0
V ip: 10.1.10.1:37514 -> 74.125.71.188:5228
V tcp: ACK 37514 -> 5228 -782190165:1203069733, size: 0
V ip: 10.1.10.1:37514 -> 74.125.71.188:5228
V tcp: ACKPSH 37514 -> 5228 -782190165:1203069733, size: 533
V ip: 10.1.10.1:40797 -> 74.125.71.188:37514
I TCP connects to: 74.125.71.188:5228
V tcp: ACK 40797 -> 37514 1203069733:-782189632, size: 0
I [TCP][74.125.71.188:5228]Connect to remote server /74.125.71.188:5228
I [TCP][74.125.71.188:5228]Remote tunnel is connected.
I [TCP][74.125.71.188:5228]Read from proxy: 533
I detect whitelist ip 74.125.71.188
I [TCP][74.125.71.188:5228]Write to remote: 533
I [TCP][74.125.71.188:5228]Read from remote: 203
I [TCP][74.125.71.188:5228]Write to proxy: 203
V ip: 10.1.10.1:40797 -> 74.125.71.188:37514
V tcp: ACKPSH 40797 -> 37514 1203069733:-782189632, size: 203
V ip: 10.1.10.1:37514 -> 74.125.71.188:5228
V tcp: ACK 37514 -> 5228 -782189632:1203069936, size: 0
V ip: 10.1.10.1:37514 -> 74.125.71.188:5228
V tcp: ACKPSH 37514 -> 5228 -782189632:1203069936, size: 64
V ip: 10.1.10.1:40797 -> 74.125.71.188:37514
I [TCP][74.125.71.188:5228]Read from proxy: 64
I [TCP][74.125.71.188:5228]Write to remote: 64
V tcp: ACK 40797 -> 37514 1203069936:-782189568, size: 0
V ip: 10.1.10.1:37514 -> 74.125.71.188:5228
V tcp: ACKPSH 37514 -> 5228 -782189568:1203069936, size: 375
I [TCP][74.125.71.188:5228]Read from proxy: 375
I [TCP][74.125.71.188:5228]Write to remote: 375
V ip: 10.1.10.1:40797 -> 74.125.71.188:37514
V tcp: ACK 40797 -> 37514 1203069936:-782189193, size: 0
I [TCP][74.125.71.188:5228]Read from remote: 529
I [TCP][74.125.71.188:5228]Write to proxy: 529
I [TCP][74.125.71.188:5228]Read from remote: 225
I [TCP][74.125.71.188:5228]Write to proxy: 225
V ip: 10.1.10.1:40797 -> 74.125.71.188:37514
V tcp: ACKPSH 40797 -> 37514 1203069936:-782189193, size: 529
V ip: 10.1.10.1:37514 -> 74.125.71.188:5228
V tcp: ACK 37514 -> 5228 -782189193:1203070465, size: 0
V ip: 10.1.10.1:40797 -> 74.125.71.188:37514
V tcp: ACKPSH 40797 -> 37514 1203070465:-782189193, size: 225
V ip: 10.1.10.1:37514 -> 74.125.71.188:5228
V tcp: ACK 37514 -> 5228 -782189193:1203070690, size: 0
V ip: 10.1.10.1:5741 -> 8.8.8.8:53
V udp: 5741 -> 53, size: 28
I UDP connects to: 8.8.8.8:53
I [UDP][8.8.8.8:53]Connect to remote server /8.8.8.8:53
I [UDP][8.8.8.8:53]Write to remote: 28
I [UDP][8.8.8.8:53]Read from remote: 44
W Unknown ip protocol: -128
V ip: 10.1.10.1:54823 -> 8.8.8.8:53
V udp: 54823 -> 53, size: 28
I UDP connects to: 8.8.8.8:53
I [UDP][8.8.8.8:53]Connect to remote server /8.8.8.8:53
I [UDP][8.8.8.8:53]Write to remote: 28
I [UDP][8.8.8.8:53]Read from remote: 44
W Unknown ip protocol: -128
V ip: 10.1.10.1:20158 -> 8.8.8.8:53
V udp: 20158 -> 53, size: 28
I UDP connects to: 8.8.8.8:53
I [UDP][8.8.8.8:53]Connect to remote server /8.8.8.8:53
I [UDP][8.8.8.8:53]Write to remote: 28
I [UDP][8.8.8.8:53]Read from remote: 44
V ip: 10.1.10.1:48052 -> 216.58.198.10:443
V tcp: SYN 48052 -> 443 -2111608431:0, size: 0
V ip: 10.1.10.1:40797 -> 216.58.198.10:48052
V tcp: SYNACK 40797 -> 48052 -2045457795:-2111608430, size: 0
V ip: 10.1.10.1:48052 -> 216.58.198.10:443
V tcp: ACK 48052 -> 443 -2111608430:-2045457794, size: 0
I TCP connects to: 216.58.198.10:443
V ip: 10.1.10.1:48052 -> 216.58.198.10:443
V tcp: ACKPSH 48052 -> 443 -2111608430:-2045457794, size: 563
I [TCP][216.58.198.10:443]Connect to remote server /216.58.198.10:443
V ip: 10.1.10.1:40797 -> 216.58.198.10:48052
V tcp: ACK 40797 -> 48052 -2045457794:-2111607867, size: 0
I [TCP][216.58.198.10:443]Remote tunnel is connected.
I [TCP][216.58.198.10:443]Read from proxy: 563
I detect whitelist ip 216.58.198.10
I [TCP][216.58.198.10:443]Write to remote: 563
I [TCP][216.58.198.10:443]Read from remote: 218
I [TCP][216.58.198.10:443]Write to proxy: 218
V ip: 10.1.10.1:40797 -> 216.58.198.10:48052
V tcp: ACKPSH 40797 -> 48052 -2045457794:-2111607867, size: 218
V ip: 10.1.10.1:48052 -> 216.58.198.10:443
V tcp: ACK 48052 -> 443 -2111607867:-2045457576, size: 0
V ip: 10.1.10.1:48052 -> 216.58.198.10:443
V tcp: ACKPSH 48052 -> 443 -2111607867:-2045457576, size: 64
I [TCP][216.58.198.10:443]Read from proxy: 64
I [TCP][216.58.198.10:443]Write to remote: 64
V ip: 10.1.10.1:40797 -> 216.58.198.10:48052
V tcp: ACK 40797 -> 48052 -2045457576:-2111607803, size: 0
V ip: 10.1.10.1:48052 -> 216.58.198.10:443
V tcp: ACKPSH 48052 -> 443 -2111607803:-2045457576, size: 3250
I [TCP][216.58.198.10:443]Read from proxy: 3250
I [TCP][216.58.198.10:443]Write to remote: 3250
V ip: 10.1.10.1:40797 -> 216.58.198.10:48052
V tcp: ACK 40797 -> 48052 -2045457576:-2111604553, size: 0
I [TCP][216.58.198.10:443]Read from remote: 1531
I [TCP][216.58.198.10:443]Write to proxy: 1531
V ip: 10.1.10.1:40797 -> 216.58.198.10:48052
V tcp: ACKPSH 40797 -> 48052 -2045457576:-2111604553, size: 1531
V ip: 10.1.10.1:48052 -> 216.58.198.10:443
V tcp: ACK 48052 -> 443 -2111604553:-2045456045, size: 0
I Stop NetBare service!
I [UDP][8.8.8.8:53]Remote tunnel is closed.
I [TCP]Server stops running.
I [UDP][8.8.8.8:53]Gateway request finished!
I [UDP][8.8.8.8:53]Gateway response finished!
I [UDP][8.8.8.8:53]Remote tunnel is closed.
I [UDP][8.8.8.8:53]Gateway request finished!
I [UDP][8.8.8.8:53]Gateway response finished!
I [UDP][216.58.208.164:443]Remote tunnel is closed.
I [UDP][216.58.208.164:443]Gateway request finished!
I [UDP][216.58.208.164:443]Gateway response finished!
I [UDP][8.8.8.8:53]Remote tunnel is closed.
I [UDP][8.8.8.8:53]Gateway request finished!
I [UDP][8.8.8.8:53]Gateway response finished!
I [UDP]Server stops running.
Here some more information on the device.

On a side note, the application works on the emulator device with Android 10.