wireguard_setup
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wireguard_setup [2020/07/16 08:22] – created neoon | wireguard_setup [2021/11/25 22:42] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
For Debian 10, you need to add the backports repo | For Debian 10, you need to add the backports repo | ||
+ | apt install linux-headers-$(uname -r) | ||
sh -c "echo 'deb http:// | sh -c "echo 'deb http:// | ||
apt-get update | apt-get update | ||
Line 11: | Line 12: | ||
apt-get install wireguard wireguard-dkms | apt-get install wireguard wireguard-dkms | ||
| | ||
- | Server 1 & Server 2 | + | Server 1 & Server 2 (Client) |
cd / | cd / | ||
umask 077; wg genkey | tee privatekey | wg pubkey > publickey | umask 077; wg genkey | tee privatekey | wg pubkey > publickey | ||
Line 27: | Line 28: | ||
AllowedIPs = 10.0.0.2/32 | AllowedIPs = 10.0.0.2/32 | ||
| | ||
- | Server 2 | + | Server 2 (Client) |
/ | / | ||
Line 39: | Line 40: | ||
PersistentKeepalive = 20 | PersistentKeepalive = 20 | ||
| | ||
- | Server 1 & Server 2 | + | Server 1 & Server 2 (Client) |
systemctl enable wg-quick@wg0 | systemctl enable wg-quick@wg0 | ||
systemctl start wg-quick@wg0 | systemctl start wg-quick@wg0 |
wireguard_setup.1594887743.txt.gz · Last modified: 2021/11/25 22:42 (external edit)