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

[BUG] - Auto tunnel fails to restart if switching from an ipv6 enabled network to an ipv4 only one #371

Open
seppiola opened this issue Sep 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@seppiola
Copy link

Describe the bug
Auto tunnel fails to ping ipv6 endpoint if switching from an ipv6 network to an ipv4 only one, not eventually restarting the tunnel if "restart on ping fail is enabled".

Smartphone:

  • Device: FP5
  • Android Version: Android 14
  • App Version 3.5.2
  • Backend: Userspace

To Reproduce
Steps to reproduce the behavior:

  1. Enable " restar on ping fail".
  2. Connect to a wg peer using ipv6.
  3. Switch to a network (wifi or mobile data) which only uses ipv4.
  4. The tunnel never gets restarted.

Expected behavior
If unable to ping because of network changes making the app unable to do so, like missing ipv6 connectivity, just consider it a ping fail after a timeout and restart the tunnel.

Additional context
I actually think maybe a different solution could be considered for cases like this, namely endpoints with changing ips.
It has been discussed in #6 and I actually even left a comment some time ago with my suggestions, though probably nobody saw that since the issue had already been closed.
As far as I understand in the meantime auto tunnel has been improved a bit and can now also be used with always on vpn, which is indeed a welcome change, but the core of the issue remains for me and I still think enpoint dns reresolution should be handled in a different way.

@seppiola seppiola added the bug Something isn't working label Sep 29, 2024
@zaneschepke
Copy link
Owner

Hey! Thanks for these detailed write ups and Im sorry I missed your original message. Ill take some time to review your solution more in depth and get back with my thoughts. Thanks again!

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