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

Insync #86

Open
lonegunman82 opened this issue Dec 24, 2024 · 6 comments
Open

Insync #86

lonegunman82 opened this issue Dec 24, 2024 · 6 comments

Comments

@lonegunman82
Copy link

I am using Fedora with the KDE environment. Due to the lack of a Linux version of the Google Drive client, I use Insync (https://www.insynchq.com/). Yesterday, I installed the adblock-lean package on my router (Netgear R6220). Since then, Insync stopped working. I am having trouble resolving this issue. I tried enabling the whitelist, but with no result. I have the SMALL blacklist version installed.

@lynxthecat
Copy link
Owner

lynxthecat commented Dec 24, 2024

I suggest running tcpdump and filter on DNS port(s) to capture the necessary lookups.

@lonegunman82
Copy link
Author

Based on the tcpdump output, I am receiving NXDomain responses for most of the DNS queries to services like www.google-analytics.com and beacons.gcp.gvt2.com. It seems that the issue might be related to logging into Google services.

sudo tcpdump -i enp6s0 port 53
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on enp6s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
11:19:27.806121 IP madzia-dom.40292 > _gateway.domain: 65221+ [1au] A? www.google-analytics.com. (53)
11:19:27.807020 IP _gateway.domain > madzia-dom.40292: 65221 NXDomain 0/0/1 (53)
11:19:31.803607 IP madzia-dom.57701 > _gateway.domain: 45088+ [1au] A? www.google-analytics.com. (53)
11:19:31.804482 IP _gateway.domain > madzia-dom.57701: 45088 NXDomain 0/0/1 (53)
11:19:35.154865 IP madzia-dom.38477 > _gateway.domain: 13519+ [1au] A? www.google-analytics.com. (53)
11:19:35.155723 IP _gateway.domain > madzia-dom.38477: 13519 NXDomain 0/0/1 (53)
11:19:38.614784 IP madzia-dom.44960 > _gateway.domain: 31403+ [1au] A? www.google-analytics.com. (53)
11:19:38.615624 IP _gateway.domain > madzia-dom.44960: 31403 NXDomain 0/0/1 (53)
11:19:43.692727 IP madzia-dom.52494 > _gateway.domain: 63433+ [1au] AAAA? beacons.gcp.gvt2.com. (49)
11:19:43.692762 IP madzia-dom.53314 > _gateway.domain: 44570+ [1au] A? beacons.gcp.gvt2.com. (49)
11:19:43.693446 IP madzia-dom.47634 > _gateway.domain: 49209+ [1au] A? signaler-pa.clients6.google.com. (60)
11:19:43.693469 IP madzia-dom.50510 > _gateway.domain: 54025+ [1au] AAAA? signaler-pa.clients6.google.com. (60)
11:19:43.697608 IP _gateway.domain > madzia-dom.52494: 63433 NXDomain 0/0/1 (49)
11:19:43.701615 IP _gateway.domain > madzia-dom.53314: 44570 NXDomain 0/0/1 (49)
11:19:43.701986 IP madzia-dom.59968 > _gateway.domain: 41957+ [1au] AAAA? beacons.gcp.gvt2.com. (49)
11:19:43.702008 IP madzia-dom.33471 > _gateway.domain: 3719+ [1au] A? beacons.gcp.gvt2.com. (49)
11:19:43.711445 IP _gateway.domain > madzia-dom.59968: 41957 NXDomain 0/0/1 (49)
11:19:43.715596 IP _gateway.domain > madzia-dom.33471: 3719 NXDomain 0/0/1 (49)
11:19:43.715959 IP madzia-dom.53208 > _gateway.domain: 49552+ [1au] AAAA? beacons.gcp.gvt2.com. (49)
11:19:43.715979 IP madzia-dom.39179 > _gateway.domain: 55318+ [1au] A? beacons.gcp.gvt2.com. (49)
11:19:43.716081 IP madzia-dom.44872 > _gateway.domain: 9322+ [1au] A? beacons.gvt2.com. (45)
11:19:43.720492 IP _gateway.domain > madzia-dom.53208: 49552 NXDomain 0/0/1 (49)
11:19:43.724688 IP _gateway.domain > madzia-dom.39179: 55318 NXDomain 0/0/1 (49)
11:19:43.725113 IP _gateway.domain > madzia-dom.50510: 54025 1/0/1 AAAA 2a00:1450:401b:806::200a (88)
11:19:43.728154 IP _gateway.domain > madzia-dom.44872: 9322 NXDomain 0/0/1 (45)
11:19:43.728632 IP _gateway.domain > madzia-dom.47634: 49209 1/0/1 A 142.250.203.138 (76)
11:19:43.728951 IP madzia-dom.33196 > _gateway.domain: 38720+ [1au] AAAA? beacons2.gvt2.com. (46)
11:19:43.728969 IP madzia-dom.48951 > _gateway.domain: 10777+ [1au] A? beacons2.gvt2.com. (46)
11:19:43.732536 IP _gateway.domain > madzia-dom.33196: 38720 NXDomain 0/0/1 (46)
11:19:43.735706 IP _gateway.domain > madzia-dom.48951: 10777 NXDomain 0/0/1 (46)
11:19:43.735996 IP madzia-dom.58947 > _gateway.domain: 55723+ [1au] AAAA? beacons2.gvt2.com. (46)
11:19:43.736014 IP madzia-dom.33360 > _gateway.domain: 1371+ [1au] A? beacons2.gvt2.com. (46)
11:19:43.739165 IP _gateway.domain > madzia-dom.58947: 55723 NXDomain 0/0/1 (46)
11:19:43.742142 IP _gateway.domain > madzia-dom.33360: 1371 NXDomain 0/0/1 (46)
11:19:43.742553 IP madzia-dom.39755 > _gateway.domain: 38308+ [1au] AAAA? beacons2.gvt2.com. (46)
11:19:43.742584 IP madzia-dom.34289 > _gateway.domain: 33417+ [1au] A? beacons2.gvt2.com. (46)
11:19:43.745939 IP _gateway.domain > madzia-dom.39755: 38308 NXDomain 0/0/1 (46)
11:19:43.748865 IP _gateway.domain > madzia-dom.34289: 33417 NXDomain 0/0/1 (46)
11:19:43.749197 IP madzia-dom.53335 > _gateway.domain: 37872+ [1au] AAAA? beacons2.gvt2.com. (46)
11:19:43.749222 IP madzia-dom.50191 > _gateway.domain: 14951+ [1au] A? beacons2.gvt2.com. (46)
11:19:43.752365 IP _gateway.domain > madzia-dom.50191: 14951 NXDomain 0/0/1 (46)
11:19:43.755503 IP _gateway.domain > madzia-dom.53335: 37872 NXDomain 0/0/1 (46)
11:19:43.755956 IP madzia-dom.58425 > _gateway.domain: 51726+ [1au] AAAA? beacons3.gvt2.com. (46)
11:19:43.755980 IP madzia-dom.39046 > _gateway.domain: 26890+ [1au] A? beacons3.gvt2.com. (46)
11:19:43.759111 IP _gateway.domain > madzia-dom.58425: 51726 NXDomain 0/0/1 (46)
11:19:43.762373 IP _gateway.domain > madzia-dom.39046: 26890 NXDomain 0/0/1 (46)
11:19:43.762863 IP madzia-dom.42924 > _gateway.domain: 30433+ [1au] AAAA? beacons3.gvt2.com. (46)
11:19:43.762893 IP madzia-dom.51558 > _gateway.domain: 27943+ [1au] A? beacons3.gvt2.com. (46)
11:19:43.766167 IP _gateway.domain > madzia-dom.42924: 30433 NXDomain 0/0/1 (46)
11:19:43.769230 IP _gateway.domain > madzia-dom.51558: 27943 NXDomain 0/0/1 (46)
11:19:43.769614 IP madzia-dom.50017 > _gateway.domain: 3409+ [1au] AAAA? beacons3.gvt2.com. (46)
11:19:43.769637 IP madzia-dom.51993 > _gateway.domain: 34435+ [1au] A? beacons3.gvt2.com. (46)
11:19:43.772828 IP _gateway.domain > madzia-dom.50017: 3409 NXDomain 0/0/1 (46)
11:19:43.776003 IP _gateway.domain > madzia-dom.51993: 34435 NXDomain 0/0/1 (46)
11:19:43.776277 IP madzia-dom.41496 > _gateway.domain: 59514+ [1au] AAAA? beacons3.gvt2.com. (46)
11:19:43.776306 IP madzia-dom.60926 > _gateway.domain: 14958+ [1au] A? beacons3.gvt2.com. (46)
11:19:43.779711 IP _gateway.domain > madzia-dom.60926: 14958 NXDomain 0/0/1 (46)
11:19:43.782710 IP _gateway.domain > madzia-dom.41496: 59514 NXDomain 0/0/1 (46)
11:19:43.783045 IP madzia-dom.41537 > _gateway.domain: 29784+ [1au] AAAA? beacons4.gvt2.com. (46)
11:19:43.783063 IP madzia-dom.35494 > _gateway.domain: 12723+ [1au] A? beacons4.gvt2.com. (46)
11:19:43.786366 IP _gateway.domain > madzia-dom.41537: 29784 NXDomain 0/0/1 (46)
11:19:43.789330 IP _gateway.domain > madzia-dom.35494: 12723 NXDomain 0/0/1 (46)
11:19:43.789641 IP madzia-dom.36494 > _gateway.domain: 687+ [1au] AAAA? beacons4.gvt2.com. (46)
11:19:43.789667 IP madzia-dom.48380 > _gateway.domain: 21994+ [1au] A? beacons4.gvt2.com. (46)
11:19:43.792908 IP _gateway.domain > madzia-dom.48380: 21994 NXDomain 0/0/1 (46)
11:19:43.795990 IP _gateway.domain > madzia-dom.36494: 687 NXDomain 0/0/1 (46)
11:19:43.796424 IP madzia-dom.43921 > _gateway.domain: 7789+ [1au] AAAA? beacons4.gvt2.com. (46)
11:19:43.796484 IP madzia-dom.59498 > _gateway.domain: 30069+ [1au] A? beacons4.gvt2.com. (46)
11:19:43.799604 IP _gateway.domain > madzia-dom.43921: 7789 NXDomain 0/0/1 (46)
11:19:43.802828 IP _gateway.domain > madzia-dom.59498: 30069 NXDomain 0/0/1 (46)
11:19:43.803165 IP madzia-dom.56018 > _gateway.domain: 41524+ [1au] AAAA? beacons4.gvt2.com. (46)
11:19:43.803193 IP madzia-dom.56546 > _gateway.domain: 21237+ [1au] A? beacons4.gvt2.com. (46)
11:19:43.806384 IP _gateway.domain > madzia-dom.56018: 41524 NXDomain 0/0/1 (46)
11:19:43.809370 IP _gateway.domain > madzia-dom.56546: 21237 NXDomain 0/0/1 (46)
11:19:43.809761 IP madzia-dom.33297 > _gateway.domain: 30414+ [1au] AAAA? beacons5.gvt2.com. (46)
11:19:43.809780 IP madzia-dom.48424 > _gateway.domain: 52005+ [1au] A? beacons5.gvt2.com. (46)
11:19:43.812942 IP _gateway.domain > madzia-dom.33297: 30414 NXDomain 0/0/1 (46)
11:19:43.816060 IP _gateway.domain > madzia-dom.48424: 52005 NXDomain 0/0/1 (46)
11:19:43.816374 IP madzia-dom.55130 > _gateway.domain: 44763+ [1au] AAAA? beacons5.gvt2.com. (46)
11:19:43.816401 IP madzia-dom.44603 > _gateway.domain: 28445+ [1au] A? beacons5.gvt2.com. (46)
11:19:43.819544 IP _gateway.domain > madzia-dom.55130: 44763 NXDomain 0/0/1 (46)
11:19:43.822515 IP _gateway.domain > madzia-dom.44603: 28445 NXDomain 0/0/1 (46)
11:19:43.822892 IP madzia-dom.57785 > _gateway.domain: 53106+ [1au] AAAA? beacons5.gvt2.com. (46)
11:19:43.822911 IP madzia-dom.42311 > _gateway.domain: 58629+ [1au] A? beacons5.gvt2.com. (46)
11:19:43.826212 IP _gateway.domain > madzia-dom.57785: 53106 NXDomain 0/0/1 (46)
11:19:43.829174 IP _gateway.domain > madzia-dom.42311: 58629 NXDomain 0/0/1 (46)
11:19:43.829495 IP madzia-dom.40987 > _gateway.domain: 33537+ [1au] AAAA? beacons5.gvt2.com. (46)
11:19:43.829521 IP madzia-dom.44135 > _gateway.domain: 33974+ [1au] A? beacons5.gvt2.com. (46)
11:19:43.832723 IP _gateway.domain > madzia-dom.40987: 33537 NXDomain 0/0/1 (46)
11:19:43.835857 IP _gateway.domain > madzia-dom.44135: 33974 NXDomain 0/0/1 (46)
11:19:43.836279 IP madzia-dom.38672 > _gateway.domain: 1073+ [1au] AAAA? beacons5.gvt3.com. (46)
11:19:43.836304 IP madzia-dom.54993 > _gateway.domain: 24625+ [1au] A? beacons5.gvt3.com. (46)
11:19:43.839491 IP _gateway.domain > madzia-dom.38672: 1073 NXDomain 0/0/1 (46)
11:19:43.842451 IP _gateway.domain > madzia-dom.54993: 24625 NXDomain 0/0/1 (46)
11:19:43.842773 IP madzia-dom.57745 > _gateway.domain: 49045+ [1au] AAAA? beacons5.gvt3.com. (46)
11:19:43.842800 IP madzia-dom.44284 > _gateway.domain: 38269+ [1au] A? beacons5.gvt3.com. (46)
11:19:43.846097 IP _gateway.domain > madzia-dom.44284: 38269 NXDomain 0/0/1 (46)
11:19:43.849050 IP _gateway.domain > madzia-dom.57745: 49045 NXDomain 0/0/1 (46)
11:19:43.849527 IP madzia-dom.47706 > _gateway.domain: 29647+ [1au] AAAA? beacons5.gvt3.com. (46)
11:19:43.849552 IP madzia-dom.44427 > _gateway.domain: 40973+ [1au] A? beacons5.gvt3.com. (46)
11:19:43.852714 IP _gateway.domain > madzia-dom.47706: 29647 NXDomain 0/0/1 (46)
11:19:43.855807 IP _gateway.domain > madzia-dom.44427: 40973 NXDomain 0/0/1 (46)
11:19:43.856115 IP madzia-dom.43471 > _gateway.domain: 11526+ [1au] AAAA? beacons5.gvt3.com. (46)
11:19:43.856140 IP madzia-dom.58430 > _gateway.domain: 37220+ [1au] A? beacons5.gvt3.com. (46)
11:19:43.859315 IP _gateway.domain > madzia-dom.43471: 11526 NXDomain 0/0/1 (46)
11:19:43.862275 IP _gateway.domain > madzia-dom.58430: 37220 NXDomain 0/0/1 (46)
11:19:43.862590 IP madzia-dom.56088 > _gateway.domain: 10922+ [1au] AAAA? beacons5.gvt3.com. (46)
11:19:43.862622 IP madzia-dom.57292 > _gateway.domain: 10481+ [1au] A? beacons5.gvt3.com. (46)
11:19:43.862716 IP madzia-dom.48165 > _gateway.domain: 26314+ [1au] AAAA? clients2.google.com. (48)
11:19:43.862737 IP madzia-dom.48914 > _gateway.domain: 15122+ [1au] A? clients2.google.com. (48)
11:19:43.866193 IP _gateway.domain > madzia-dom.56088: 10922 NXDomain 0/0/1 (46)
11:19:43.869139 IP _gateway.domain > madzia-dom.57292: 10481 NXDomain 0/0/1 (46)
11:19:43.890511 IP _gateway.domain > madzia-dom.48914: 15122 2/0/1 CNAME clients.l.google.com., A 142.250.203.142 (88)
11:19:43.894647 IP _gateway.domain > madzia-dom.48165: 26314 2/0/1 CNAME clients.l.google.com., AAAA 2a00:1450:401b:80e::200e (100)
11:19:44.697239 IP madzia-dom.46803 > _gateway.domain: 37765+ [1au] A? ssl.gstatic.com. (44)
11:19:44.697270 IP madzia-dom.37648 > _gateway.domain: 30514+ [1au] AAAA? ssl.gstatic.com. (44)
11:19:44.719463 IP _gateway.domain > madzia-dom.46803: 37765 1/0/1 A 216.58.215.99 (60)
11:19:44.721765 IP _gateway.domain > madzia-dom.37648: 30514 1/0/1 AAAA 2a00:1450:401b:807::2003 (72)
11:19:45.005625 IP madzia-dom.51638 > _gateway.domain: 54124+ [1au] A? www.google-analytics.com. (53)
11:19:45.006478 IP _gateway.domain > madzia-dom.51638: 54124 NXDomain 0/0/1 (53)
11:19:47.546914 IP madzia-dom.46395 > _gateway.domain: 13878+ [1au] A? www.google-analytics.com. (53)
11:19:47.547907 IP _gateway.domain > madzia-dom.46395: 13878 NXDomain 0/0/1 (53)
^C
122 packets captured
122 packets received by filter
0 packets dropped by kernel

@friendly-bits
Copy link
Collaborator

friendly-bits commented Jan 1, 2025

You could try creating a local allowlist at path /etc/adblock-lean/allowlist and adding to it domains you suspect are related, then restarting adblock-lean and checking whether this helped.

Example contents of /etc/adblock-lean/allowlist:

example.com
example2.com
example3.com

You could also start by adding all known Google domains to the allowlist, for example these:

https://github.com/v2fly/domain-list-community/blob/master/data/google

(Above list won't work as-is with adblock-lean, you will need to compile a simple newline-separated list of domains out of it). Note that currently adblock-lean does not support specifying TLDs (top-level domains) in either blocklist or allowlist, so these will need to be removed from the resulting allowlist file.

Once you have an allowlist that solves the issue, you can start narrowing it down by removing entries from it, say remove the 2nd half of the domains list, restart adblock-lean, check if Insync is working, if not then put back the domains you just removed and remove the other half, restart adblock-lean, test insync, rinse and repeat.

@friendly-bits
Copy link
Collaborator

P.s. make sure to disable whitelist mode as it does the opposite of what you want.

@lonegunman82
Copy link
Author

I added google-analytics.com, beacons.gcp.gvt2.com, and signaler-pa.clients6.google.com to the allowlist. Insync logs into Google services correctly. I will continue testing to determine which of these addresses is responsible for the issue. Thank you for your help!

@friendly-bits
Copy link
Collaborator

I think this issue can be closed now @lynxthecat

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

3 participants