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

Tunnel won't auto reconnect if internet goes down and comes back #54

Closed
rob77uk opened this issue Nov 2, 2023 · 5 comments
Closed

Tunnel won't auto reconnect if internet goes down and comes back #54

rob77uk opened this issue Nov 2, 2023 · 5 comments

Comments

@rob77uk
Copy link

rob77uk commented Nov 2, 2023

Firstly thank you for making this great app. I'm running it on a shield and have been looking for a solution for my VPN to auto start on reboot and this works wonderfully.

The only issue I have is if the internet goes down and comes back up or I reboot my modem then the tunnel will stay connected but not reconnect. The little star at the side of my tunnel goes from green to red but stays like this forcing me to disconnect and reconnect to get internet access back.

Is there a way for it to auto reconnect if the tunnel goes down?

Thanks

@zaneschepke
Copy link
Owner

Hello! Thank you for using the app and reporting the issue. I'll try to reproduce this issue on my end and get back with you. It should be reconnecting automatically.

@zaneschepke
Copy link
Owner

@rob77uk I was unable to replicate this behavior.

Is your WireGuard server self-hosted or cloud hosted?

The only thing I can think of is somehow there is a DNS resolution issue or some other issue triggered by your network going down that is causing the app to fail re-establishing connection with the WireGuard server.

@rob77uk
Copy link
Author

rob77uk commented Nov 5, 2023

Hi Zane

Thank you for checking for me. The VPN service I'm using is Airvpn and I just use the default settings so it is using there own DNS servers. I also have your app split tunneling so only a couple of my apps are using wireguard. The rest go through the regular internet as it causes problems with netflix etc.

It's not a massive issue as I can just toggle off then on. If I can try any different setting please let me know.

Cheers

Rob

@zaneschepke
Copy link
Owner

I think this issue is related to #6. I think it is an issue with the IP having changed on the WG server and when the tunnel tries to re-establish connection it does not re-resolve the DNS, so you are unable to connect to the server. This would explain why restarting the tunnel fixes the issue, as WG will resolve DNS on the new connection.

@zaneschepke
Copy link
Owner

I have reopened #6, so I am going to make this one as closed.

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

2 participants