diff --git a/pages.fr/linux/wg.md b/pages.fr/linux/wg.md new file mode 100644 index 0000000000..bc04ee62c2 --- /dev/null +++ b/pages.fr/linux/wg.md @@ -0,0 +1,20 @@ +# wg + +> Gestion de la configuration des interfaces WireGuard. +> Plus d'informations: . + +- Check status of currently active interfaces: + +`wg` + +- Générer une clé privée : + +`wg genkey` + +- Générer une clé publique à partir d'une clé privée : + +`wg pubkey < {{chemin/vers/clé_privée}} > {{chemin/vers/clé_publique}}` + +- Générer une clé publique et privée : + +`wg genkey | tee {{chemin/vers/clé_privée}} | wg pubkey > {{chemin/vers/clé_publique}}` diff --git a/pages/linux/wg.md b/pages/linux/wg.md index b8677d3d4d..2b2ca27d75 100644 --- a/pages/linux/wg.md +++ b/pages/linux/wg.md @@ -5,16 +5,16 @@ - Check status of currently active interfaces: -`sudo wg` +`wg` -- Print a new private key: +- Generate a new private key: `wg genkey` -- Print a new public key: +- Generate a public key from a private key: -`echo {{private_key}} | wg pubkey` +`wg pubkey < {{path/to/private_key}} > {{path/to/public_key}}` - Generate a public and private key: -`wg genkey | tee {{privatekey.txt}} | wg pubkey > {{publickey.txt}}` +`wg genkey | tee {{path/to/private_key}} | wg pubkey > {{path/to/public_key}}`