How does the connection in wireguard work? I have a working connection on my laptop in the Linux system (peer). Everything is fine.
Example 1: The laptop crashes (e.g. the screen does not work). After moving the disk to another laptop, the system starts but I cannot connect to the wireguard server until I remove this peer on the server and add it again.
Example 2: I have two systems installed next to each other on the laptop, Windows and Linux. I have a working vpn connection on Linux. When I shut down the system and start Windows, I cannot connect to the wireguard server until I remove this peer on the server and add it again. On Linux and Windows, the wireguard client configuration is the same, the same pubkey, privkey and IP (I want the same IP)
I used OpenVPN before and in similar cases everything worked. In the case of WG, I have to additionally perform the following on the server:
wg set wg0 peer public_key remove
wg set wg0 peer public_key allowed-ips IP
Czy jest na to rozwiązanie?
czarny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.