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
Next revisionBoth sides next revision
wireguard_setup [2020/07/16 09:22] – created neoonwireguard_setup [2020/07/16 09:22] neoon
Line 11: Line 11:
   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 27:
   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 39:
   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.txt · Last modified: 2021/11/25 22:42 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki