blokadaorg / blokada

The official repo for Blokada apps.
https://blokada.org
3.04k stars 212 forks source link

Only Blokada DNS and Cloudflare DNS work #925

Open realpixelcode opened 2 years ago

realpixelcode commented 2 years ago

In Blokada, only Cloudflare DNS and Blokada DNS work. None of the other services listed work. In the browser, I get the error DNS_PROBE_FINISHED_BAD_CONFIG.

I'm using Blokada 51.8.0 from F-Droid on Android 11.

I captured this log immediately after setting Digitale Gesellschaft DNS and trying to reach f-droid.org:

17:26:28.591   Blocka     Querying tunnel status
17:26:28.601 W Persistenc Could not load persistence for: class model.BlockaRepoConfig (Kotlin reflection is not available), reason: Nothing persisted yet
17:26:28.602   Persistenc Returning defaults for class model.BlockaRepoConfig (Kotlin reflection is not available)
17:26:38.169   Networks   actionUseDns (digitalegesellschaft, blockaInPlus: false) for FALLBACK:null
17:26:38.204   Engine     Updating engine config
17:26:38.205   Engine     Reloading engine, config: (enabled=true, dns=digitalegesellschaft, doh=true, gw=null) for (null, type=FALLBACK)
17:26:38.205   PacketLoop Requested to stop packet loop
17:26:38.206   BlockaDns  Stopping DoH DNS proxy
17:26:38.317   SystemTunn Received a request to close tunnel
17:26:38.318   SystemTunn Binding SystemTunnel
17:26:38.321   SystemTunn Bound SystemTunnel
17:26:38.321   SystemTunn Tunnel turnOff() called
17:26:38.322   SystemTunn Closing tunnel descriptors
17:26:38.322 W Engine     Waiting after stopping system tunnel, before another start
17:26:38.381   PLLibre    Tunnel thread 80342351 interrupted, stopping
17:26:38.382   PLLibre    Cleaning up resources: Thread[PacketLoopForLibre,5,main]
17:26:38.382   PLForwarde Forwarder closed all remaining sockets: 0
17:26:40.013 W MainActivi onPause: ui.MainActivity@a47e06d
17:26:40.015   SystemTunn Unbinding SystemTunnel
17:26:40.034   SystemTunn unbindService called
17:26:42.332   DnsMapper  Using DNS configuration [DoH/PlusMode: true/false]: Dns(id='digitalegesellschaft', ips=[185.95.218.42, 185.95.218.43, 2a05:fc84::42, 2a05:fc84::43], plusIps=null, canUseInCleartext=false)
17:26:42.364   DnsMapper  Using DNS: [/185.95.218.42, /185.95.218.43]
17:26:42.365   DnsMapper  Will use DNS over HTTPS
17:26:42.367   BlockaDns  Starting DoH DNS proxy
17:26:42.611   SystemTunn Received a request to open tunnel
17:26:42.612   SystemTunn Binding SystemTunnel
17:26:42.614   SystemTunn Bound SystemTunnel
17:26:42.615   SystemTunn Tunnel turnOn() called
17:26:42.616   STConfigur Configuring VPN for Libre mode
17:26:42.617   STConfigur Using IP: 203.0.113.69
17:26:42.618   STConfigur Adding DNS server: /185.95.218.42
17:26:42.619   STConfigur Adding mapped DNS server for IPv4
17:26:42.619   STConfigur Adding DNS server: /185.95.218.43
17:26:42.620   STConfigur Adding mapped DNS server for IPv4
17:26:42.621   STConfigur Setting MTU: 1280
17:26:42.623   STConfigur Setting bypass for 40 apps
17:26:42.642   SystemTunn Asking system for tunnel
17:26:42.705   PacketLoop Requested to start packet loop (libre mode)
17:26:42.706   Log        Adding onShareLog callback for PLForwarder
17:26:42.707   Metrics    Started metrics
17:26:42.707   PLLibre    Started packet loop thread: 219031212
17:26:43.266   Metrics    DNS-RTT/DNS-ERR/REC-ERR: 170ms/0/0
17:26:45.676   Metrics    DNS-RTT/DNS-ERR/REC-ERR: 51ms/0/0
17:26:47.794   Metrics    DNS-RTT/DNS-ERR/REC-ERR: 53ms/0/0
17:26:49.981   Metrics    DNS-RTT/DNS-ERR/REC-ERR: 43ms/0/0
17:26:52.819 W MainActivi onResume: ui.MainActivity@a47e06d
17:26:52.827   Blocka     Querying tunnel status
17:26:52.832 W Persistenc Could not load persistence for: class model.BlockaRepoConfig (Kotlin reflection is not available), reason: Nothing persisted yet
17:26:52.833   Persistenc Returning defaults for class model.BlockaRepoConfig (Kotlin reflection is not available)
realpixelcode commented 2 years ago

I've noticed the same issue on a Samsung stock Android 12 phone.

eadmaster commented 4 months ago

related: https://github.com/blokadaorg/blokada/issues/807