Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:wireguard [2024/09/13 12:17] – [Host 1] darrontools:wireguard [2024/09/13 13:03] (current) darron
Line 1: Line 1:
 ====WireGuard==== ====WireGuard====
  
-Work-in-progress+Easy to setup VPN
 ===Install=== ===Install===
 +
 +== Linux==
  
 This install may replace the kernel, if so, reboot afterward. This install may replace the kernel, if so, reboot afterward.
Line 11: Line 13:
 apt install wireguard apt install wireguard
 </code> </code>
 +
  
  
 ===Setup=== ===Setup===
  
-[[https://www.wireguard.com/quickstart/|Guide]].+==Configure VPN==
  
-===Log=== +__Host 1 and Host 2__
- +
-==Host 1 and Host 2==+
 <code> <code>
 ip link add dev wg0 type wireguard ip link add dev wg0 type wireguard
 </code> </code>
  
-==Host 1==+__Host 1__
  
 <code> <code>
Line 30: Line 31:
 </code> </code>
  
-==Host 2==+__Host 2__
  
 <code> <code>
Line 36: Line 37:
 </code> </code>
  
-==Host 1 and Host 2==+__Host 1 and Host 2__
  
 <code> <code>
Line 61: Line 62:
 Endpoint x.x.x.x:1234 Endpoint x.x.x.x:1234
 </code> </code>
 +
 +==Create VPN==
 +
 +__Host 1 and Host 2__
  
 <code> <code>
Line 67: Line 72:
 </code> </code>
  
- +__Host 1__
-==Host 1==+
  
 <code> <code>
Line 80: Line 84:
 </code> </code>
  
-==Host 2==+__Host 2__
  
 <code> <code>
Line 91: Line 95:
 rtt min/avg/max/mdev = 30.359/30.359/30.359/0.000 ms rtt min/avg/max/mdev = 30.359/30.359/30.359/0.000 ms
 </code> </code>
 +
 +==Destroy VPN==
 +
 +__Host 1 and Host 2__
 +
 +
 +<code>
 +ip link delete dev wg0
 +</code>
 +
 +===Resources===
 +
 +[[https://www.wireguard.com/quickstart/|Setup guide]].
 +
 +[[https://www.wireguard.com/install/|Install guide]]
 +