User Tools

Site Tools


wireguard_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wireguard_setup [2020/07/16 09:22] – created neoonwireguard_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://deb.debian.org/debian buster-backports main contrib non-free' > /etc/apt/sources.list.d/buster-backports.list"   sh -c "echo 'deb http://deb.debian.org/debian buster-backports main contrib non-free' > /etc/apt/sources.list.d/buster-backports.list"
   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 /etc/wireguard   cd /etc/wireguard
   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)
 /etc/wireguard/wg0.conf /etc/wireguard/wg0.conf
  
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)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki