I'm setting up a wireguard server on Ubuntu and I encountered the error:
Client_loop: send disconnect: Broken pipe Error when I enter the command systemctl start wg-quick@wg0.service.
After entering systemctl start wg-quick@wg0.service my server just crashes. I can't access it. I have to reinstall the server and make the settings again.
I'm already tired of it because it takes a lot of time. From what I did:
sshd_config found the ClientAliveInterval item, changed it to 60, and set countMax to 10000; in the ssh.conf settings I changed ServerAliveInterval + CountMax;
In the ufw settings I enabled support for port 51820/udp + shh, but none of this helped.
I ask knowledgeable people to help, I’ve never set up servers before, and then there’s wireguard, maybe I’m doing something wrong. Thanks to all!