Wireguard: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 21: Zeile 21:
 
*[[Wireguard Temporary Configuration]]
 
*[[Wireguard Temporary Configuration]]
 
*[[Wireguard Static Configuration]]
 
*[[Wireguard Static Configuration]]
 
=Test=
 
;schnubbel
 
*wg
 
<pre>
 
interface: wg0
 
  public key: C1YoH/VxFLS5PjkhAxi13lG/Uq6jDwxSB5xMVHzm6ys=
 
  private key: (hidden)
 
  listening port: 50002
 
 
peer: ULq8e5vYRa2s4phsRBkzOvRC8g819xM0/44rII6wqTg=
 
  preshared key: (hidden)
 
  endpoint: 10.84.252.33:50002
 
  allowed ips: 10.83.33.0/24
 
  latest handshake: 1 minute, 9 seconds ago
 
  transfer: 220 B received, 308 B sent
 
</pre>
 
  
 
=Links=
 
=Links=
 
*https://www.thomas-krenn.com/de/wiki/Ubuntu_18.04_als_WireGuard_VPN_Client_konfigurieren
 
*https://www.thomas-krenn.com/de/wiki/Ubuntu_18.04_als_WireGuard_VPN_Client_konfigurieren
 
*https://wiki.ubuntuusers.de/WireGuard/
 
*https://wiki.ubuntuusers.de/WireGuard/

Version vom 18. Dezember 2019, 14:02 Uhr

Two Nodes

schnubel
gustavo

Installation

  • sudo add-apt-repository ppa:wireguard/wireguard
  • sudo apt install wireguard

Create Keys

schnubbel
  • cd /etc/wireguard
  • wg genkey > private.key
  • wg pubkey > public-schnubbel.key < private.key
  • wg genpsk > psk.key
  • scp psk.key public-schnubbel.key gustavo:$PWD/
gustavo
  • cd /etc/wireguard
  • wg genkey > private.key
  • wg pubkey > public-gustavo.key < private.key
  • scp public-gustavo.key schnubbel:$PWD/

Configuration

Links