linux:softether_vpn:wireguard

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:softether_vpn:wireguard [2022/10/03 02:42] – [サーバー上で WireGuard コマンドを使う] ともやん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>\\
行 96: 行 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
行 107: 行 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]
行 123: 行 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:
行 151: 行 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>
  
行 703: 行 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>
    }    }
   }   }
行 711: 行 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=
行 817: 行 817:
 **Video**\\ **Video**\\
 <WRAP youtube><html> <WRAP youtube><html>
-    <iframe width="560" height="315" src="https://www.youtube.com/embed/hSKp4FBok_Q" frameborder="0" +  <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>     allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
-</html></WRAP>+</html></WRAP>\\
  
 ===== 参考文献 ===== ===== 参考文献 =====
  • linux/softether_vpn/wireguard.1664732567.txt.gz
  • 最終更新: 2022/10/03 02:42
  • by ともやん