linux:softether_vpn:wireguard

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:softether_vpn:wireguard [2022/06/22 14:02] – [クライアント公開鍵をサーバーから削除] ともやんlinux:softether_vpn:wireguard [2023/03/14 06:17] (現在) – [NDSS 2017: WireGuard: Next Generation Kernel Network Tunnel] ともやん
行 1: 行 1:
-====== WireGuard ======+====== WireGuard - SoftEther VPN ======
 {{:linux:logo_of_wireguard.svg?400|WireGuard Logo}}\\ {{:linux:logo_of_wireguard.svg?400|WireGuard Logo}}\\
 <WRAP minfont>[[https://commons.wikimedia.org/wiki/File:Logo_of_WireGuard.svg|File:Logo of WireGuard.svg - Wikimedia Commons]]</WRAP>\\ <WRAP minfont>[[https://commons.wikimedia.org/wiki/File:Logo_of_WireGuard.svg|File:Logo of WireGuard.svg - Wikimedia Commons]]</WRAP>\\
行 24: 行 24:
 [[git>SoftEtherVPN/SoftEtherVPN/pull/1200|Implement support for WireGuard by davidebeatrici · Pull Request #1200 · SoftEtherVPN/SoftEtherVPN]]\\ [[git>SoftEtherVPN/SoftEtherVPN/pull/1200|Implement support for WireGuard by davidebeatrici · Pull Request #1200 · SoftEtherVPN/SoftEtherVPN]]\\
  
-==== WireGuard コマンドのインストール ====+==== WireGuard Tools のインストール ==== 
 +WireGuard Tools には **wg**、**wg-quick** が含まれていますが、公開鍵/秘密鍵を作成する場合は **wg** コマンドがクライアント、サーバーの何れかにインストールされていれば作業できる🤔\\ 
 +作業するマシンにインストールされていれば問題ないので、両方にインストールしておいても良い🤤\\
  
-=== サーバー上で WireGuard コマンドを使う ===+=== サーバー上 (Linux) で WireGuard コマンドを使う ===
 **wireguard-tools** をインストールする😉\\ **wireguard-tools** をインストールする😉\\
 <WRAP color_term> <WRAP color_term>
行 94: 行 96:
 **nonportable バケットの追加**\\ **nonportable バケットの追加**\\
 <WRAP color_term> <WRAP color_term>
-<WRAP color_command><code powershell+<WRAP color_command><html><pre
-$ scoop bucket add nonportable +<b class=GRN>$</b> <b class=HIY>scoop</b> bucket add nonportable 
-</code></WRAP>+</pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 Checking repo... ok Checking repo... ok
行 105: 行 107:
 **wireguard-np のインストール**\\ **wireguard-np のインストール**\\
 <WRAP color_term> <WRAP color_term>
-<WRAP color_command><code powershell+<WRAP color_command><html><pre
-$ sudo scoop install wireguard-np +<b class=GRN>$</b> <b class=HIY>sudo</b> scoop install wireguard-np 
-</code></WRAP>+</pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 Installing 'wireguard-np' (0.5.3) [64bit] Installing 'wireguard-np' (0.5.3) [64bit]
行 121: 行 123:
 ※ 再起動なしで最新 Path を PowerShell の $env:Path に反映させる。\\ ※ 再起動なしで最新 Path を PowerShell の $env:Path に反映させる。\\
 <WRAP color_term> <WRAP color_term>
-<WRAP color_command><code+<WRAP color_command><html><pre
-$ $env:Path = [Environment]::SetEnvironmentVariable("Path", $env:Path + ";" + $env:ProgramW6432 + "\WireGuard", "User"+<b class=GRN>$</b> $env:Path = [Environment]::SetEnvironmentVariable("Path", $env:Path + ";" + $env:ProgramW6432 + "\WireGuard", "User"
-</code></WRAP>+</pre></html></WRAP>
 または または
-<WRAP color_command><code+<WRAP color_command><html><pre
-$ $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User"+<b class=GRN>$</b> $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User"
-</code></WRAP>+</pre></html></WRAP>
 </WRAP> </WRAP>
  
 wg コマンドの動作確認。\\ wg コマンドの動作確認。\\
 <WRAP color_term> <WRAP color_term>
-<WRAP color_command><code+<WRAP color_command><html><pre
-$ wg --help +<b class=GRN>$</b> <b class=HIY>wg</b> <b class=HIK>--help</b> 
-</code></WRAP> +</pre></html></WRAP> 
-<WRAP color_result><code+<WRAP color_result><html><pre
-Usage: C:\Program Files\WireGuard\wg.exe <cmd[<args>]+Usage: C:\Program Files\WireGuard\wg.exe &lt;cmd&gt; [&lt;args&gt;]
  
 Available subcommands: Available subcommands:
行 149: 行 151:
   pubkey: Reads a private key from stdin and writes a public key to stdout   pubkey: Reads a private key from stdin and writes a public key to stdout
 You may pass `--help' to any of these subcommands to view usage. You may pass `--help' to any of these subcommands to view usage.
-</code></WRAP>+</pre></html></WRAP>
 </WRAP> </WRAP>
  
行 701: 行 703:
     bool Enabled true     bool Enabled true
     string PresharedKey LejepJw9wyHqewP6UYIFJLeR+TMgvMKbMQ/THZ3i0gg=     string PresharedKey LejepJw9wyHqewP6UYIFJLeR+TMgvMKbMQ/THZ3i0gg=
-    string PrivateKey YK7GR6jznS7nVtOaEldrr6iAMjrREKzWOn6NBcprHmc=+    string <b class=RED>PrivateKey</b> <b class=DiYE>YK7GR6jznS7nVtOaEldrr6iAMjrREKzWOn6NBcprHmc=</b>
    }    }
   }   }
行 709: 行 711:
 公開鍵は秘密鍵(PrivateKey)から **wg pubkey** コマンドで生成する。\\ 公開鍵は秘密鍵(PrivateKey)から **wg pubkey** コマンドで生成する。\\
 <WRAP color_term> <WRAP color_term>
-<WRAP color_command><code+<WRAP color_command><html><pre
-$ echo YK7GR6jznS7nVtOaEldrr6iAMjrREKzWOn6NBcprHmc= | wg pubkey +$ echo <b class=DiYE>YK7GR6jznS7nVtOaEldrr6iAMjrREKzWOn6NBcprHmc=</b> | wg pubkey 
-</code></WRAP>+</pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
 BwXr25M3RARwvEWkFkzyHwd4hmhJ4qv7+w+YUrLV0XU= BwXr25M3RARwvEWkFkzyHwd4hmhJ4qv7+w+YUrLV0XU=
行 803: 行 805:
 </WRAP> </WRAP>
  
 +
 +===== WireGuard の技術資料 =====
 +
 +==== NDSS 2017: WireGuard: Next Generation Kernel Network Tunnel ====
 +[[https://www.ndss-symposium.org/ndss2017/ndss-2017-programme/wireguard-next-generation-kernel-network-tunnel/|WireGuard: Next Generation Kernel Network Tunnel – NDSS Symposium]]\\
 +訳: WireGuard:次世代カーネルネットワークトンネル - NDSSシンポジウム\\
 +
 +**Slide**\\
 +[[https://www.ndss-symposium.org/wp-content/uploads/2017/09/ndss2017-04a_3-donenfeld_slides.pdf|WireGuard - Fast, Modern, Secure VPN Tunnel - NDSS 2017 Presentation]](PDF)\\
 +
 +**Video**\\
 +<WRAP youtube><html>
 +  <iframe width="560" height="315" src="https://www.youtube.com/embed/hSKp4FBok_Q" frameborder="0" 
 +    allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html></WRAP>\\
  
 ===== 参考文献 ===== ===== 参考文献 =====
行 809: 行 826:
 [[https://tech-mmmm.blogspot.com/2021/11/wireguardvpn.html|WireGuardを使って自宅にVPN接続する方法]]\\ [[https://tech-mmmm.blogspot.com/2021/11/wireguardvpn.html|WireGuardを使って自宅にVPN接続する方法]]\\
 [[so>questions/17794507/powershell-reload-the-path-in-powershell|console - Powershell: Reload the path in PowerShell - Stack Overflow]]\\ [[so>questions/17794507/powershell-reload-the-path-in-powershell|console - Powershell: Reload the path in PowerShell - Stack Overflow]]\\
 +[[https://zenn.dev/hiroe_orz17/articles/f8f35075dea4cf|WireGuard概要まとめ]]\\
  
  • linux/softether_vpn/wireguard.1655874130.txt.gz
  • 最終更新: 2022/06/22 14:02
  • by ともやん