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

[Question] - VPN active or inactive when no connection at all available #460

Closed
merlinuwe opened this issue Nov 24, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@merlinuwe
Copy link

I use Xiaomi Poco X3 Pro, android 11, userspace and try wg tunnel 3.6.1.

As you see in the screenshots, it is possible to have VPN activated or inactivated when there is no WiFi and mobile data connection.

Do I understand correctly that the VPN connection should actually be closed? Or have I possibly configured something incorrectly?

I tried a restart of my smartphone, but the issue is reproducable.

Do I have to delete the original wireguard app? It is not running and not set to autostart, but wg tunnel is.

Screenshot_2024-11-24-23-10-56-582_com brave browser

Screenshot_2024-11-24-23-09-09-731_com mi android globallauncher

@merlinuwe merlinuwe added the bug Something isn't working label Nov 24, 2024
@merlinuwe merlinuwe changed the title [BUG] - Problem with app [Question] - VPN active or inactive when no connection at all available Nov 24, 2024
@zaneschepke
Copy link
Owner

Hey! I'm not sure I'm understanding the bug here. What is the bug?

@merlinuwe
Copy link
Author

Hey! I'm not sure I'm understanding the bug here. What is the bug?

When mobile data and wifi are disabled, why is VPN active? I would assume that the VPN connection terminates when there is no way to connect to the internet.

@zaneschepke
Copy link
Owner

Wireguard uses UDP and is stateless. Because there is no persistent connection to the server, it does not care whether or not you are online or offline. The tunnel interface will stay active and will start working again once you come back online. This is nice because it prevents leaks. What I can do is add an additional option to auto tunneling that will disable the tunnel when you are offline if you wish for that to be the behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants