跳轉到

Commands

Frequent Commands

Generate new private key

$ wg genkey

Generate new public key

$ wg pubkey

then paste the private key and input Ctrl+D

Manage wireguard daemon

via systemd.

# use config /etc/wireguard/wg0.conf
$ sudo systemctl enable --now [email protected]
$ sudo systemctl disable --now [email protected]
$ sudo systemctl restart [email protected]

Check running status

$ wg

最後更新: 2023-01-27 23:09:25
建立日期: 2023-01-27 23:09:25