WireGuard: Difference between revisions
m →Generate a public/private key pair: Changed created to generated |
Added attribution |
||
| (One intermediate revision by the same user not shown) | |||
| Line 51: | Line 51: | ||
=== Generate a public/private key pair === | === Generate a public/private key pair === | ||
* | * Generate a private and public key for the server. You can use the following command: | ||
wg genkey | tee server-privatekey | wg pubkey > server-publickey | wg genkey | tee server-privatekey | wg pubkey > server-publickey | ||
**<code>server-privatekey</code> and <code>server-publickey</code> are filenames and can be anything you want and can be changed accordingly. These files are not directly used by WireGuard. | **<code>server-privatekey</code> and <code>server-publickey</code> are filenames and can be anything you want and can be changed accordingly. These files are not directly used by WireGuard. | ||
| Line 189: | Line 190: | ||
* Add another <code>[Peer]</code> section to the server configuration. | * Add another <code>[Peer]</code> section to the server configuration. | ||
* Reload the WireGuard server. | * Reload the WireGuard server. | ||
== See also == | |||
Thank you to "Mark Liversedge" at [https://markliversedge.blogspot.com/2023/09/wireguard-setup-for-dummies.html Wireguard setup for dummeies] with his comprehensive guide that made this possible for me | |||