Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS with VPN setting "always-on-mode" and "block connection without vpn" not connecting to the internet #464

Open
manuelrepo opened this issue Jan 8, 2022 · 0 comments

Comments

@manuelrepo
Copy link

manuelrepo commented Jan 8, 2022

Hello there

BQ Aquaris X (Lineageos 18.1, Android 11)

I installed the app version 0.6.8 (first fdroid then Bug fix release here), set the hosts, showed sys apps to disable bypassing and selected only DE dns'. also tested nextdns as the only DNS.
then updated before activating it and after it still functioned i restarted the phone.

the always-on-mode and block connection without vpn never works.

here is the logcat output:

--------- beginning of main
01-08 20:16:27.451 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:29.453 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:31.454 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:33.455 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:35.457 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:37.458 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:39.460 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:41.461 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:43.463 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:45.465 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:47.467 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:49.467 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:51.469 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:53.470 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:55.472 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:57.476 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:16:59.478 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:01.479 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:03.481 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:05.483 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:07.484 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:09.488 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:11.491 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:13.494 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:15.495 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:17.497 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:19.499 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:21.501 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:23.504 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:25.506 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:27.508 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:29.509 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:31.511 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:33.514 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:35.516 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:37.518 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:39.521 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:41.524 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:43.525 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:45.527 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:47.529 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:49.530 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:51.534 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:53.536 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:55.538 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:57.539 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:17:59.541 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:18:01.542 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:18:03.543 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:18:05.545 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:18:07.547 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:18:09.549 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:18:11.550 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:18:13.552 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:18:15.555 2953 2981 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused

at this point i feel like i tried everything, i disabled the dns to only have hosts activated, tried private dns in android (nextDNS) but it only works without having VPN always on mode and block connection without vpn since it bypasses the whole dns66 vpn...

also tested to set nextdns inside the vpn66 which doesn't work since it tells me nextdns is not condigured when visiting https://test.nextdns.io/ ....
the dns was shown as configured when set as Private DNS in android settings.

thank you very much for your work!

edited nextcloud -> nextDNS

Edit2:

tested on a fairphone 3, lineageos 18.1

always on mode and block connection without vpn does not work, the dns is bypassed but ads are blocked somehow...

here is the logcat:

led to connect to jdwp control socket: Connection refused
01-08 20:52:53.769 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
8 20:52:17.238 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:52:17.238 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name il.srgssr.ch Allowed, sending to /192.168.1.1
01-08 20:52:17.243 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:52:17.247 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@c048fff
01-08 20:52:17.248 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:17.249 3948 4132 D AdVpnThread: Write to device
01-08 20:52:17.249 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:17.252 3948 4132 D AdVpnThread: Read from device
01-08 20:52:17.253 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 58
01-08 20:52:17.253 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:52:17.254 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name il.srgssr.ch Allowed, sending to /192.168.1.1
01-08 20:52:17.258 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:52:17.262 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@f803b2a
01-08 20:52:17.263 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:17.263 3948 4132 D AdVpnThread: Write to device
01-08 20:52:17.264 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:17.728 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:19.729 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:21.730 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:23.733 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:25.736 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:27.738 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:29.740 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:31.742 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:33.746 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:35.749 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:37.751 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:39.752 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:41.755 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:43.757 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:45.760 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:47.762 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:48.729 3948 3948 D MainActivity: onNewIntent: Wee
01-08 20:52:49.763 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:49.836 3948 3948 E RecyclerView: No adapter attached; skipping layout
01-08 20:52:51.766 3948 3960 E jak_linux.dns6: fai
-08 20:52:02.842 3948 4132 I DnsPacketProxy:
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: java.lang.ClassCastException: org.pcap4j.packet.TcpPacket cannot be cast to org.pcap4j.packet.UdpPacket
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.DnsPacketProxy.handleDnsRequest(DnsPacketProxy.java:156)
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.readPacketFromDevice(AdVpnThread.java:325)
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.doOne(AdVpnThread.java:290)
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.runVpn(AdVpnThread.java:226)
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.run(AdVpnThread.java:163)
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: at java.lang.Thread.run(Thread.java:923)
01-08 20:52:02.842 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:03.715 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:05.717 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:07.718 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:09.719 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:11.722 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:13.725 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:15.726 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:16.836 3948 4132 D AdVpnThread: Read from device
01-08 20:52:16.836 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 58
01-08 20:52:16.837 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:52:16.837 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name il.srgssr.ch Allowed, sending to /192.168.1.1
01-08 20:52:16.844 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:52:16.893 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@590ee5d
01-08 20:52:16.894 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:16.894 3948 4132 D AdVpnThread: Write to device
01-08 20:52:16.895 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:16.896 3948 4132 D AdVpnThread: Read from device
01-08 20:52:16.897 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 58
01-08 20:52:16.897 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:52:16.898 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name il.srgssr.ch Allowed, sending to /192.168.1.1
01-08 20:52:16.899 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:52:16.913 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@8f1fba0
01-08 20:52:16.914 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:16.914 3948 4132 D AdVpnThread: Write to device
01-08 20:52:16.916 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:17.237 3948 4132 D AdVpnThread: Read from device
01-08 20:52:17.237 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 58
01-0
8.680 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:51:58.686 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@382450f
01-08 20:51:58.687 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:58.688 3948 4132 D AdVpnThread: Write to device
01-08 20:51:58.689 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:59.712 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:00.720 3948 4132 D AdVpnThread: Read from device
01-08 20:52:00.720 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 87
01-08 20:52:00.720 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:52:00.720 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name srf-udp-production-api-mgmt.azure-api.net Allowed, sending to /192.168.1.1
01-08 20:52:00.723 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:52:00.727 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@528ff7a
01-08 20:52:00.728 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:00.728 3948 4132 D AdVpnThread: Write to device
01-08 20:52:00.729 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:00.731 3948 4132 D AdVpnThread: Read from device
01-08 20:52:00.731 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 87
01-08 20:52:00.731 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:52:00.732 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name srf-udp-production-api-mgmt.azure-api.net Allowed, sending to /192.168.1.1
01-08 20:52:00.734 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:52:00.738 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@7306121
01-08 20:52:00.738 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:00.738 3948 4132 D AdVpnThread: Write to device
01-08 20:52:00.738 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:52:01.714 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:52:02.841 3948 4132 D AdVpnThread: Read from device
01-08 20:52:02.842 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 60
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: handleDnsRequest: Discarding unknown packet type [IPv4 Header (20 bytes)]
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Version: 4 (IPv4)
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: IHL: 5 (20 [bytes])
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: TOS: [precedence: 0 (Routine)] [tos: 0 (Default)] [mbz: 0]
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Total length: 60 [bytes]
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Identification: 46628
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Flags: (Reserved, Don't Fragment, More Fragment) = (false, true, false)
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Fragment offset: 0 (0 [bytes])
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: TTL: 64
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Protocol: 6 (TCP)
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Header checksum: 0x0000
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Source address: /192.168.1.237
01-08 20:52:02.842 3948 4132 I DnsPacketProxy: Destination address: /192.0.2.2
01
tjava.net.DatagramSocket@4411e04
01-08 20:51:55.801 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:55.802 3948 4132 D AdVpnThread: Write to device
01-08 20:51:55.805 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:57.710 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:57.721 3948 4132 D AdVpnThread: Read from device
01-08 20:51:57.721 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 48
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: handleDnsRequest: Discarding unknown packet type [IPv6 Header (40 bytes)]
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: Version: 6 (IPv6)
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: Traffic Class: 0x00
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: Flow Label: 0x00000
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: Payload length: 8 [bytes]
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: Next Header: 58 (ICMPv6)
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: Hop Limit: 255
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: Source address: /fe80::ce38:ba3:d9ac:c5ac
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: Destination address: /ff02::2
01-08 20:51:57.722 3948 4132 I DnsPacketProxy:
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: java.lang.ClassCastException: org.pcap4j.packet.IcmpV6CommonPacket cannot be cast to org.pcap4j.packet.UdpPacket
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.DnsPacketProxy.handleDnsRequest(DnsPacketProxy.java:156)
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.readPacketFromDevice(AdVpnThread.java:325)
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.doOne(AdVpnThread.java:290)
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.runVpn(AdVpnThread.java:226)
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.run(AdVpnThread.java:163)
01-08 20:51:57.722 3948 4132 I DnsPacketProxy: at java.lang.Thread.run(Thread.java:923)
01-08 20:51:57.722 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:58.642 3948 4132 D AdVpnThread: Read from device
01-08 20:51:58.643 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 87
01-08 20:51:58.643 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:58.644 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name srf-udp-production-api-mgmt.azure-api.net Allowed, sending to /192.168.1.1
01-08 20:51:58.649 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:51:58.668 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@8b41670
01-08 20:51:58.670 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:58.670 3948 4132 D AdVpnThread: Write to device
01-08 20:51:58.674 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:58.675 3948 4132 D AdVpnThread: Read from device
01-08 20:51:58.675 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 87
01-08 20:51:58.676 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:58.677 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name srf-udp-production-api-mgmt.azure-api.net Allowed, sending to /192.168.1.1
01-08 20:51:5
20:51:49.435 3948 4132 I DnsPacketProxy: Checksum: 0xd6e0
01-08 20:51:49.446 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:49.699 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:51.703 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:51.774 3948 4132 D AdVpnThread: Read from device
01-08 20:51:51.774 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 61
01-08 20:51:51.775 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:51.775 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name chat.signal.org Allowed, sending to /192.168.1.1
01-08 20:51:51.779 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:51:51.819 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@8c1961f
01-08 20:51:51.820 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:51.821 3948 4132 D AdVpnThread: Write to device
01-08 20:51:51.822 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:51.825 3948 4132 D AdVpnThread: Read from device
01-08 20:51:51.825 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 61
01-08 20:51:51.826 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:51.826 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name chat.signal.org Allowed, sending to /192.168.1.1
01-08 20:51:51.831 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:51:51.857 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@f450fca
01-08 20:51:51.858 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:51.859 3948 4132 D AdVpnThread: Write to device
01-08 20:51:51.863 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:53.708 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:55.709 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:55.769 3948 4132 D AdVpnThread: Read from device
01-08 20:51:55.769 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 56
01-08 20:51:55.769 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:55.770 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name www.srf.ch Allowed, sending to /192.168.1.1
01-08 20:51:55.772 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:51:55.791 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@12a9b1
01-08 20:51:55.791 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:55.791 3948 4132 D AdVpnThread: Write to device
01-08 20:51:55.791 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:55.793 3948 4132 D AdVpnThread: Read from device
01-08 20:51:55.793 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 56
01-08 20:51:55.793 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:55.793 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name www.srf.ch Allowed, sending to /192.168.1.1
01-08 20:51:55.794 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:51:55.801 3948 4132 D AdVpnThread: Read from DNS socke
:51:30.415 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.DnsPacketProxy.handleDnsRequest(DnsPacketProxy.java:156)
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.readPacketFromDevice(AdVpnThread.java:325)
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.doOne(AdVpnThread.java:290)
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.runVpn(AdVpnThread.java:226)
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.run(AdVpnThread.java:163)
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: at java.lang.Thread.run(Thread.java:923)
01-08 20:51:30.415 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:31.681 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:33.387 3948 4132 D AdVpnThread: Read from device
01-08 20:51:33.387 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 56
01-08 20:51:33.388 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:33.388 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name www.srf.ch Allowed, sending to /192.168.1.1
01-08 20:51:33.390 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:51:33.408 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@5116472
01-08 20:51:33.409 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:33.409 3948 4132 D AdVpnThread: Write to device
01-08 20:51:33.410 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:33.682 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:35.684 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:37.685 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:39.687 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:41.689 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:43.693 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:45.695 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:47.698 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:49.427 3948 4132 D VpnWatchDog: handleTimeout: Milliseconds elapsed between last receive and sent: 15604
01-08 20:51:49.428 3948 4132 D VpnWatchDog: sendPacket: Sending packet, poll timeout is 64000
01-08 20:51:49.431 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:49.432 3948 4132 D AdVpnThread: Read from device
01-08 20:51:49.433 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 28
01-08 20:51:49.435 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:49.435 3948 4132 I DnsPacketProxy: handleDnsRequest: Sending UDP packet without payload: [UDP Header (8 bytes)]
01-08 20:51:49.435 3948 4132 I DnsPacketProxy: Source port: 42180 (unknown)
01-08 20:51:49.435 3948 4132 I DnsPacketProxy: Destination port: 53 (Domain Name Server)
01-08 20:51:49.435 3948 4132 I DnsPacketProxy: Length: 8 [bytes]
01-08
device
01-08 20:51:27.001 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 48
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: handleDnsRequest: Discarding unknown packet type [IPv6 Header (40 bytes)]
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: Version: 6 (IPv6)
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: Traffic Class: 0x00
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: Flow Label: 0x00000
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: Payload length: 8 [bytes]
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: Next Header: 58 (ICMPv6)
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: Hop Limit: 255
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: Source address: /fe80::ce38:ba3:d9ac:c5ac
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: Destination address: /ff02::2
01-08 20:51:27.002 3948 4132 I DnsPacketProxy:
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: java.lang.ClassCastException: org.pcap4j.packet.IcmpV6CommonPacket cannot be cast to org.pcap4j.packet.UdpPacket
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.DnsPacketProxy.handleDnsRequest(DnsPacketProxy.java:156)
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.readPacketFromDevice(AdVpnThread.java:325)
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.doOne(AdVpnThread.java:290)
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.runVpn(AdVpnThread.java:226)
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.run(AdVpnThread.java:163)
01-08 20:51:27.002 3948 4132 I DnsPacketProxy: at java.lang.Thread.run(Thread.java:923)
01-08 20:51:27.002 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:27.679 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:29.680 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:30.414 3948 4132 D AdVpnThread: Read from device
01-08 20:51:30.414 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 60
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: handleDnsRequest: Discarding unknown packet type [IPv4 Header (20 bytes)]
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Version: 4 (IPv4)
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: IHL: 5 (20 [bytes])
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: TOS: [precedence: 0 (Routine)] [tos: 0 (Default)] [mbz: 0]
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Total length: 60 [bytes]
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Identification: 46627
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Flags: (Reserved, Don't Fragment, More Fragment) = (false, true, false)
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Fragment offset: 0 (0 [bytes])
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: TTL: 64
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Protocol: 6 (TCP)
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Header checksum: 0x0001
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Source address: /192.168.1.237
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: Destination address: /192.0.2.2
01-08 20:51:30.415 3948 4132 I DnsPacketProxy:
01-08 20:51:30.415 3948 4132 I DnsPacketProxy: java.lang.ClassCastException: org.pcap4j.packet.TcpPacket cannot be cast to org.pcap4j.packet.UdpPacket
01-08 20
1:13.776 3948 4132 I DnsPacketProxy: Total length: 60 [bytes]
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: Identification: 46626
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: Flags: (Reserved, Don't Fragment, More Fragment) = (false, true, false)
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: Fragment offset: 0 (0 [bytes])
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: TTL: 64
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: Protocol: 6 (TCP)
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: Header checksum: 0x0002
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: Source address: /192.168.1.237
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: Destination address: /192.0.2.2
01-08 20:51:13.776 3948 4132 I DnsPacketProxy:
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: java.lang.ClassCastException: org.pcap4j.packet.TcpPacket cannot be cast to org.pcap4j.packet.UdpPacket
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.DnsPacketProxy.handleDnsRequest(DnsPacketProxy.java:156)
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.readPacketFromDevice(AdVpnThread.java:325)
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.doOne(AdVpnThread.java:290)
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.runVpn(AdVpnThread.java:226)
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.run(AdVpnThread.java:163)
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: at java.lang.Thread.run(Thread.java:923)
01-08 20:51:13.777 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:15.666 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:17.667 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:17.782 3948 4132 D VpnWatchDog: handleTimeout: Milliseconds elapsed between last receive and sent: 13154
01-08 20:51:17.782 3948 4132 D VpnWatchDog: sendPacket: Sending packet, poll timeout is 16000
01-08 20:51:17.783 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:17.783 3948 4132 D AdVpnThread: Read from device
01-08 20:51:17.784 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 28
01-08 20:51:17.784 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:17.784 3948 4132 I DnsPacketProxy: handleDnsRequest: Sending UDP packet without payload: [UDP Header (8 bytes)]
01-08 20:51:17.784 3948 4132 I DnsPacketProxy: Source port: 45026 (unknown)
01-08 20:51:17.784 3948 4132 I DnsPacketProxy: Destination port: 53 (Domain Name Server)
01-08 20:51:17.784 3948 4132 I DnsPacketProxy: Length: 8 [bytes]
01-08 20:51:17.784 3948 4132 I DnsPacketProxy: Checksum: 0xcbc2
01-08 20:51:17.786 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:19.669 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:21.673 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:23.675 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:25.676 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:27.001 3948 4132 D AdVpnThread: Read from
DNS66 Logcat - --------- beginning of main
01-08 20:51:10.787 3948 4132 D AdVpnThread: Read from device
01-08 20:51:10.788 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 48
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: handleDnsRequest: Discarding unknown packet type [IPv6 Header (40 bytes)]
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: Version: 6 (IPv6)
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: Traffic Class: 0x00
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: Flow Label: 0x00000
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: Payload length: 8 [bytes]
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: Next Header: 58 (ICMPv6)
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: Hop Limit: 255
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: Source address: /fe80::ce38:ba3:d9ac:c5ac
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: Destination address: /ff02::2
01-08 20:51:10.788 3948 4132 I DnsPacketProxy:
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: java.lang.ClassCastException: org.pcap4j.packet.IcmpV6CommonPacket cannot be cast to org.pcap4j.packet.UdpPacket
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.DnsPacketProxy.handleDnsRequest(DnsPacketProxy.java:156)
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.readPacketFromDevice(AdVpnThread.java:325)
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.doOne(AdVpnThread.java:290)
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.runVpn(AdVpnThread.java:226)
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: at org.jak_linux.dns66.vpn.AdVpnThread.run(AdVpnThread.java:163)
01-08 20:51:10.788 3948 4132 I DnsPacketProxy: at java.lang.Thread.run(Thread.java:923)
01-08 20:51:10.788 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:11.663 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:12.723 3948 4132 D AdVpnThread: Read from device
01-08 20:51:12.723 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 89
01-08 20:51:12.724 3948 4132 D DnsPacketProxy: handleDnsRequest: Incoming packet to 192.0.2.2 AKA 0 AKA /192.168.1.1
01-08 20:51:12.724 3948 4132 I DnsPacketProxy: handleDnsRequest: DNS Name sync-1-us-west1-g.sync.services.mozilla.com Allowed, sending to /192.168.1.1
01-08 20:51:12.727 3948 4132 D AdVpnThread: doOne: Polling 3 file descriptors
01-08 20:51:12.747 3948 4132 D AdVpnThread: Read from DNS socketjava.net.DatagramSocket@5296c1a
01-08 20:51:12.748 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:12.748 3948 4132 D AdVpnThread: Write to device
01-08 20:51:12.748 3948 4132 D AdVpnThread: doOne: Polling 2 file descriptors
01-08 20:51:13.665 3948 3960 E jak_linux.dns6: failed to connect to jdwp control socket: Connection refused
01-08 20:51:13.775 3948 4132 D AdVpnThread: Read from device
01-08 20:51:13.775 3948 4132 D VpnWatchDog: handlePacket: Received packet of length 60
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: handleDnsRequest: Discarding unknown packet type [IPv4 Header (20 bytes)]
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: Version: 4 (IPv4)
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: IHL: 5 (20 [bytes])
01-08 20:51:13.776 3948 4132 I DnsPacketProxy: TOS: [precedence: 0 (Routine)] [tos: 0 (Default)] [mbz: 0]
01-08 20:5

@manuelrepo manuelrepo changed the title DNS not connecting to the internet DNS with VPN setting "always-on-mode" and "block connection without vpn" not connecting to the internet Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant