Commands
Frequent Commands¶
Generate new private key¶
Generate new public key¶
then paste the private key and input Ctrl+D
Manage wireguard daemon¶
via systemd.
# use config /etc/wireguard/wg0.conf
$ sudo systemctl enable --now wg-quick@wg0
$ sudo systemctl disable --now wg-quick@wg0
$ sudo systemctl restart wg-quick@wg0