[GH-ISSUE #1000] Internet connection is broken when waking up from sleep on Linux #321

Closed
opened 2026-10-13 20:18:50 +00:00 by bsakaguchi · 16 comments
Owner

Originally created by @Artikool5 on GitHub (Aug 23, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1000

Describe the bug
If I'm connected to my server and put the laptop to sleep, then wake it up - both Amnezia app and wi-fi (or Ethernet) connections show up as working but I cannot access any website neither from browser nor from CLI (except local networks). Everything starts working as soon as I disconnect from my server in the Amnezia app.

To Reproduce
Steps to reproduce the behavior:

  1. Connect to the vpn server
  2. Put devise to sleep/suspend
  3. Wake it up
  4. Internet connection is not working now

Expected behavior
After waking from sleep the connection should work

Desktop (please complete the following information):

  • OS: CachyOS (Arch based)
  • Version: 4.7.0.0

Server (please complete the following information):

  • OS: Ubuntu 22.04 LTS

Additional context
I tried doing the same thing on:

  • Windows 10 LTSC / 4.6.0.3
    • Works as intended
  • Ubuntu 24.04 LTS / 4.6.0.3
    • Does not work
  • Fedora 40 / 4.6.0.3
    • Does not work
  • EndeavourOS / 4.6.0.3
    • Does not work

Also had some troubles installing 4.7.0.0 version for some reason, installed perfectly fine only on CachyOS.

Tried this on two machines, all bare metal:

  • Asus laptop:
    • CachyOS
  • PC:
    • Windows
    • Ubuntu
    • Fedora
    • EndeavourOS
Originally created by @Artikool5 on GitHub (Aug 23, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1000 **Describe the bug** If I'm connected to my server and put the laptop to sleep, then wake it up - both Amnezia app and wi-fi (or Ethernet) connections show up as working but I cannot access any website neither from browser nor from CLI (except local networks). Everything starts working as soon as I disconnect from my server in the Amnezia app. **To Reproduce** Steps to reproduce the behavior: 1. Connect to the vpn server 2. Put devise to sleep/suspend 3. Wake it up 4. Internet connection is not working now **Expected behavior** After waking from sleep the connection should work **Desktop (please complete the following information):** - OS: CachyOS (Arch based) - Version: 4.7.0.0 **Server (please complete the following information):** - OS: Ubuntu 22.04 LTS **Additional context** I tried doing the same thing on: - Windows 10 LTSC / 4.6.0.3 - Works as intended - Ubuntu 24.04 LTS / 4.6.0.3 - Does not work - Fedora 40 / 4.6.0.3 - Does not work - EndeavourOS / 4.6.0.3 - Does not work Also had some troubles installing 4.7.0.0 version for some reason, installed perfectly fine only on CachyOS. Tried this on two machines, all bare metal: - Asus laptop: - CachyOS - PC: - Windows - Ubuntu - Fedora - EndeavourOS
Author
Owner

@rekkido commented on GitHub (Sep 12, 2024):

+1 for this. On PopOs.
Looks like amnesia client creating a tun type connection when starting ( nmcli connection show ) and this connection is up faster then ethernet (main) connection. (not a proffessional network guy, so i can be wrong)

<!-- gh-comment-id:2346021241 --> @rekkido commented on GitHub (Sep 12, 2024): +1 for this. On PopOs. Looks like amnesia client creating a tun type connection when starting ( `nmcli connection show` ) and this connection is up faster then ethernet (main) connection. (not a proffessional network guy, so i can be wrong)
Author
Owner

@HassanHeydariNasab commented on GitHub (Sep 26, 2024):

It tries to reconnect after waking up from suspension but doesn't connect until the user clicks on the reconnect button to disconnect, and then clicks again to connect.

<!-- gh-comment-id:2376450703 --> @HassanHeydariNasab commented on GitHub (Sep 26, 2024): It tries to reconnect after waking up from suspension but doesn't connect until the user clicks on the reconnect button to disconnect, and then clicks again to connect.
Author
Owner

@qumuq-til commented on GitHub (Oct 6, 2024):

The client must detect sleep/wake events and network interface disconnect/reconnect events. Right now it knows nothing about those and the connection always has to be re-initiated manually.

<!-- gh-comment-id:2395597098 --> @qumuq-til commented on GitHub (Oct 6, 2024): The client must detect sleep/wake events and network interface disconnect/reconnect events. Right now it knows nothing about those and the connection always has to be re-initiated manually.
Author
Owner

@voedev commented on GitHub (Nov 11, 2024):

I'll post here, too. I have the same problem. Fedora 40. Amnezia Version 4.8.2.3

<!-- gh-comment-id:2468554255 --> @voedev commented on GitHub (Nov 11, 2024): I'll post here, too. I have the same problem. Fedora 40. Amnezia Version 4.8.2.3
Author
Owner

@ipg0 commented on GitHub (Nov 28, 2024):

+1 on Arch. Also, when disconnecting to reconnect manually after sleep, CPU usage rapidly spikes for a couple seconds, looks to me like a memory leak/infinite loop.

<!-- gh-comment-id:2505488175 --> @ipg0 commented on GitHub (Nov 28, 2024): +1 on Arch. Also, when disconnecting to reconnect manually after sleep, CPU usage rapidly spikes for a couple seconds, looks to me like a memory leak/infinite loop.
Author
Owner

@voedev commented on GitHub (Nov 28, 2024):

@outspace

<!-- gh-comment-id:2505494427 --> @voedev commented on GitHub (Nov 28, 2024): @outspace
Author
Owner

@sund3RRR commented on GitHub (Mar 17, 2025):

+1 on NixOS

<!-- gh-comment-id:2728551957 --> @sund3RRR commented on GitHub (Mar 17, 2025): +1 on NixOS
Author
Owner

@qumuq-til commented on GitHub (Mar 17, 2025):

I have described a workaround here:
https://github.com/amnezia-vpn/amnezia-client/issues/1268#issuecomment-2700796935

<!-- gh-comment-id:2728740706 --> @qumuq-til commented on GitHub (Mar 17, 2025): I have described a workaround here: https://github.com/amnezia-vpn/amnezia-client/issues/1268#issuecomment-2700796935
Author
Owner

@sund3RRR commented on GitHub (Mar 17, 2025):

I think the right solution would be to add a new command to the amnezia daemon, such as AmneziaVPN-service disconnect, and create a systemd service that will run in sleep.target.
But this requires attention from devs.

<!-- gh-comment-id:2729020202 --> @sund3RRR commented on GitHub (Mar 17, 2025): I think the right solution would be to add a new command to the amnezia daemon, such as `AmneziaVPN-service disconnect`, and create a systemd service that will run in `sleep.target`. But this requires attention from devs.
Author
Owner

@stan2099 commented on GitHub (Oct 23, 2025):

Windows 11, Amnezia 4.8.10.0

Same issue

<!-- gh-comment-id:3438394546 --> @stan2099 commented on GitHub (Oct 23, 2025): Windows 11, Amnezia 4.8.10.0 Same issue
Author
Owner

@Kiraprint commented on GitHub (Nov 21, 2025):

Cachy OS (Arch) +1, still actual

<!-- gh-comment-id:3564791906 --> @Kiraprint commented on GitHub (Nov 21, 2025): Cachy OS (Arch) +1, still actual
Author
Owner

@h4tr3d commented on GitHub (Dec 28, 2025):

Issue still present with 4.8.11.4, Manjaro Linux, kernel 6.17.13

My suggestion add a way tell Amnezia via CLI stop/start. Sleep or resume hook can call this command. At least, it is solution for me.

<!-- gh-comment-id:3694364048 --> @h4tr3d commented on GitHub (Dec 28, 2025): Issue still present with 4.8.11.4, Manjaro Linux, kernel 6.17.13 My suggestion add a way tell Amnezia via CLI stop/start. Sleep or resume hook can call this command. At least, it is solution for me.
Author
Owner

@voedev commented on GitHub (Dec 28, 2025):

Issue still present with 4.8.11.4, Fedora Linux 43, kernel 6.17.13

Why close an issue if the problem has not yet been resolved?

<!-- gh-comment-id:3694512436 --> @voedev commented on GitHub (Dec 28, 2025): Issue still present with 4.8.11.4, Fedora Linux 43, kernel 6.17.13 Why close an issue if the problem has not yet been resolved?
Author
Owner

@Artikool5 commented on GitHub (Dec 28, 2025):

Hi, I'm not a dev, but if you check project's commits - they did not include this PR in new release yet.

<!-- gh-comment-id:3694629990 --> @Artikool5 commented on GitHub (Dec 28, 2025): Hi, I'm not a dev, but if you check project's commits - they did not include this PR in new release yet.
Author
Owner

@Jumper1221 commented on GitHub (Jan 25, 2026):

Same issue. Ubuntu 24.04.3. I installed newest version of program - 4.8.11.4

<!-- gh-comment-id:3797053453 --> @Jumper1221 commented on GitHub (Jan 25, 2026): Same issue. Ubuntu 24.04.3. I installed newest version of program - 4.8.11.4
Author
Owner

@h4tr3d commented on GitHub (Mar 2, 2026):

Issue still present in 4.8.12.9. Manjaro Linux. No any workable links after resume from sleep/hibernate.

<!-- gh-comment-id:3981553305 --> @h4tr3d commented on GitHub (Mar 2, 2026): Issue still present in 4.8.12.9. Manjaro Linux. No any workable links after resume from sleep/hibernate.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#321
No description provided.