mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 21:35:42 +02:00
wg: add example to show current configuration of an interface (#7594)
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
parent
8a70c9b0d5
commit
722304b216
2 changed files with 9 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
> Gestion de la configuration des interfaces WireGuard.
|
> Gestion de la configuration des interfaces WireGuard.
|
||||||
> Plus d'informations: <https://www.wireguard.com/quickstart/>.
|
> Plus d'informations: <https://www.wireguard.com/quickstart/>.
|
||||||
|
|
||||||
- Check status of currently active interfaces:
|
- Vérifier l'état des interfaces actuellement actives :
|
||||||
|
|
||||||
`wg`
|
`wg`
|
||||||
|
|
||||||
|
@ -18,3 +18,7 @@
|
||||||
- Générer une clé publique et privée :
|
- Générer une clé publique et privée :
|
||||||
|
|
||||||
`wg genkey | tee {{chemin/vers/clé_privée}} | wg pubkey > {{chemin/vers/clé_publique}}`
|
`wg genkey | tee {{chemin/vers/clé_privée}} | wg pubkey > {{chemin/vers/clé_publique}}`
|
||||||
|
|
||||||
|
- Afficher la configuration actuelle d'une interface wireguard :
|
||||||
|
|
||||||
|
`wg showconf {{wg0}}`
|
||||||
|
|
|
@ -18,3 +18,7 @@
|
||||||
- Generate a public and private key:
|
- Generate a public and private key:
|
||||||
|
|
||||||
`wg genkey | tee {{path/to/private_key}} | wg pubkey > {{path/to/public_key}}`
|
`wg genkey | tee {{path/to/private_key}} | wg pubkey > {{path/to/public_key}}`
|
||||||
|
|
||||||
|
- Show the current configuration of a wireguard interface:
|
||||||
|
|
||||||
|
`wg showconf {{wg0}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue