Wireguard drops 2-3 times a day

The problem you describe

is rather vague.
What does it mean "you lose wifi"

  1. Are you disconnected from wifi?
  2. Are you connected but not getting an IP?
  3. Are you connected, getting an IP, but cannot ping the gateway?
  4. Are you connected, getting an IP, pinging the gateway but cannot ping an internet address?

number one would be the problem, disconnected from wifi, and I need to remove wireguard, restart my network. maybe I could just restart network too..

These are two unrelated things. Restarting network restarts wifi too, which solves your problem, but is an overkill.

2 Likes

maybe overkill but I was not sure what to do exactly, the best would be to know what is the problem exactly :wink:

Sounds like the wifi stops working.
wifi stop; sleep 5; wifi up should restore the connectivity,
You can look in logs why it may happen. logread

that command is just when the wifi drops, same as restart network but it is faster :wink:
thanks

1 Like

Are you sure??

This sure looks like a dhcp release after a failed renewal attempt (maybe the dhcp server didn’t respond at the 50%, 85%, and the 100% lease times).

Very sure.

This looks like a dhcp release initiated by the client due to the network restart.

1 Like

Ah... fair enough. carry on :slight_smile:

2 Likes