mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 23:02:07 +02:00
20 lines
390 B
Markdown
20 lines
390 B
Markdown
# wg
|
|
|
|
> Manage the configuration of WireGuard interfaces.
|
|
> More information: <https://www.wireguard.com/quickstart/>.
|
|
|
|
- Check status of currently active interfaces:
|
|
|
|
`sudo wg`
|
|
|
|
- Print a new private key:
|
|
|
|
`wg genkey`
|
|
|
|
- Print a new public key:
|
|
|
|
`echo {{private_key}} | wg pubkey`
|
|
|
|
- Generate a public and private key:
|
|
|
|
`wg genkey | tee {{privatekey.txt}} | wg pubkey > {{publickey.txt}}`
|