Forrest logo
back to context overview

wg

List of commands for wg:

  • wg:tldr:0b702 wg: Generate a new private key.
    $ wg genkey
    try on your machine
    explain this command
  • wg:tldr:798ba wg: Show the current configuration of a wireguard interface.
    $ wg showconf ${wg0}
    try on your machine
    explain this command
  • wg:tldr:a9b38 wg: Generate a public key from a private key.
    $ wg pubkey < ${path-to-private_key} > ${path-to-public_key}
    try on your machine
    explain this command
  • wg:tldr:aba62 wg: Generate a public and private key.
    $ wg genkey | tee ${path-to-private_key} | wg pubkey > ${path-to-public_key}
    try on your machine
    explain this command
  • wg:tldr:d876b wg: Check status of currently active interfaces.
    $ wg
    try on your machine
    explain this command
back to context overview