{"schema":"article/1","id":"art_3db49be497","owner":"u_owner","status":"published","visibility":"public","version":1,"title":"鍵の材料を先に交換し、守れる状態にしてから相手を確かめる","rawTitle":"鍵の材料を先に交換し、守れる状態にしてから相手を確かめる","slug":"nw-basics-12-ike","file":"ネットワーク_12_IKE","relPath":"content/published/ネットワーク_12_IKE.md","aliases":[],"kind":"published","area":"tech","topic":"ネットワーク","category":"ネットワーク","tags":["ネットワーク","ike","ipsec","vpn","concept"],"summary":"図 11 が使う取り決めを、まだ守られていない道でどうやって作るか。守る通信が来るまで打合せは始まらず、合意するまでデータ用の取り決めは 1 本も無い","date":"2026-09-14","updated":"2026-09-14","links":["nw-basics-index","nw-basics-00-three-layers","nw-basics-11-ipsec","nw-basics-09-acl","nw-basics-10-gre","nw-basics-13-ospf"],"blocks":[{"id":"blk_c0753f","type":"paragraph","markdown":"図 11 では、送信用の SA に書かれた方式と鍵で暗号化する、と書きました。","text":"図 11 では、送信用の SA に書かれた方式と鍵で暗号化する、と書きました。","line":2,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f83500","type":"paragraph","markdown":"その方式と鍵がどこから来るかには触れていません。\nまだ封のできていない道で、相手と方式を決め、鍵の材料をやり取りするしかありません。\nこの記事は、図 7 で挙げた 3 つの問題を直接解く図ではなく、図 11 が使う取り決めを作る段を扱います。","text":"その方式と鍵がどこから来るかには触れていません。\nまだ封のできていない道で、相手と方式を決め、鍵の材料をやり取りするしかありません。\nこの記事は、図 7 で挙げた 3 つの問題を直接解く図ではなく、図 11 が使う取り決めを作る段を扱います。","line":4,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_bb713c","type":"paragraph","markdown":"この連載は、ネットワークの言葉を 3 つの層に置いて読みます。\nもの（物理か論理か）、結びつき（人が設定で付ける手動か、機器が学習する自動か、製造時に決まる固定か）、通信フロー（1 本の通信がそれらを順に通る道筋）の 3 つです。","text":"この連載は、ネットワークの言葉を 3 つの層に置いて読みます。\nもの（物理か論理か）、結びつき（人が設定で付ける手動か、機器が学習する自動か、製造時に決まる固定か）、通信フロー（1 本の通信がそれらを順に通る道筋）の 3 つです。","line":8,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_34ba84","type":"heading","depth":2,"markdown":"## 登場するもの","text":"登場するもの","line":11,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e11bca","type":"heading","depth":4,"markdown":"#### 管理用の SA","text":"管理用の SA","line":13,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_f8322c","type":"paragraph","markdown":"論理のもので、自動でできます。\n打合せそのものを守るための取り決めです。\n相手 1 つにつき 1 つです。","text":"論理のもので、自動でできます。\n打合せそのものを守るための取り決めです。\n相手 1 つにつき 1 つです。","line":15,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_26ae48","type":"heading","depth":4,"markdown":"#### データ用の SA","text":"データ用の SA","line":19,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_3597ff","type":"paragraph","markdown":"論理のもので、自動でできます。\n図 11 で実際にデータを包むのに使う取り決めです。\n送信用と受信用の 2 本できます。","text":"論理のもので、自動でできます。\n図 11 で実際にデータを包むのに使う取り決めです。\n送信用と受信用の 2 本できます。","line":21,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_9e70a2","type":"heading","depth":4,"markdown":"#### 事前共有鍵","text":"事前共有鍵","line":25,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e60444","type":"paragraph","markdown":"論理のもので、人が書きます。\n相手の IP と対で登録する合言葉です。\n両側に同じ文字列を設定します。\n値は図にも記録にも書きません。","text":"論理のもので、人が書きます。\n相手の IP と対で登録する合言葉です。\n両側に同じ文字列を設定します。\n値は図にも記録にも書きません。","line":27,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_2b37a4","type":"heading","depth":4,"markdown":"#### 打合せの通信そのもの","text":"打合せの通信そのもの","line":32,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_ef9c01","type":"paragraph","markdown":"UDP のポート番号 500 を使います。\n間に NAT があるときは 4500 も使います。\n図 11 のデータのほうはポート番号を持ちません。","text":"UDP のポート番号 500 を使います。\n間に NAT があるときは 4500 も使います。\n図 11 のデータのほうはポート番号を持ちません。","line":34,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_118c7a","type":"heading","depth":2,"markdown":"## 結びつき","text":"結びつき","line":38,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5c0a69","type":"list","markdown":"- 事前共有鍵 ⇄ 相手の IP は手動です。両側で同じ文字列でないと、フェーズ 1 で止まります。\n- 方式の候補（暗号・ハッシュ・DH グループ）⇄ 相手は手動です。両側に共通のものが 1 つも無ければ、合意に至りません。\n- 守る通信の並び ⇄ 相手も手動です。ここが食い違うと、フェーズ 1 は上がるのにデータが通りません。\n- SA ⇄ 打合せの結果は自動です。人が SA を直接書くことはありません。","text":"事前共有鍵 ⇄ 相手の IP は手動です。両側で同じ文字列でないと、フェーズ 1 で止まります。方式の候補（暗号・ハッシュ・DH グループ）⇄ 相手は手動です。両側に共通のものが 1 つも無ければ、合意に至りません。守る通信の並び ⇄ 相手も手動です。ここが食い違うと、フェーズ 1 は上がるのにデータが通りません。SA ⇄ 打合せの結果は自動です。人が SA を直接書くことはありません。","line":40,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_df21fc","type":"heading","depth":2,"markdown":"## 通信フロー","text":"通信フロー","line":45,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_a065d2","type":"paragraph","markdown":"① 守る通信、つまり外向きの口に貼った並びに一致するパケットが、ルータ 1 に届きます。図 11 の ① と同じパケットです。","text":"① 守る通信、つまり外向きの口に貼った並びに一致するパケットが、ルータ 1 に届きます。図 11 の ① と同じパケットです。","line":47,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5cef00","type":"paragraph","markdown":"② ルータ 1 は「封をすべき通信なのに、使える取り決めが 1 本も無い」と気づきます。そこで ① は落とし、相手の外側 IP へ打合せを持ちかけます。初回の通信が失敗するのはこのためです。","text":"② ルータ 1 は「封をすべき通信なのに、使える取り決めが 1 本も無い」と気づきます。そこで ① は落とし、相手の外側 IP へ打合せを持ちかけます。初回の通信が失敗するのはこのためです。","line":49,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_a7e0cc","type":"paragraph","markdown":"③ フェーズ 1。まず使える方式の候補を出し合い、鍵の材料を交換します。その材料でできた鍵で中身を守れるようになってから、相手が本物かを確かめます。確かめ方は事前共有鍵です。合意すると、管理用の SA が 1 つできます。","text":"③ フェーズ 1。まず使える方式の候補を出し合い、鍵の材料を交換します。その材料でできた鍵で中身を守れるようになってから、相手が本物かを確かめます。確かめ方は事前共有鍵です。合意すると、管理用の SA が 1 つできます。","line":51,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_5871f9","type":"paragraph","markdown":"④ フェーズ 2。その守られた中で、守る通信の範囲とデータを守る方式を決めます。合意すると、データ用の SA が送信用・受信用の 2 本できます。","text":"④ フェーズ 2。その守られた中で、守る通信の範囲とデータを守る方式を決めます。合意すると、データ用の SA が送信用・受信用の 2 本できます。","line":53,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_b51c82","type":"paragraph","markdown":"⑤ ここでやっと ① のパケットが ESP で包まれて流れます（図 11 の ② から ⑤）。SA には寿命があり、切れる前に打合せをやり直します。","text":"⑤ ここでやっと ① のパケットが ESP で包まれて流れます（図 11 の ② から ⑤）。SA には寿命があり、切れる前に打合せをやり直します。","line":55,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_859041","type":"heading","depth":2,"markdown":"## 図 12","text":"図 12","line":57,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_4a3ad1","type":"paragraph","markdown":"図の上半分が構成図と 2 段階の打合せ・切り分け、下半分が設定と増えるもの・通信の中身の推移です。","text":"図の上半分が構成図と 2 段階の打合せ・切り分け、下半分が設定と増えるもの・通信の中身の推移です。","line":59,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_a819a1","type":"html","markdown":"<svg viewBox=\"0 0 900 2016\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"IKE：IPsec の封をする前の打合せ（フェーズ 1 とフェーズ 2）\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"2016\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">IKE：封をする前の打合せ。方式と鍵を、まだ守られていない道で決める</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">図 7 の 3 つの問題を直接解く図ではなく、図 11（問題 3 の解）が使う取り決めを作る段。フェーズ 1 で管理用の SA、その中でフェーズ 2 がデータ用の SA を 2 本作る</text>\n  <rect x=\"20\" y=\"80\" width=\"250\" height=\"250\" rx=\"10\" fill=\"none\" stroke=\"#9aa7b5\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"32\" y=\"100\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#6b7280\">支店（自分のもの）</text>\n  <rect x=\"290\" y=\"80\" width=\"320\" height=\"250\" rx=\"10\" fill=\"#fff7ed\" stroke=\"#d97706\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"302\" y=\"100\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#b45309\">インターネット（他人のもの）</text>\n  <rect x=\"630\" y=\"80\" width=\"250\" height=\"250\" rx=\"10\" fill=\"none\" stroke=\"#9aa7b5\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"642\" y=\"100\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#6b7280\">データセンター（自分のもの）</text>\n  <rect x=\"32\" y=\"206\" width=\"80\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"72.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-A</text>\n  <text x=\"72.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.10</text>\n  <text x=\"72.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">GW 192.168.10.1</text>\n  <line x1=\"112\" y1=\"234\" x2=\"150\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"150\" y=\"192\" width=\"110\" height=\"84\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"205.0\" y=\"212\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1</text>\n  <text x=\"205.0\" y=\"230\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi0 192.168.10.1</text>\n  <text x=\"205.0\" y=\"245\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 203.0.113.10</text>\n  <text x=\"205.0\" y=\"260\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（グローバル IP）</text>\n  <rect x=\"141\" y=\"225\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"150\" y=\"238\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0</text>\n  <rect x=\"251\" y=\"225\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"260\" y=\"238\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <line x1=\"269\" y1=\"234\" x2=\"330\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"330\" y=\"206\" width=\"70\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"365.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ISP-1</text>\n  <text x=\"365.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">他人の</text>\n  <text x=\"365.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">ルータ</text>\n  <line x1=\"400\" y1=\"234\" x2=\"415\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"415\" y=\"206\" width=\"70\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"450.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ISP-2</text>\n  <text x=\"450.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">他人の</text>\n  <text x=\"450.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">ルータ</text>\n  <line x1=\"485\" y1=\"234\" x2=\"500\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"500\" y=\"206\" width=\"70\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"535.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ISP-3</text>\n  <text x=\"535.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">他人の</text>\n  <text x=\"535.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">ルータ</text>\n  <line x1=\"570\" y1=\"234\" x2=\"640\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"640\" y=\"192\" width=\"110\" height=\"84\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"695.0\" y=\"212\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 2</text>\n  <text x=\"695.0\" y=\"230\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi0 198.51.100.20</text>\n  <text x=\"695.0\" y=\"245\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（グローバル IP）</text>\n  <text x=\"695.0\" y=\"260\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 192.168.3.1</text>\n  <rect x=\"631\" y=\"225\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"640\" y=\"238\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0</text>\n  <rect x=\"741\" y=\"225\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"750\" y=\"238\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <line x1=\"759\" y1=\"234\" x2=\"790\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"790\" y=\"206\" width=\"80\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"830.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-C</text>\n  <text x=\"830.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.3.10</text>\n  <text x=\"830.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">GW 192.168.3.1</text>\n  <rect x=\"150\" y=\"125\" width=\"110\" height=\"46\" rx=\"8\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"205.0\" y=\"145\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">crypto map</text>\n  <text x=\"205.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 に貼る（手動）</text>\n  <rect x=\"640\" y=\"125\" width=\"110\" height=\"46\" rx=\"8\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"695.0\" y=\"145\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">crypto map</text>\n  <text x=\"695.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi0 に貼る（手動）</text>\n  <line x1=\"205\" y1=\"192\" x2=\"205\" y2=\"171\" stroke=\"#d97706\" stroke-width=\"1.5\" stroke-dasharray=\"4 3\"/>\n  <line x1=\"695\" y1=\"192\" x2=\"695\" y2=\"171\" stroke=\"#d97706\" stroke-width=\"1.5\" stroke-dasharray=\"4 3\"/>\n  <text x=\"450\" y=\"118\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">打合せ（IKE）。まだ封のできていない道で、方式と鍵を決める</text>\n  <line x1=\"450\" y1=\"155\" x2=\"628\" y2=\"155\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"627,150 627,160 636,155\" fill=\"#0a7aff\"/>\n  <line x1=\"450\" y1=\"155\" x2=\"272\" y2=\"155\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"273,150 273,160 264,155\" fill=\"#0a7aff\"/>\n  <circle cx=\"390\" cy=\"155\" r=\"9\" fill=\"#0a7aff\"/><text x=\"390\" y=\"159\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">3</text>\n  <circle cx=\"510\" cy=\"155\" r=\"9\" fill=\"#0a7aff\"/><text x=\"510\" y=\"159\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">4</text>\n  <text x=\"450\" y=\"180\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">打合せもこの中を通る。だから「相手が本物か」を確かめる段が要る</text>\n  <text x=\"450\" y=\"194\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">合意ができるまで、データ用の取り決め（SA）は 1 本も無い</text>\n  <line x1=\"112\" y1=\"300\" x2=\"142\" y2=\"300\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"141,295 141,305 150,300\" fill=\"#0a7aff\"/>\n  <circle cx=\"131\" cy=\"300\" r=\"9\" fill=\"#0a7aff\"/><text x=\"131\" y=\"304\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">1</text>\n  <circle cx=\"205\" cy=\"300\" r=\"9\" fill=\"#0a7aff\"/><text x=\"205\" y=\"304\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <line x1=\"269\" y1=\"300\" x2=\"623\" y2=\"300\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"622,295 622,305 631,300\" fill=\"#0a7aff\"/>\n  <circle cx=\"450\" cy=\"300\" r=\"9\" fill=\"#0a7aff\"/><text x=\"450\" y=\"304\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">5</text>\n  <text x=\"205\" y=\"322\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">SA が無い</text>\n  <text x=\"450\" y=\"322\" text-anchor=\"middle\" font-size=\"10\" fill=\"#b45309\">合意できてから、初めてデータが ESP で流れる（図 11）</text>\n  <text x=\"20\" y=\"352\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">③④ の中身：打合せは 2 段階に分かれている</text>\n  <rect x=\"175\" y=\"382\" width=\"450\" height=\"96\" rx=\"6\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <rect x=\"175\" y=\"492\" width=\"450\" height=\"88\" rx=\"6\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <line x1=\"200\" y1=\"376\" x2=\"200\" y2=\"606\" stroke=\"#9aa7b5\" stroke-width=\"1.5\"/>\n  <line x1=\"600\" y1=\"376\" x2=\"600\" y2=\"606\" stroke=\"#9aa7b5\" stroke-width=\"1.5\"/>\n  <text x=\"200\" y=\"370\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1</text>\n  <text x=\"600\" y=\"370\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">ルータ 2</text>\n  <text x=\"185\" y=\"398\" text-anchor=\"start\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">③ フェーズ 1：管理用の取り決めを作る（メインモードの段取り）</text>\n  <text x=\"400\" y=\"418\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">使える方式の候補を出す → 鍵の材料を交換する → その上で相手が本物か確かめる</text>\n  <line x1=\"210\" y1=\"424\" x2=\"582\" y2=\"424\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"581,419 581,429 590,424\" fill=\"#0a7aff\"/>\n  <text x=\"400\" y=\"450\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">合意。管理用の SA が 1 つできる。ここから先の打合せは守られる</text>\n  <line x1=\"590\" y1=\"456\" x2=\"218\" y2=\"456\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"219,451 219,461 210,456\" fill=\"#0a7aff\"/>\n  <text x=\"185\" y=\"508\" text-anchor=\"start\" font-size=\"11\" font-weight=\"700\" fill=\"#b45309\">④ フェーズ 2：データ用の取り決めを作る</text>\n  <text x=\"400\" y=\"528\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">守る通信の範囲と、データを守る方式を決める（もう読まれない道の中で）</text>\n  <line x1=\"210\" y1=\"534\" x2=\"582\" y2=\"534\" stroke=\"#b45309\" stroke-width=\"2\"/><polygon points=\"581,529 581,539 590,534\" fill=\"#b45309\"/>\n  <text x=\"400\" y=\"556\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">合意。データ用の SA が 送信用・受信用 の 2 本できる</text>\n  <line x1=\"590\" y1=\"562\" x2=\"218\" y2=\"562\" stroke=\"#b45309\" stroke-width=\"2\"/><polygon points=\"219,557 219,567 210,562\" fill=\"#b45309\"/>\n  <text x=\"400\" y=\"596\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">⑤ ここでやっと、①のパケットが ESP で包まれて流れる</text>\n  <line x1=\"210\" y1=\"602\" x2=\"582\" y2=\"602\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"581,597 581,607 590,602\" fill=\"#0a7aff\"/>\n  <rect x=\"650\" y=\"382\" width=\"230\" height=\"198\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"662\" y=\"402\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">打合せが始まるきっかけ</text>\n  <text x=\"662\" y=\"420\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">口に貼っただけでは、打合せは</text>\n  <text x=\"662\" y=\"435\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">まだ始まらない</text>\n  <text x=\"662\" y=\"450\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">守る通信の並びに一致する</text>\n  <text x=\"662\" y=\"465\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">パケットが実際に来てから、</text>\n  <text x=\"662\" y=\"480\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">相手に声をかける</text>\n  <text x=\"662\" y=\"495\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\"></text>\n  <text x=\"662\" y=\"510\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">勉強会の観察：初回の通信を</text>\n  <text x=\"662\" y=\"525\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">するまで状態は ACTIVE に</text>\n  <text x=\"662\" y=\"540\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">ならず、Active SAs も 0 のまま</text>\n  <text x=\"662\" y=\"555\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（この動きの一次資料は未確認）</text>\n  <rect x=\"20\" y=\"622\" width=\"430\" height=\"112\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"642\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">つながらないときの切り分け</text>\n  <text x=\"32\" y=\"660\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">セッションが DOWN のまま ＝ フェーズ 1 が合っていない</text>\n  <text x=\"32\" y=\"675\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　方式の候補・事前共有鍵・相手の IP のどれかが両側で違う</text>\n  <text x=\"32\" y=\"690\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">フェーズ 1 は上がるのに通らない ＝ フェーズ 2 が合っていない</text>\n  <text x=\"32\" y=\"705\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　守る通信の並び（ACL）が両側で食い違っている</text>\n  <text x=\"32\" y=\"720\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">どちらも「両側で同じものを人が設定する」でしか合わない</text>\n  <rect x=\"470\" y=\"622\" width=\"410\" height=\"112\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"482\" y=\"642\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">新旧（IKEv2 の表で今どれを使うか）</text>\n  <text x=\"482\" y=\"660\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">IKEv1 は Historic（役割を終えた文書）に移された</text>\n  <text x=\"482\" y=\"675\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">今の現行は IKEv2。段取りの呼び名も変わっている</text>\n  <text x=\"482\" y=\"690\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">DH グループ 1 は MUST NOT（使ってはいけない）</text>\n  <text x=\"482\" y=\"705\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">グループ 2 は SHOULD NOT、グループ 14 が MUST</text>\n  <text x=\"482\" y=\"720\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">勉強会の group 1 は、この表では「使ってはいけない」側</text>\n  <text x=\"20\" y=\"764\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">フロー</text>\n  <text x=\"20\" y=\"784\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">① 守る通信（外向きの口に貼った並びに一致するパケット）が、ルータ 1 に届く。図 11 の ① と同じパケット</text>\n  <text x=\"20\" y=\"802\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">② ルータ 1 は「封をすべき通信なのに、使える取り決め（SA）が 1 本も無い」と気づく。そこで ① は落とし、相手の外側 IP へ打合せを持ちかける</text>\n  <text x=\"20\" y=\"820\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">③ フェーズ 1。まず使える方式の候補を出し合い、鍵の材料を交換する。その材料でできた鍵で中身を守れるようになってから、相手が本物かを確かめる</text>\n  <text x=\"34\" y=\"838\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">確かめ方は事前共有鍵（両側に同じ文字列を人が手で設定したもの）。合意すると、管理用の SA が 1 つできる</text>\n  <text x=\"20\" y=\"856\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">④ フェーズ 2。その守られた中で、データ用の取り決めの中身（守る通信の範囲・暗号の方式）を決める</text>\n  <text x=\"34\" y=\"874\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">合意すると、データ用の SA が 送信用・受信用 の 2 本できる（片道に 1 本ずつ）</text>\n  <text x=\"20\" y=\"892\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">⑤ ここでやっと ① のパケットが ESP で包まれて流れる（図 11 の ②〜⑤）。SA には寿命があり、切れる前に打合せをやり直す</text>\n  <text x=\"20\" y=\"922\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">増えたもの</text>\n  <text x=\"20\" y=\"942\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">管理用の SA（論理・自動）：打合せそのものを守るための取り決め。1 つの相手につき 1 つ</text>\n  <text x=\"20\" y=\"960\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">事前共有鍵（論理・手動）：相手の IP と対で登録する合言葉。両側に同じ文字列を人が設定する</text>\n  <text x=\"20\" y=\"988\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">3 層で見ると</text>\n  <text x=\"20\" y=\"1008\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">もの：管理用の SA・データ用の SA（どちらも論理）・事前共有鍵（論理）・UDP ポート番号 500</text>\n  <text x=\"20\" y=\"1026\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">結びつき：事前共有鍵 ⇄ 相手の IP（手動・両側で同じ文字列）／方式の候補 ⇄ 相手（手動・両側で合わないと決まらない）／SA は合意の結果できる（自動）</text>\n  <text x=\"20\" y=\"1044\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">フロー：図 11 の ②「送信用の SA で暗号化する」の前に、その SA を作る往復が入る。通信が来るまで始まらない</text>\n<line x1=\"20\" y1=\"1078\" x2=\"880\" y2=\"1078\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"1100\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">設定と、打合せが進むにつれて増えるもの（③④ の番号は上のフローに対応。青字）</text>\n  <rect x=\"20\" y=\"1112\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"1128\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: フェーズ 1 の設定（手動）</text>\n  <text x=\"30\" y=\"1144\" font-size=\"10\" fill=\"#374151\">相手を確かめる方法：事前共有鍵</text>\n  <text x=\"30\" y=\"1159\" font-size=\"10\" fill=\"#374151\">暗号の方式・ハッシュの方式</text>\n  <text x=\"30\" y=\"1174\" font-size=\"10\" fill=\"#374151\">DH グループ番号（鍵の材料の作り方）</text>\n  <text x=\"30\" y=\"1189\" font-size=\"10\" fill=\"#0a7aff\">③この 4 つが両側で合わないと先へ進まない</text>\n  <rect x=\"310\" y=\"1112\" width=\"280\" height=\"75\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"1128\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: 事前共有鍵の登録（手動）</text>\n  <text x=\"320\" y=\"1144\" font-size=\"10\" fill=\"#374151\">相手の IP：198.51.100.20</text>\n  <text x=\"320\" y=\"1159\" font-size=\"10\" fill=\"#374151\">その相手に使う合言葉：両側で同じ文字列</text>\n  <text x=\"320\" y=\"1174\" font-size=\"10\" fill=\"#374151\">（値そのものは図にも記録にも書かない）</text>\n  <rect x=\"600\" y=\"1112\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"1128\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: フェーズ 2 の設定（手動）</text>\n  <text x=\"610\" y=\"1144\" font-size=\"10\" fill=\"#374151\">守る通信の並び（図 9 の ACL）</text>\n  <text x=\"610\" y=\"1159\" font-size=\"10\" fill=\"#374151\">データを守る暗号の組合せ</text>\n  <text x=\"610\" y=\"1174\" font-size=\"10\" fill=\"#374151\">相手：198.51.100.20</text>\n  <text x=\"610\" y=\"1189\" font-size=\"10\" fill=\"#0a7aff\">④守る通信の並びが両側で食い違うと通らない</text>\n  <rect x=\"20\" y=\"1212\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"1228\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">打合せの前（②の時点）</text>\n  <text x=\"30\" y=\"1244\" font-size=\"10\" fill=\"#374151\">管理用の SA：0</text>\n  <text x=\"30\" y=\"1259\" font-size=\"10\" fill=\"#374151\">データ用の SA：0</text>\n  <text x=\"30\" y=\"1274\" font-size=\"10\" fill=\"#374151\">セッションの状態：DOWN</text>\n  <text x=\"30\" y=\"1289\" font-size=\"10\" fill=\"#374151\">この状態で ① のパケットが来て、③ が始まる</text>\n  <rect x=\"310\" y=\"1212\" width=\"280\" height=\"75\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"1228\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">フェーズ 1 の後</text>\n  <text x=\"320\" y=\"1244\" font-size=\"10\" fill=\"#0a7aff\">③管理用の SA：1（相手 1 つにつき 1 つ）</text>\n  <text x=\"320\" y=\"1259\" font-size=\"10\" fill=\"#374151\">データ用の SA：0</text>\n  <text x=\"320\" y=\"1274\" font-size=\"10\" fill=\"#374151\">まだデータは 1 バイトも流れない</text>\n  <rect x=\"600\" y=\"1212\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"1228\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">フェーズ 2 の後（⑤ が流れる状態）</text>\n  <text x=\"610\" y=\"1244\" font-size=\"10\" fill=\"#374151\">管理用の SA：1</text>\n  <text x=\"610\" y=\"1259\" font-size=\"10\" fill=\"#0a7aff\">④データ用の SA：2（送信用・受信用）</text>\n  <text x=\"610\" y=\"1274\" font-size=\"10\" fill=\"#374151\">勉強会の表示 Active SAs: 2 はこの 2 本</text>\n  <text x=\"610\" y=\"1289\" font-size=\"10\" fill=\"#374151\">寿命が切れる前に、また打合せが起きる</text>\n<text x=\"20\" y=\"1352\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"1402\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">① 守る通信が届く（図 11 の ① と同じ。これが打合せのきっかけ）</text>\n  <rect x=\"20\" y=\"1408\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi0</text>\n  <rect x=\"138\" y=\"1408\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"1408\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.3.10</text>\n  <rect x=\"374\" y=\"1408\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"1408\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <line x1=\"20\" y1=\"1452\" x2=\"562\" y2=\"1452\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"1448\" x2=\"20\" y2=\"1452\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"1448\" x2=\"562\" y2=\"1452\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"1465\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"1394\" x2=\"562\" y2=\"1394\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"1394\" x2=\"256\" y2=\"1398\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"1394\" x2=\"562\" y2=\"1398\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"1390\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n  <text x=\"20\" y=\"1498\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">② ルータ 1 の中</text>\n  <text x=\"20\" y=\"1518\" font-size=\"10\" fill=\"#6b7280\">守る通信の並びには一致した。しかし使えるデータ用の SA が無い。そこで ① は落とし（初回の通信が失敗するのはこのため）、相手へ打合せの通信を出す</text>\n  <text x=\"20\" y=\"1542\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ フェーズ 1 の往復（ルータ 1 → ルータ 2。中身はまだ守られていない）</text>\n  <rect x=\"20\" y=\"1548\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC ISP-1</text>\n  <rect x=\"138\" y=\"1548\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi1</text>\n  <rect x=\"256\" y=\"1548\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">198.51.100.20</text>\n  <rect x=\"374\" y=\"1548\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">203.0.113.10</text>\n  <rect x=\"492\" y=\"1548\" width=\"84\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"534.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">UDP ポート番号</text>\n  <text x=\"534.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">500</text>\n  <rect x=\"576\" y=\"1548\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"611.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"611.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">方式の候補</text>\n  <text x=\"20\" y=\"1602\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ の途中から</text>\n  <text x=\"20\" y=\"1622\" font-size=\"10\" fill=\"#6b7280\">鍵の材料を交換し終えた後は、同じ UDP ポート番号 500 のまま、中身が守られた状態になる。相手が本物かを確かめるやり取りは、その守られた中で行う</text>\n  <text x=\"20\" y=\"1646\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">④ フェーズ 2 の往復（同じ口・同じポート番号。中身はもう読めない）</text>\n  <rect x=\"20\" y=\"1652\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC ISP-1</text>\n  <rect x=\"138\" y=\"1652\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi1</text>\n  <rect x=\"256\" y=\"1652\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">198.51.100.20</text>\n  <rect x=\"374\" y=\"1652\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">203.0.113.10</text>\n  <rect x=\"492\" y=\"1652\" width=\"84\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"534.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">UDP ポート番号</text>\n  <text x=\"534.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">500</text>\n  <rect x=\"576\" y=\"1652\" width=\"200\" height=\"36\" fill=\"#e9edf2\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"676.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">暗号化されて読めない部分</text>\n  <text x=\"676.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">データ用の取り決めの中身</text>\n  <text x=\"20\" y=\"1706\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">⑤ データ（図 11 の ③ と同じ。ここで初めて封ができる）</text>\n  <rect x=\"20\" y=\"1712\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC ISP-1</text>\n  <rect x=\"138\" y=\"1712\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi1</text>\n  <rect x=\"256\" y=\"1712\" width=\"104\" height=\"36\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"308.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">外側 宛先 IP</text>\n  <text x=\"308.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">198.51.100.20</text>\n  <rect x=\"360\" y=\"1712\" width=\"104\" height=\"36\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"412.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">外側 送信元 IP</text>\n  <text x=\"412.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">203.0.113.10</text>\n  <rect x=\"464\" y=\"1712\" width=\"92\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#b45309\" stroke-width=\"1\"/>\n  <text x=\"510.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">ESP ヘッダ</text>\n  <text x=\"510.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">SPI・連番</text>\n  <rect x=\"556\" y=\"1712\" width=\"200\" height=\"36\" fill=\"#e9edf2\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"656.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">暗号化されて読めない部分</text>\n  <text x=\"656.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">内側 IP ヘッダ＋データ＋末尾</text>\n  <rect x=\"756\" y=\"1712\" width=\"76\" height=\"36\" fill=\"#ffffff\" stroke=\"#b45309\" stroke-width=\"1\"/>\n  <text x=\"794.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">認証データ</text>\n  <text x=\"794.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">改ざん検知用</text>\n<text x=\"20\" y=\"1766\" font-size=\"10\" fill=\"#6b7280\">打合せは UDP ポート番号 500 を使う。間に NAT があるときは 4500 も使う（RFC 7296 §2、NAT 越えを扱う §2.23）</text>\n<text x=\"20\" y=\"1782\" font-size=\"10\" fill=\"#6b7280\">図 11 のデータ（ESP）のほうはポート番号を持たない。外側 IP ヘッダのプロトコルの欄 50 で見分ける</text>\n<text x=\"20\" y=\"1798\" font-size=\"10\" fill=\"#6b7280\">データ用の SA は必ず送信用・受信用の対でできる。片方を消すときは両方消す（RFC 7296 §1.4.1）。勉強会で見た Active SAs: 2 はこの対のこと</text>\n<text x=\"20\" y=\"1814\" font-size=\"10\" fill=\"#6b7280\">「フェーズ 1・フェーズ 2」は IKEv1 の言い方。IKEv2 では IKE_SA_INIT と IKE_AUTH の 2 往復で、管理用の SA と最初のデータ用 SA まで作ってしまう（RFC 7296 §1.2）</text>\n<text x=\"20\" y=\"1830\" font-size=\"10\" fill=\"#6b7280\">　CREATE_CHILD_SA を使うのは、データ用の SA を 2 本目以降足すときと、寿命が来て作り直すとき（RFC 7296 §1.3）。IKEv2 は 2 段階に分かれていない</text>\n<text x=\"20\" y=\"1846\" font-size=\"10\" fill=\"#6b7280\">古い方式について: IKEv1（RFC 2409）と、その土台の RFC 2408・2407 は Historic（役割を終えた文書）に移された（RFC 9395）。勉強会の crypto isakmp の設定は IKEv1 側</text>\n<text x=\"20\" y=\"1862\" font-size=\"10\" fill=\"#6b7280\">DH グループ 1（768 ビット）は MUST NOT、グループ 2（1024 ビット）は SHOULD NOT、グループ 14（2048 ビット）が MUST（RFC 8247 §2.4）</text>\n<text x=\"20\" y=\"1878\" font-size=\"10\" fill=\"#6b7280\">勉強会で使った group 1 は、この表では「使ってはいけない」側にあたる</text>\n<text x=\"20\" y=\"1894\" font-size=\"10\" fill=\"#6b7280\">同じく IKEv2 では 3DES が MAY まで下がり、SHA-1 を使う鍵生成は MUST-（SHA-1 への攻撃を理由に格下げ）（RFC 8247 §2.1・§2.2）</text>\n<text x=\"20\" y=\"1910\" font-size=\"10\" fill=\"#6b7280\">出典（IKEv2 の段取り・ポート番号・SA の対）: RFC 7296 https://www.rfc-editor.org/rfc/rfc7296</text>\n<text x=\"20\" y=\"1926\" font-size=\"10\" fill=\"#6b7280\">出典（IKEv1 が Historic に移されたこと）: RFC 9395 https://www.rfc-editor.org/rfc/rfc9395</text>\n<text x=\"20\" y=\"1942\" font-size=\"10\" fill=\"#6b7280\">出典（DH グループと方式の新旧）: RFC 8247 https://www.rfc-editor.org/rfc/rfc8247</text>\n<text x=\"20\" y=\"1958\" font-size=\"10\" fill=\"#6b7280\">未検証: 「守る通信が実際に来てから打合せを始める」は、勉強会で初回の通信をするまで状態が ACTIVE にならなかった観察を一般化したもの。この動きを定めた一次資料は確認できていない</text>\n<text x=\"20\" y=\"1974\" font-size=\"10\" fill=\"#6b7280\">未検証: 上の帯のフェーズ 1・フェーズ 2 の往復は、IKEv1 のメインモードの段取りを 1 往復ずつに単純化して描いている</text>\n<text x=\"20\" y=\"1990\" font-size=\"10\" fill=\"#6b7280\">　　　　実際の通信の数と、どの欄がどこまで守られるかは、この図では確かめていない</text>\n</svg>\n## 図 11・図 9 との接続","text":"<svg viewBox=\"0 0 900 2016\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"IKE：IPsec の封をする前の打合せ（フェーズ 1 とフェーズ 2）\" style=\"max-width:100%;height:auto;font-family:sans-serif\">\n  <rect x=\"0\" y=\"0\" width=\"900\" height=\"2016\" fill=\"#fbfcfe\"/>\n  <text x=\"20\" y=\"30\" text-anchor=\"start\" font-size=\"14\" font-weight=\"700\" fill=\"#1f2937\">IKE：封をする前の打合せ。方式と鍵を、まだ守られていない道で決める</text>\n  <text x=\"20\" y=\"50\" text-anchor=\"start\" font-size=\"11\" fill=\"#6b7280\">図 7 の 3 つの問題を直接解く図ではなく、図 11（問題 3 の解）が使う取り決めを作る段。フェーズ 1 で管理用の SA、その中でフェーズ 2 がデータ用の SA を 2 本作る</text>\n  <rect x=\"20\" y=\"80\" width=\"250\" height=\"250\" rx=\"10\" fill=\"none\" stroke=\"#9aa7b5\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"32\" y=\"100\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#6b7280\">支店（自分のもの）</text>\n  <rect x=\"290\" y=\"80\" width=\"320\" height=\"250\" rx=\"10\" fill=\"#fff7ed\" stroke=\"#d97706\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"302\" y=\"100\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#b45309\">インターネット（他人のもの）</text>\n  <rect x=\"630\" y=\"80\" width=\"250\" height=\"250\" rx=\"10\" fill=\"none\" stroke=\"#9aa7b5\" stroke-width=\"1.5\" stroke-dasharray=\"6 4\"/>\n  <text x=\"642\" y=\"100\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#6b7280\">データセンター（自分のもの）</text>\n  <rect x=\"32\" y=\"206\" width=\"80\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"72.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-A</text>\n  <text x=\"72.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.10.10</text>\n  <text x=\"72.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">GW 192.168.10.1</text>\n  <line x1=\"112\" y1=\"234\" x2=\"150\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"150\" y=\"192\" width=\"110\" height=\"84\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"205.0\" y=\"212\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1</text>\n  <text x=\"205.0\" y=\"230\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi0 192.168.10.1</text>\n  <text x=\"205.0\" y=\"245\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 203.0.113.10</text>\n  <text x=\"205.0\" y=\"260\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（グローバル IP）</text>\n  <rect x=\"141\" y=\"225\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"150\" y=\"238\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0</text>\n  <rect x=\"251\" y=\"225\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"260\" y=\"238\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <line x1=\"269\" y1=\"234\" x2=\"330\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"330\" y=\"206\" width=\"70\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"365.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ISP-1</text>\n  <text x=\"365.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">他人の</text>\n  <text x=\"365.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">ルータ</text>\n  <line x1=\"400\" y1=\"234\" x2=\"415\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"415\" y=\"206\" width=\"70\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"450.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ISP-2</text>\n  <text x=\"450.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">他人の</text>\n  <text x=\"450.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">ルータ</text>\n  <line x1=\"485\" y1=\"234\" x2=\"500\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"500\" y=\"206\" width=\"70\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"535.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ISP-3</text>\n  <text x=\"535.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">他人の</text>\n  <text x=\"535.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">ルータ</text>\n  <line x1=\"570\" y1=\"234\" x2=\"640\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"640\" y=\"192\" width=\"110\" height=\"84\" rx=\"8\" fill=\"#f2f5f9\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"695.0\" y=\"212\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">ルータ 2</text>\n  <text x=\"695.0\" y=\"230\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi0 198.51.100.20</text>\n  <text x=\"695.0\" y=\"245\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">（グローバル IP）</text>\n  <text x=\"695.0\" y=\"260\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 192.168.3.1</text>\n  <rect x=\"631\" y=\"225\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"640\" y=\"238\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi0</text>\n  <rect x=\"741\" y=\"225\" width=\"18\" height=\"18\" fill=\"#ffffff\" stroke=\"#6b7280\" stroke-width=\"1.5\"/><text x=\"750\" y=\"238\" text-anchor=\"middle\" font-size=\"8\" fill=\"#1f2937\">Gi1</text>\n  <line x1=\"759\" y1=\"234\" x2=\"790\" y2=\"234\" stroke=\"#374151\" stroke-width=\"2\"/>\n  <rect x=\"790\" y=\"206\" width=\"80\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"830.0\" y=\"226\" text-anchor=\"middle\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">PC-C</text>\n  <text x=\"830.0\" y=\"244\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">192.168.3.10</text>\n  <text x=\"830.0\" y=\"259\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">GW 192.168.3.1</text>\n  <rect x=\"150\" y=\"125\" width=\"110\" height=\"46\" rx=\"8\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"205.0\" y=\"145\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">crypto map</text>\n  <text x=\"205.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi1 に貼る（手動）</text>\n  <rect x=\"640\" y=\"125\" width=\"110\" height=\"46\" rx=\"8\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <text x=\"695.0\" y=\"145\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">crypto map</text>\n  <text x=\"695.0\" y=\"163\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">Gi0 に貼る（手動）</text>\n  <line x1=\"205\" y1=\"192\" x2=\"205\" y2=\"171\" stroke=\"#d97706\" stroke-width=\"1.5\" stroke-dasharray=\"4 3\"/>\n  <line x1=\"695\" y1=\"192\" x2=\"695\" y2=\"171\" stroke=\"#d97706\" stroke-width=\"1.5\" stroke-dasharray=\"4 3\"/>\n  <text x=\"450\" y=\"118\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">打合せ（IKE）。まだ封のできていない道で、方式と鍵を決める</text>\n  <line x1=\"450\" y1=\"155\" x2=\"628\" y2=\"155\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"627,150 627,160 636,155\" fill=\"#0a7aff\"/>\n  <line x1=\"450\" y1=\"155\" x2=\"272\" y2=\"155\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"273,150 273,160 264,155\" fill=\"#0a7aff\"/>\n  <circle cx=\"390\" cy=\"155\" r=\"9\" fill=\"#0a7aff\"/><text x=\"390\" y=\"159\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">3</text>\n  <circle cx=\"510\" cy=\"155\" r=\"9\" fill=\"#0a7aff\"/><text x=\"510\" y=\"159\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">4</text>\n  <text x=\"450\" y=\"180\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">打合せもこの中を通る。だから「相手が本物か」を確かめる段が要る</text>\n  <text x=\"450\" y=\"194\" text-anchor=\"middle\" font-size=\"10\" fill=\"#6b7280\">合意ができるまで、データ用の取り決め（SA）は 1 本も無い</text>\n  <line x1=\"112\" y1=\"300\" x2=\"142\" y2=\"300\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"141,295 141,305 150,300\" fill=\"#0a7aff\"/>\n  <circle cx=\"131\" cy=\"300\" r=\"9\" fill=\"#0a7aff\"/><text x=\"131\" y=\"304\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">1</text>\n  <circle cx=\"205\" cy=\"300\" r=\"9\" fill=\"#0a7aff\"/><text x=\"205\" y=\"304\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">2</text>\n  <line x1=\"269\" y1=\"300\" x2=\"623\" y2=\"300\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"622,295 622,305 631,300\" fill=\"#0a7aff\"/>\n  <circle cx=\"450\" cy=\"300\" r=\"9\" fill=\"#0a7aff\"/><text x=\"450\" y=\"304\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#ffffff\">5</text>\n  <text x=\"205\" y=\"322\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">SA が無い</text>\n  <text x=\"450\" y=\"322\" text-anchor=\"middle\" font-size=\"10\" fill=\"#b45309\">合意できてから、初めてデータが ESP で流れる（図 11）</text>\n  <text x=\"20\" y=\"352\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">③④ の中身：打合せは 2 段階に分かれている</text>\n  <rect x=\"175\" y=\"382\" width=\"450\" height=\"96\" rx=\"6\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <rect x=\"175\" y=\"492\" width=\"450\" height=\"88\" rx=\"6\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1.5\"/>\n  <line x1=\"200\" y1=\"376\" x2=\"200\" y2=\"606\" stroke=\"#9aa7b5\" stroke-width=\"1.5\"/>\n  <line x1=\"600\" y1=\"376\" x2=\"600\" y2=\"606\" stroke=\"#9aa7b5\" stroke-width=\"1.5\"/>\n  <text x=\"200\" y=\"370\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1</text>\n  <text x=\"600\" y=\"370\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">ルータ 2</text>\n  <text x=\"185\" y=\"398\" text-anchor=\"start\" font-size=\"11\" font-weight=\"700\" fill=\"#0a7aff\">③ フェーズ 1：管理用の取り決めを作る（メインモードの段取り）</text>\n  <text x=\"400\" y=\"418\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">使える方式の候補を出す → 鍵の材料を交換する → その上で相手が本物か確かめる</text>\n  <line x1=\"210\" y1=\"424\" x2=\"582\" y2=\"424\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"581,419 581,429 590,424\" fill=\"#0a7aff\"/>\n  <text x=\"400\" y=\"450\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">合意。管理用の SA が 1 つできる。ここから先の打合せは守られる</text>\n  <line x1=\"590\" y1=\"456\" x2=\"218\" y2=\"456\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"219,451 219,461 210,456\" fill=\"#0a7aff\"/>\n  <text x=\"185\" y=\"508\" text-anchor=\"start\" font-size=\"11\" font-weight=\"700\" fill=\"#b45309\">④ フェーズ 2：データ用の取り決めを作る</text>\n  <text x=\"400\" y=\"528\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">守る通信の範囲と、データを守る方式を決める（もう読まれない道の中で）</text>\n  <line x1=\"210\" y1=\"534\" x2=\"582\" y2=\"534\" stroke=\"#b45309\" stroke-width=\"2\"/><polygon points=\"581,529 581,539 590,534\" fill=\"#b45309\"/>\n  <text x=\"400\" y=\"556\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">合意。データ用の SA が 送信用・受信用 の 2 本できる</text>\n  <line x1=\"590\" y1=\"562\" x2=\"218\" y2=\"562\" stroke=\"#b45309\" stroke-width=\"2\"/><polygon points=\"219,557 219,567 210,562\" fill=\"#b45309\"/>\n  <text x=\"400\" y=\"596\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#0a7aff\">⑤ ここでやっと、①のパケットが ESP で包まれて流れる</text>\n  <line x1=\"210\" y1=\"602\" x2=\"582\" y2=\"602\" stroke=\"#0a7aff\" stroke-width=\"2\"/><polygon points=\"581,597 581,607 590,602\" fill=\"#0a7aff\"/>\n  <rect x=\"650\" y=\"382\" width=\"230\" height=\"198\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"662\" y=\"402\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">打合せが始まるきっかけ</text>\n  <text x=\"662\" y=\"420\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">口に貼っただけでは、打合せは</text>\n  <text x=\"662\" y=\"435\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">まだ始まらない</text>\n  <text x=\"662\" y=\"450\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">守る通信の並びに一致する</text>\n  <text x=\"662\" y=\"465\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">パケットが実際に来てから、</text>\n  <text x=\"662\" y=\"480\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">相手に声をかける</text>\n  <text x=\"662\" y=\"495\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\"></text>\n  <text x=\"662\" y=\"510\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">勉強会の観察：初回の通信を</text>\n  <text x=\"662\" y=\"525\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">するまで状態は ACTIVE に</text>\n  <text x=\"662\" y=\"540\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">ならず、Active SAs も 0 のまま</text>\n  <text x=\"662\" y=\"555\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">（この動きの一次資料は未確認）</text>\n  <rect x=\"20\" y=\"622\" width=\"430\" height=\"112\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"32\" y=\"642\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">つながらないときの切り分け</text>\n  <text x=\"32\" y=\"660\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">セッションが DOWN のまま ＝ フェーズ 1 が合っていない</text>\n  <text x=\"32\" y=\"675\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　方式の候補・事前共有鍵・相手の IP のどれかが両側で違う</text>\n  <text x=\"32\" y=\"690\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">フェーズ 1 は上がるのに通らない ＝ フェーズ 2 が合っていない</text>\n  <text x=\"32\" y=\"705\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">　守る通信の並び（ACL）が両側で食い違っている</text>\n  <text x=\"32\" y=\"720\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">どちらも「両側で同じものを人が設定する」でしか合わない</text>\n  <rect x=\"470\" y=\"622\" width=\"410\" height=\"112\" rx=\"8\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"482\" y=\"642\" text-anchor=\"start\" font-size=\"13\" font-weight=\"700\" fill=\"#1f2937\">新旧（IKEv2 の表で今どれを使うか）</text>\n  <text x=\"482\" y=\"660\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">IKEv1 は Historic（役割を終えた文書）に移された</text>\n  <text x=\"482\" y=\"675\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">今の現行は IKEv2。段取りの呼び名も変わっている</text>\n  <text x=\"482\" y=\"690\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">DH グループ 1 は MUST NOT（使ってはいけない）</text>\n  <text x=\"482\" y=\"705\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">グループ 2 は SHOULD NOT、グループ 14 が MUST</text>\n  <text x=\"482\" y=\"720\" text-anchor=\"start\" font-size=\"10\" fill=\"#374151\">勉強会の group 1 は、この表では「使ってはいけない」側</text>\n  <text x=\"20\" y=\"764\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">フロー</text>\n  <text x=\"20\" y=\"784\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">① 守る通信（外向きの口に貼った並びに一致するパケット）が、ルータ 1 に届く。図 11 の ① と同じパケット</text>\n  <text x=\"20\" y=\"802\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">② ルータ 1 は「封をすべき通信なのに、使える取り決め（SA）が 1 本も無い」と気づく。そこで ① は落とし、相手の外側 IP へ打合せを持ちかける</text>\n  <text x=\"20\" y=\"820\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">③ フェーズ 1。まず使える方式の候補を出し合い、鍵の材料を交換する。その材料でできた鍵で中身を守れるようになってから、相手が本物かを確かめる</text>\n  <text x=\"34\" y=\"838\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">確かめ方は事前共有鍵（両側に同じ文字列を人が手で設定したもの）。合意すると、管理用の SA が 1 つできる</text>\n  <text x=\"20\" y=\"856\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">④ フェーズ 2。その守られた中で、データ用の取り決めの中身（守る通信の範囲・暗号の方式）を決める</text>\n  <text x=\"34\" y=\"874\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">合意すると、データ用の SA が 送信用・受信用 の 2 本できる（片道に 1 本ずつ）</text>\n  <text x=\"20\" y=\"892\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">⑤ ここでやっと ① のパケットが ESP で包まれて流れる（図 11 の ②〜⑤）。SA には寿命があり、切れる前に打合せをやり直す</text>\n  <text x=\"20\" y=\"922\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">増えたもの</text>\n  <text x=\"20\" y=\"942\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">管理用の SA（論理・自動）：打合せそのものを守るための取り決め。1 つの相手につき 1 つ</text>\n  <text x=\"20\" y=\"960\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">事前共有鍵（論理・手動）：相手の IP と対で登録する合言葉。両側に同じ文字列を人が設定する</text>\n  <text x=\"20\" y=\"988\" text-anchor=\"start\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">3 層で見ると</text>\n  <text x=\"20\" y=\"1008\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">もの：管理用の SA・データ用の SA（どちらも論理）・事前共有鍵（論理）・UDP ポート番号 500</text>\n  <text x=\"20\" y=\"1026\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">結びつき：事前共有鍵 ⇄ 相手の IP（手動・両側で同じ文字列）／方式の候補 ⇄ 相手（手動・両側で合わないと決まらない）／SA は合意の結果できる（自動）</text>\n  <text x=\"20\" y=\"1044\" text-anchor=\"start\" font-size=\"11\" fill=\"#374151\">フロー：図 11 の ②「送信用の SA で暗号化する」の前に、その SA を作る往復が入る。通信が来るまで始まらない</text>\n<line x1=\"20\" y1=\"1078\" x2=\"880\" y2=\"1078\" stroke=\"#d6dde5\" stroke-width=\"1\"/>\n<text x=\"20\" y=\"1100\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">設定と、打合せが進むにつれて増えるもの（③④ の番号は上のフローに対応。青字）</text>\n  <rect x=\"20\" y=\"1112\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"1128\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: フェーズ 1 の設定（手動）</text>\n  <text x=\"30\" y=\"1144\" font-size=\"10\" fill=\"#374151\">相手を確かめる方法：事前共有鍵</text>\n  <text x=\"30\" y=\"1159\" font-size=\"10\" fill=\"#374151\">暗号の方式・ハッシュの方式</text>\n  <text x=\"30\" y=\"1174\" font-size=\"10\" fill=\"#374151\">DH グループ番号（鍵の材料の作り方）</text>\n  <text x=\"30\" y=\"1189\" font-size=\"10\" fill=\"#0a7aff\">③この 4 つが両側で合わないと先へ進まない</text>\n  <rect x=\"310\" y=\"1112\" width=\"280\" height=\"75\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"1128\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: 事前共有鍵の登録（手動）</text>\n  <text x=\"320\" y=\"1144\" font-size=\"10\" fill=\"#374151\">相手の IP：198.51.100.20</text>\n  <text x=\"320\" y=\"1159\" font-size=\"10\" fill=\"#374151\">その相手に使う合言葉：両側で同じ文字列</text>\n  <text x=\"320\" y=\"1174\" font-size=\"10\" fill=\"#374151\">（値そのものは図にも記録にも書かない）</text>\n  <rect x=\"600\" y=\"1112\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"1128\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ルータ 1: フェーズ 2 の設定（手動）</text>\n  <text x=\"610\" y=\"1144\" font-size=\"10\" fill=\"#374151\">守る通信の並び（図 9 の ACL）</text>\n  <text x=\"610\" y=\"1159\" font-size=\"10\" fill=\"#374151\">データを守る暗号の組合せ</text>\n  <text x=\"610\" y=\"1174\" font-size=\"10\" fill=\"#374151\">相手：198.51.100.20</text>\n  <text x=\"610\" y=\"1189\" font-size=\"10\" fill=\"#0a7aff\">④守る通信の並びが両側で食い違うと通らない</text>\n  <rect x=\"20\" y=\"1212\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"30\" y=\"1228\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">打合せの前（②の時点）</text>\n  <text x=\"30\" y=\"1244\" font-size=\"10\" fill=\"#374151\">管理用の SA：0</text>\n  <text x=\"30\" y=\"1259\" font-size=\"10\" fill=\"#374151\">データ用の SA：0</text>\n  <text x=\"30\" y=\"1274\" font-size=\"10\" fill=\"#374151\">セッションの状態：DOWN</text>\n  <text x=\"30\" y=\"1289\" font-size=\"10\" fill=\"#374151\">この状態で ① のパケットが来て、③ が始まる</text>\n  <rect x=\"310\" y=\"1212\" width=\"280\" height=\"75\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"320\" y=\"1228\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">フェーズ 1 の後</text>\n  <text x=\"320\" y=\"1244\" font-size=\"10\" fill=\"#0a7aff\">③管理用の SA：1（相手 1 つにつき 1 つ）</text>\n  <text x=\"320\" y=\"1259\" font-size=\"10\" fill=\"#374151\">データ用の SA：0</text>\n  <text x=\"320\" y=\"1274\" font-size=\"10\" fill=\"#374151\">まだデータは 1 バイトも流れない</text>\n  <rect x=\"600\" y=\"1212\" width=\"280\" height=\"90\" rx=\"6\" fill=\"#ffffff\" stroke=\"#b9c4d0\" stroke-width=\"1.5\"/>\n  <text x=\"610\" y=\"1228\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">フェーズ 2 の後（⑤ が流れる状態）</text>\n  <text x=\"610\" y=\"1244\" font-size=\"10\" fill=\"#374151\">管理用の SA：1</text>\n  <text x=\"610\" y=\"1259\" font-size=\"10\" fill=\"#0a7aff\">④データ用の SA：2（送信用・受信用）</text>\n  <text x=\"610\" y=\"1274\" font-size=\"10\" fill=\"#374151\">勉強会の表示 Active SAs: 2 はこの 2 本</text>\n  <text x=\"610\" y=\"1289\" font-size=\"10\" fill=\"#374151\">寿命が切れる前に、また打合せが起きる</text>\n<text x=\"20\" y=\"1352\" font-size=\"12\" font-weight=\"700\" fill=\"#1f2937\">通信の中身の推移（フローごとのフレーム／パケット）</text>\n  <text x=\"20\" y=\"1402\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">① 守る通信が届く（図 11 の ① と同じ。これが打合せのきっかけ）</text>\n  <rect x=\"20\" y=\"1408\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi0</text>\n  <rect x=\"138\" y=\"1408\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC A</text>\n  <rect x=\"256\" y=\"1408\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.3.10</text>\n  <rect x=\"374\" y=\"1408\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">192.168.10.10</text>\n  <rect x=\"492\" y=\"1408\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"527.0\" y=\"1422\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"527.0\" y=\"1437\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">ping</text>\n  <line x1=\"20\" y1=\"1452\" x2=\"562\" y2=\"1452\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"20\" y1=\"1448\" x2=\"20\" y2=\"1452\" stroke=\"#374151\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"1448\" x2=\"562\" y2=\"1452\" stroke=\"#374151\" stroke-width=\"1.5\"/>\n  <text x=\"291.0\" y=\"1465\" text-anchor=\"middle\" font-size=\"10\" fill=\"#374151\">フレーム＝全部。ただしスイッチが見るのは MAC とタグの部分だけ</text>\n  <line x1=\"256\" y1=\"1394\" x2=\"562\" y2=\"1394\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"256\" y1=\"1394\" x2=\"256\" y2=\"1398\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/><line x1=\"562\" y1=\"1394\" x2=\"562\" y2=\"1398\" stroke=\"#0a7aff\" stroke-width=\"1.5\"/>\n  <text x=\"409.0\" y=\"1390\" text-anchor=\"middle\" font-size=\"10\" fill=\"#0a7aff\">パケット＝この部分。ルータはここ（IP）を見る</text>\n  <text x=\"20\" y=\"1498\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">② ルータ 1 の中</text>\n  <text x=\"20\" y=\"1518\" font-size=\"10\" fill=\"#6b7280\">守る通信の並びには一致した。しかし使えるデータ用の SA が無い。そこで ① は落とし（初回の通信が失敗するのはこのため）、相手へ打合せの通信を出す</text>\n  <text x=\"20\" y=\"1542\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ フェーズ 1 の往復（ルータ 1 → ルータ 2。中身はまだ守られていない）</text>\n  <rect x=\"20\" y=\"1548\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC ISP-1</text>\n  <rect x=\"138\" y=\"1548\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi1</text>\n  <rect x=\"256\" y=\"1548\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">198.51.100.20</text>\n  <rect x=\"374\" y=\"1548\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">203.0.113.10</text>\n  <rect x=\"492\" y=\"1548\" width=\"84\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"534.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">UDP ポート番号</text>\n  <text x=\"534.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">500</text>\n  <rect x=\"576\" y=\"1548\" width=\"70\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"611.0\" y=\"1562\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">データ</text>\n  <text x=\"611.0\" y=\"1577\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">方式の候補</text>\n  <text x=\"20\" y=\"1602\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">③ の途中から</text>\n  <text x=\"20\" y=\"1622\" font-size=\"10\" fill=\"#6b7280\">鍵の材料を交換し終えた後は、同じ UDP ポート番号 500 のまま、中身が守られた状態になる。相手が本物かを確かめるやり取りは、その守られた中で行う</text>\n  <text x=\"20\" y=\"1646\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">④ フェーズ 2 の往復（同じ口・同じポート番号。中身はもう読めない）</text>\n  <rect x=\"20\" y=\"1652\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC ISP-1</text>\n  <rect x=\"138\" y=\"1652\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi1</text>\n  <rect x=\"256\" y=\"1652\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"315.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 IP</text>\n  <text x=\"315.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">198.51.100.20</text>\n  <rect x=\"374\" y=\"1652\" width=\"118\" height=\"36\" fill=\"#e6f0ff\" stroke=\"#0a7aff\" stroke-width=\"1\"/>\n  <text x=\"433.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 IP</text>\n  <text x=\"433.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">203.0.113.10</text>\n  <rect x=\"492\" y=\"1652\" width=\"84\" height=\"36\" fill=\"#ffffff\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"534.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">UDP ポート番号</text>\n  <text x=\"534.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">500</text>\n  <rect x=\"576\" y=\"1652\" width=\"200\" height=\"36\" fill=\"#e9edf2\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"676.0\" y=\"1666\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">暗号化されて読めない部分</text>\n  <text x=\"676.0\" y=\"1681\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">データ用の取り決めの中身</text>\n  <text x=\"20\" y=\"1706\" font-size=\"11\" font-weight=\"700\" fill=\"#1f2937\">⑤ データ（図 11 の ③ と同じ。ここで初めて封ができる）</text>\n  <rect x=\"20\" y=\"1712\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"79.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">宛先 MAC</text>\n  <text x=\"79.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC ISP-1</text>\n  <rect x=\"138\" y=\"1712\" width=\"118\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"197.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">送信元 MAC</text>\n  <text x=\"197.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">MAC R1-Gi1</text>\n  <rect x=\"256\" y=\"1712\" width=\"104\" height=\"36\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"308.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">外側 宛先 IP</text>\n  <text x=\"308.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">198.51.100.20</text>\n  <rect x=\"360\" y=\"1712\" width=\"104\" height=\"36\" fill=\"#fff1dc\" stroke=\"#d97706\" stroke-width=\"1\"/>\n  <text x=\"412.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">外側 送信元 IP</text>\n  <text x=\"412.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">203.0.113.10</text>\n  <rect x=\"464\" y=\"1712\" width=\"92\" height=\"36\" fill=\"#f2f5f9\" stroke=\"#b45309\" stroke-width=\"1\"/>\n  <text x=\"510.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">ESP ヘッダ</text>\n  <text x=\"510.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">SPI・連番</text>\n  <rect x=\"556\" y=\"1712\" width=\"200\" height=\"36\" fill=\"#e9edf2\" stroke=\"#9aa7b5\" stroke-width=\"1\"/>\n  <text x=\"656.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">暗号化されて読めない部分</text>\n  <text x=\"656.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">内側 IP ヘッダ＋データ＋末尾</text>\n  <rect x=\"756\" y=\"1712\" width=\"76\" height=\"36\" fill=\"#ffffff\" stroke=\"#b45309\" stroke-width=\"1\"/>\n  <text x=\"794.0\" y=\"1726\" text-anchor=\"middle\" font-size=\"9\" fill=\"#6b7280\">認証データ</text>\n  <text x=\"794.0\" y=\"1741\" text-anchor=\"middle\" font-size=\"10\" font-weight=\"700\" fill=\"#1f2937\">改ざん検知用</text>\n<text x=\"20\" y=\"1766\" font-size=\"10\" fill=\"#6b7280\">打合せは UDP ポート番号 500 を使う。間に NAT があるときは 4500 も使う（RFC 7296 §2、NAT 越えを扱う §2.23）</text>\n<text x=\"20\" y=\"1782\" font-size=\"10\" fill=\"#6b7280\">図 11 のデータ（ESP）のほうはポート番号を持たない。外側 IP ヘッダのプロトコルの欄 50 で見分ける</text>\n<text x=\"20\" y=\"1798\" font-size=\"10\" fill=\"#6b7280\">データ用の SA は必ず送信用・受信用の対でできる。片方を消すときは両方消す（RFC 7296 §1.4.1）。勉強会で見た Active SAs: 2 はこの対のこと</text>\n<text x=\"20\" y=\"1814\" font-size=\"10\" fill=\"#6b7280\">「フェーズ 1・フェーズ 2」は IKEv1 の言い方。IKEv2 では IKE_SA_INIT と IKE_AUTH の 2 往復で、管理用の SA と最初のデータ用 SA まで作ってしまう（RFC 7296 §1.2）</text>\n<text x=\"20\" y=\"1830\" font-size=\"10\" fill=\"#6b7280\">　CREATE_CHILD_SA を使うのは、データ用の SA を 2 本目以降足すときと、寿命が来て作り直すとき（RFC 7296 §1.3）。IKEv2 は 2 段階に分かれていない</text>\n<text x=\"20\" y=\"1846\" font-size=\"10\" fill=\"#6b7280\">古い方式について: IKEv1（RFC 2409）と、その土台の RFC 2408・2407 は Historic（役割を終えた文書）に移された（RFC 9395）。勉強会の crypto isakmp の設定は IKEv1 側</text>\n<text x=\"20\" y=\"1862\" font-size=\"10\" fill=\"#6b7280\">DH グループ 1（768 ビット）は MUST NOT、グループ 2（1024 ビット）は SHOULD NOT、グループ 14（2048 ビット）が MUST（RFC 8247 §2.4）</text>\n<text x=\"20\" y=\"1878\" font-size=\"10\" fill=\"#6b7280\">勉強会で使った group 1 は、この表では「使ってはいけない」側にあたる</text>\n<text x=\"20\" y=\"1894\" font-size=\"10\" fill=\"#6b7280\">同じく IKEv2 では 3DES が MAY まで下がり、SHA-1 を使う鍵生成は MUST-（SHA-1 への攻撃を理由に格下げ）（RFC 8247 §2.1・§2.2）</text>\n<text x=\"20\" y=\"1910\" font-size=\"10\" fill=\"#6b7280\">出典（IKEv2 の段取り・ポート番号・SA の対）: RFC 7296 https://www.rfc-editor.org/rfc/rfc7296</text>\n<text x=\"20\" y=\"1926\" font-size=\"10\" fill=\"#6b7280\">出典（IKEv1 が Historic に移されたこと）: RFC 9395 https://www.rfc-editor.org/rfc/rfc9395</text>\n<text x=\"20\" y=\"1942\" font-size=\"10\" fill=\"#6b7280\">出典（DH グループと方式の新旧）: RFC 8247 https://www.rfc-editor.org/rfc/rfc8247</text>\n<text x=\"20\" y=\"1958\" font-size=\"10\" fill=\"#6b7280\">未検証: 「守る通信が実際に来てから打合せを始める」は、勉強会で初回の通信をするまで状態が ACTIVE にならなかった観察を一般化したもの。この動きを定めた一次資料は確認できていない</text>\n<text x=\"20\" y=\"1974\" font-size=\"10\" fill=\"#6b7280\">未検証: 上の帯のフェーズ 1・フェーズ 2 の往復は、IKEv1 のメインモードの段取りを 1 往復ずつに単純化して描いている</text>\n<text x=\"20\" y=\"1990\" font-size=\"10\" fill=\"#6b7280\">　　　　実際の通信の数と、どの欄がどこまで守られるかは、この図では確かめていない</text>\n</svg>\n## 図 11・図 9 との接続","line":61,"sources":["src_1","src_2","src_3"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_18ab2a","type":"paragraph","markdown":"図 11 の ②「送信用の SA で暗号化する」の前に、その SA を作る往復が入ります。\n図 10・図 11・図 12 の 3 枚で 1 つの流れになります。","text":"図 11 の ②「送信用の SA で暗号化する」の前に、その SA を作る往復が入ります。\n図 10・図 11・図 12 の 3 枚で 1 つの流れになります。","line":332,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_efab08","type":"paragraph","markdown":"図 9 の行の並びが、ここでもう一度出てきます。\nフェーズ 2 で「守る通信の範囲」として合意の材料になり、両側で食い違うと通りません。\nつながらないときの切り分けは、この 2 段階に対応します。\nセッションが DOWN のままならフェーズ 1 で、方式の候補・事前共有鍵・相手の IP のどれかが両側で違います。\nフェーズ 1 は上がるのに通らないならフェーズ 2 で、守る通信の並びが両側で食い違っています。","text":"図 9 の行の並びが、ここでもう一度出てきます。\nフェーズ 2 で「守る通信の範囲」として合意の材料になり、両側で食い違うと通りません。\nつながらないときの切り分けは、この 2 段階に対応します。\nセッションが DOWN のままならフェーズ 1 で、方式の候補・事前共有鍵・相手の IP のどれかが両側で違います。\nフェーズ 1 は上がるのに通らないならフェーズ 2 で、守る通信の並びが両側で食い違っています。","line":335,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_58d337","type":"paragraph","markdown":"図 1 でルーティングテーブルの行を人が書いたのと同じで、方式・鍵・守る範囲は人が両側で揃えます。","text":"図 1 でルーティングテーブルの行を人が書いたのと同じで、方式・鍵・守る範囲は人が両側で揃えます。","line":341,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_703626","type":"heading","depth":2,"markdown":"## 未検証・注意","text":"未検証・注意","line":343,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_cdeca1","type":"list","markdown":"- 「守る通信が実際に来てから打合せを始める」は、勉強会で初回の通信をするまで状態が ACTIVE にならず、SA の数も 0 のままだった観察を一般化したものです。この動きを定めた一次資料は確認できていません。\n- 図の帯では、フェーズ 1 とフェーズ 2 を 1 往復ずつに単純化して描いています。実際の通信の数と、どの欄がどこまで守られるかは確かめていません。フェーズ 1 の途中で中身が守られるようになる切り替わりの位置も、図では大まかにしか描けていません。\n- 「フェーズ 1・フェーズ 2」は IKEv1 の言い方です。勉強会が使ったのが IKEv1 だったので、図もその言葉で描いています。③ の往復は IKEv1 のメインモードの段取りです。\n- IKEv2 では段取りが違います。IKE\\_SA\\_INIT と IKE\\_AUTH の 2 往復で、管理用の SA と最初のデータ用 SA まで作ってしまいます。CREATE\\_CHILD\\_SA を使うのは、データ用の SA を 2 本目以降足すときと、寿命が来て作り直すときです。フェーズ 1 を IKE\\_SA\\_INIT と IKE\\_AUTH、フェーズ 2 を CREATE\\_CHILD\\_SA に対応づける読み方はできません。\n- IKEv1 は「非推奨」ではなく、Historic（役割を終えた文書）に移されました。RFC 2409 と、その土台の RFC 2408・RFC 2407 が対象です。\n- 古い方式について書くとき、参照した表は IKEv2 向けのものです。勉強会が使った IKEv1 の設定を、IKEv2 の表で評価していることになります。その表では DH グループ 1（768 ビット）が MUST NOT、グループ 2（1024 ビット）が SHOULD NOT、グループ 14（2048 ビット）が MUST、グループ 19 が SHOULD です。3DES は MAY まで下がり、SHA-1 を使う鍵生成は MUST- です。勉強会で使ったグループ 1 は、この表では使ってはいけない側にあたります。\n- 事前共有鍵の値、SPI の値、鍵の寿命の実数は書いていません。","text":"「守る通信が実際に来てから打合せを始める」は、勉強会で初回の通信をするまで状態が ACTIVE にならず、SA の数も 0 のままだった観察を一般化したものです。この動きを定めた一次資料は確認できていません。図の帯では、フェーズ 1 とフェーズ 2 を 1 往復ずつに単純化して描いています。実際の通信の数と、どの欄がどこまで守られるかは確かめていません。フェーズ 1 の途中で中身が守られるようになる切り替わりの位置も、図では大まかにしか描けていません。「フェーズ 1・フェーズ 2」は IKEv1 の言い方です。勉強会が使ったのが IKEv1 だったので、図もその言葉で描いています。③ の往復は IKEv1 のメインモードの段取りです。IKEv2 では段取りが違います。IKE_SA_INIT と IKE_AUTH の 2 往復で、管理用の SA と最初のデータ用 SA まで作ってしまいます。CREATE_CHILD_SA を使うのは、データ用の SA を 2 本目以降足すときと、寿命が来て作り直すときです。フェーズ 1 を IKE_SA_INIT と IKE_AUTH、フェーズ 2 を CREATE_CHILD_SA に対応づける読み方はできません。IKEv1 は「非推奨」ではなく、Historic（役割を終えた文書）に移されました。RFC 2409 と、その土台の RFC 2408・RFC 2407 が対象です。古い方式について書くとき、参照した表は IKEv2 向けのものです。勉強会が使った IKEv1 の設定を、IKEv2 の表で評価していることになります。その表では DH グループ 1（768 ビット）が MUST NOT、グループ 2（1024 ビット）が SHOULD NOT、グループ 14（2048 ビット）が MUST、グループ 19 が SHOULD です。3DES は MAY まで下がり、SHA-1 を使う鍵生成は MUST- です。勉強会で使ったグループ 1 は、この表では使ってはいけない側にあたります。事前共有鍵の値、SPI の値、鍵の寿命の実数は書いていません。","line":345,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_240080","type":"heading","depth":2,"markdown":"## 出典","text":"出典","line":353,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_e7f307","type":"list","markdown":"- 勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）\n- [RFC 7296: Internet Key Exchange Protocol Version 2 (IKEv2)](https://www.rfc-editor.org/rfc/rfc7296) — §1.2 で IKE\\_SA\\_INIT が方式の合意と鍵の材料の交換、IKE\\_AUTH が「authenticate the previous messages, exchange identities and certificates, and establish the first Child SA」。§1.3 で CREATE\\_CHILD\\_SA は新しい Child SA の作成と作り直し。§1.4.1「ESP and AH SAs always exist in pairs, with one SA in each direction」。§2 の UDP 500 と §2.23 の 4500\n- [RFC 9395: Deprecation of the Internet Key Exchange Version 1 (IKEv1) Protocol and Obsoleted Algorithms](https://www.rfc-editor.org/rfc/rfc9395) — IKEv1 は deprecate され、RFC 2407・2408・2409 は Historic に移された\n- [RFC 8247: Algorithm Implementation Requirements and Usage Guidance for IKEv2](https://www.rfc-editor.org/rfc/rfc8247) — IKEv2 向けの表。§2.1 で ENCR\\_3DES は MAY、§2.2 で PRF\\_HMAC\\_SHA1 は MUST-、§2.4 で DH グループ 1 は MUST NOT、グループ 2 は SHOULD NOT、グループ 14 は MUST、グループ 19 は SHOULD","text":"勉強会での本人の観察（2026-09-13 実機ハンズオン。資料は非公開）RFC 7296: Internet Key Exchange Protocol Version 2 (IKEv2) — §1.2 で IKE_SA_INIT が方式の合意と鍵の材料の交換、IKE_AUTH が「authenticate the previous messages, exchange identities and certificates, and establish the first Child SA」。§1.3 で CREATE_CHILD_SA は新しい Child SA の作成と作り直し。§1.4.1「ESP and AH SAs always exist in pairs, with one SA in each direction」。§2 の UDP 500 と §2.23 の 4500RFC 9395: Deprecation of the Internet Key Exchange Version 1 (IKEv1) Protocol and Obsoleted Algorithms — IKEv1 は deprecate され、RFC 2407・2408・2409 は Historic に移されたRFC 8247: Algorithm Implementation Requirements and Usage Guidance for IKEv2 — IKEv2 向けの表。§2.1 で ENCR_3DES は MAY、§2.2 で PRF_HMAC_SHA1 は MUST-、§2.4 で DH グループ 1 は MUST NOT、グループ 2 は SHOULD NOT、グループ 14 は MUST、グループ 19 は SHOULD","line":355,"sources":["src_1","src_2","src_3"],"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_1f7c1f","type":"heading","depth":2,"markdown":"## 関連","text":"関連","line":360,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}},{"id":"blk_147e61","type":"list","markdown":"- [ネットワーク\\_INDEX](/notes/nw-basics-index) — 連載の目次\n\n- 連載の入口: [ネットワーク\\_00\\_3層で言葉を置く](/notes/nw-basics-00-three-layers)（`/notes/nw-basics-00-three-layers`）\n\n- 前の記事（図 11）: [ネットワーク\\_11\\_IPsec](/notes/nw-basics-11-ipsec)（`/notes/nw-basics-11-ipsec`）\n\n- 守る通信を選ぶ行の並び: [ネットワーク\\_09\\_ACL](/notes/nw-basics-09-acl)（`/notes/nw-basics-09-acl`）\n\n- 包む形そのもの: [ネットワーク\\_10\\_GREトンネル](/notes/nw-basics-10-gre)（`/notes/nw-basics-10-gre`）\n\n- 次の記事（図 13）: [ネットワーク\\_13\\_OSPF](/notes/nw-basics-13-ospf)（`/notes/nw-basics-13-ospf`）","text":"ネットワーク_INDEX — 連載の目次連載の入口: ネットワーク_00_3層で言葉を置く（/notes/nw-basics-00-three-layers）前の記事（図 11）: ネットワーク_11_IPsec（/notes/nw-basics-11-ipsec）守る通信を選ぶ行の並び: ネットワーク_09_ACL（/notes/nw-basics-09-acl）包む形そのもの: ネットワーク_10_GREトンネル（/notes/nw-basics-10-gre）次の記事（図 13）: ネットワーク_13_OSPF（/notes/nw-basics-13-ospf）","line":362,"lineage":[],"authoredBy":{"kind":"human","id":"owner","label":"ぴぐお"}}],"sources":[{"id":"src_1","url":"https://www.rfc-editor.org/rfc/rfc7296","title":"RFC 7296: Internet Key Exchange Protocol Version 2 (IKEv2)","accessed":"2026-09-14","kind":"secondary"},{"id":"src_2","url":"https://www.rfc-editor.org/rfc/rfc9395","title":"RFC 9395: Deprecation of the Internet Key Exchange Version 1 (IKEv1) Protocol and Obsoleted Algorithms","accessed":"2026-09-14","kind":"secondary"},{"id":"src_3","url":"https://www.rfc-editor.org/rfc/rfc8247","title":"RFC 8247: Algorithm Implementation Requirements and Usage Guidance for IKEv2","accessed":"2026-09-14","kind":"secondary"}],"errata":[]}