Hiya, so this is a problem I’ve run into recently using an image of Project Bluefin, hoping someone here might be able to point me in the right direction of solving this problem.

My issue is that, each time I close the lid of my laptop, and open it again I need to refresh Tailscale (take it down and up again), in order to be able to connect to the internet. Obviously, I can just do that each time, but it is a slight annoyance. Tailscale is built in, pre-installed, on the system image and this is an immutable distro. I don’t know what this comes of, nor do I know how I could troubleshoot it in terms of looking at logs. So any pin pointers as towards helping me solve this would be greatly appreciated!

  • ruben@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    7 months ago

    It is reporting that the VPN connection is still up after opening the lid, even if it is not. I don’t think there are any other problems?

    • Sunny' 🌻@slrpnk.netOP
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      right, it is up and should be up. However, I don’t have access to internet unless I refresh the connection.

  • Thomas@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    7 months ago

    There is some information missing in the problem description. For example, if you close the lid, does the computer suspend/sleep/hibernate? It may be that when the computer sleeps something “breaks” or it may be that the act of physically closing/opening the lid has an effect (e.g. because the WiFi antenna is embedded in the display frame).

    Some time ago I had a similar problem with Tailscale and sleeping. When Tailscale initializes itself (at boot), it has to interact with another service to communicate which DNS servers have become available (e.g. 100.100.100.100). Several implementations of such services exist (resolvconf, openresolv), in my case systemd-resolved. During normal operation, resolvectl status (if using systemd-resolved) shows which DNS servers and which search domains are configured for each network interface such as tailscale0. Now, there is a bug (or feature) that systemd-resolved “forgets” the DNS configuration it got from Tailscale when the computer is put to sleep. So, when the computer wakes up, name resolution via Tailscale no longer works, giving you the impression that Tailscale itself is not working, although Tailscale’s low-level functions are still operational. My “solution” was to write a small script that gets executed when the computer wakes up which sets again DNS server and search domain for network device tailscale0.