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

v1.1.75 sometimes does not start when 8.8.8.8:443 is blocked #48

Open
1 task done
RonKhondji opened this issue Sep 4, 2024 · 4 comments
Open
1 task done

v1.1.75 sometimes does not start when 8.8.8.8:443 is blocked #48

RonKhondji opened this issue Sep 4, 2024 · 4 comments
Assignees
Labels

Comments

@RonKhondji
Copy link

Please answer the following question for yourself before submitting an issue

  • I checked to make sure that this issue has not already been filed

AdGuard VPN CLI version

1.1.75

Environment

Ubuntu 24.04.1 LTS

Issue Details

I updated with adguardvpn-cli update.
After that the vpn service won't start in the background.

Then I rebooted with sudo reboot now.

After that the vpn service still won't start in the background.

Expected Behavior

A working VPN.

Actual Behavior

A not working VPN

Screenshots

Screenshot 1
![Screenshot from 2024-09-04 18-00-19](https://github.com/user-attachments/assets/c35e1931-0ceb-4214-a8c0-edbfa274da83)

Additional Information

No response

@RonKhondji RonKhondji added the Bug Something isn't working label Sep 4, 2024
@sfionov
Copy link
Member

sfionov commented Sep 4, 2024

@RonKhondji Hello! Thank you for your report.

Can you please do adguardvpn-cli config set-debug-logging on, reproduce problem, collect the logs using adguardvpn-cli export-logs and send them to [email protected]? In title, please specify this issue.

@RonKhondji
Copy link
Author

Done.
The service did start once after turning on the debug logging. After that it kept on failing again.

@RonKhondji
Copy link
Author

Ok I found something.
I'm running my own AdGuardHome dns server and have firewall rules for everything on my local lan to only use that. So 8.8.8.8 and 1.1.1.1 are not accessable from within my lan.

Looking at the logs I think I see adguardvpn-cli trying to connect to 8.8.8.8 instead of using the system dns, so I turned of the firewall rule for a little while. Without that rule the vpn connects fine.

Now I'm just an amateur but it looks like adguardvpn-cli should use the system dns server as the upstream dns and not simply use google or cloudflare.

If I'm wrong, please ignore this :)

@sfionov
Copy link
Member

sfionov commented Sep 5, 2024

@RonKhondji Yes, this is DNS related problem.

AG VPN CLI uses both DNS-over-HTTPS and system DNS to resolve its servers. However, when tunnel is already running, it is possible that system DNS loops into AG VPN CLI itself, so DoH is only reliable solution.

We'll look why regular DNS fails during connect in this particular case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants