Answer the question
In order to leave comments, you need to log in
Why can the server's connection to the wireguard server be disconnected?
Hello.
There is a WG server to which my phone connects. This server is connected to the Internet.
There is also a second server which is a Wireguard client. When I set up a connection, access to the server at the static address disappears, and only the local vpn address remains. Everything is fine, as it should be.
But the problem is that after a couple of hours, access to the server disappears under vpn and does not open at a static address. What could be the reason? Tried with different VPS providers, everyone has the same problem.
Any ideas where to dig?
Answer the question
In order to leave comments, you need to log in
Figured it out on my own. If someone encounters such a problem, then you need to set the PersistentKeepalive = 25 parameter for peer in the vpn server settings. This will allow the connection to remain active.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question