angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.52k stars 1.26k forks source link

How to use the output configuration file of the script? #385

Closed pyzenberg closed 1 year ago

pyzenberg commented 1 year ago

The more I read the WireGuard documents in these 2 hours, the less I understand how to configure the client in my Ubuntu desktop to connect into the configured server! Please help. Preferably terminal commands.

pyzenberg commented 1 year ago

I think I found the problem. The script asked me for client name and I entered something like my-client and it saved into wg0-my-client.conf. When I put it inside /etc/wireguard/ and fired wg-quick up wg0-my-client it couldn't find it because wg-quick can't locate config files with dash within their names. So I renamed it to wg0.conf.