差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:softether_vpn:wireguard [2022/06/22 16:29] – [WireGuard Tools のインストール] ともやん | linux:softether_vpn:wireguard [2023/03/14 06:17] (現在) – [NDSS 2017: WireGuard: Next Generation Kernel Network Tunnel] ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== WireGuard ====== | + | ====== WireGuard | 
| {{: | {{: | ||
| <WRAP minfont> | <WRAP minfont> | ||
| 行 28: | 行 28: | ||
| 作業するマシンにインストールされていれば問題ないので、両方にインストールしておいても良い🤤\\ | 作業するマシンにインストールされていれば問題ないので、両方にインストールしておいても良い🤤\\ | ||
| - | === サーバー上で WireGuard コマンドを使う === | + | === サーバー上 | 
| **wireguard-tools** をインストールする😉\\ | **wireguard-tools** をインストールする😉\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| 行 96: | 行 96: | ||
| **nonportable バケットの追加**\\ | **nonportable バケットの追加**\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| - | <WRAP color_command>< | + | <WRAP color_command>< | 
| - | $ scoop bucket add nonportable | + | <b class=GRN> | 
| - | </code></ | + | </pre></ | 
| <WRAP color_result>< | <WRAP color_result>< | ||
| Checking repo... ok | Checking repo... ok | ||
| 行 107: | 行 107: | ||
| **wireguard-np のインストール**\\ | **wireguard-np のインストール**\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| - | <WRAP color_command>< | + | <WRAP color_command>< | 
| - | $ sudo scoop install wireguard-np | + | <b class=GRN> | 
| - | </code></ | + | </pre></ | 
| <WRAP color_result>< | <WRAP color_result>< | ||
| Installing ' | Installing ' | ||
| 行 123: | 行 123: | ||
| ※ 再起動なしで最新 Path を PowerShell の $env:Path に反映させる。\\ | ※ 再起動なしで最新 Path を PowerShell の $env:Path に反映させる。\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| - | <WRAP color_command>< | + | <WRAP color_command>< | 
| - | $ $env:Path = [Environment]:: | + | <b class=GRN> | 
| - | </code></ | + | </pre></ | 
| または | または | ||
| - | <WRAP color_command>< | + | <WRAP color_command>< | 
| - | $ $env:Path = [System.Environment]:: | + | <b class=GRN> | 
| - | </code></ | + | </pre></ | 
| </ | </ | ||
| wg コマンドの動作確認。\\ | wg コマンドの動作確認。\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| - | <WRAP color_command>< | + | <WRAP color_command>< | 
| - | $ wg --help | + | <b class=GRN> | 
| - | </code></ | + | </pre></ | 
| - | <WRAP color_result>< | + | <WRAP color_result>< | 
| - | Usage: C:\Program Files\WireGuard\wg.exe | + | Usage: C:\Program Files\WireGuard\wg.exe | 
| 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' | You may pass `--help' | ||
| - | </code></ | + | </pre></ | 
| </ | </ | ||
| 行 703: | 行 703: | ||
| bool Enabled true | bool Enabled true | ||
| string PresharedKey LejepJw9wyHqewP6UYIFJLeR+TMgvMKbMQ/ | string PresharedKey LejepJw9wyHqewP6UYIFJLeR+TMgvMKbMQ/ | ||
| - | string PrivateKey YK7GR6jznS7nVtOaEldrr6iAMjrREKzWOn6NBcprHmc= | + | string | 
| } | } | ||
| } | } | ||
| 行 711: | 行 711: | ||
| 公開鍵は秘密鍵(PrivateKey)から **wg pubkey** コマンドで生成する。\\ | 公開鍵は秘密鍵(PrivateKey)から **wg pubkey** コマンドで生成する。\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| - | <WRAP color_command>< | + | <WRAP color_command>< | 
| - | $ echo YK7GR6jznS7nVtOaEldrr6iAMjrREKzWOn6NBcprHmc= | wg pubkey | + | $ echo <b class=DiYE> | 
| - | </code></ | + | </pre></ | 
| <WRAP color_result>< | <WRAP color_result>< | ||
| BwXr25M3RARwvEWkFkzyHwd4hmhJ4qv7+w+YUrLV0XU= | BwXr25M3RARwvEWkFkzyHwd4hmhJ4qv7+w+YUrLV0XU= | ||
| 行 805: | 行 805: | ||
| </ | </ | ||
| + | |||
| + | ===== WireGuard の技術資料 ===== | ||
| + | |||
| + | ==== NDSS 2017: WireGuard: Next Generation Kernel Network Tunnel ==== | ||
| + | [[https:// | ||
| + | 訳: WireGuard:次世代カーネルネットワークトンネル - NDSSシンポジウム\\ | ||
| + | |||
| + | **Slide**\\ | ||
| + | [[https:// | ||
| + | |||
| + | **Video**\\ | ||
| + | <WRAP youtube>< | ||
| + | <iframe width=" | ||
| + | allow=" | ||
| + | </ | ||
| ===== 参考文献 ===== | ===== 参考文献 ===== | ||
| 行 811: | 行 826: | ||
| [[https:// | [[https:// | ||
| [[so> | [[so> | ||
| + | [[https:// | ||
