SlideShare a Scribd company logo
1 of 24
Download to read offline
VPNについて

                  野村裕佑




                   1
2012年2月29日水曜日
注意(免責)

          • VPNは製品や仕様ではない
          • 構築・管理した中で得た感覚です
          • ネットワーク管理の話がほとんどです

                   2
2012年2月29日水曜日
VPNとは

          • VPN:Virtual Private Network
                日本語訳:仮想閉域網

          • 拠点間のネットワーク接続や通信路の暗
                号化のために使われる

          • Private Networkの仮想化
                              3
2012年2月29日水曜日
VPNの疑問

          • 拠点間通信ってなにをするのs?
          • なぜ通信路が安全なの?
          • そもそもPrivate Networkってなに?

                        4
2012年2月29日水曜日
PrivateとPublic
                         Internet

                Public
                              GW
           Private
          (社内)


                   PC    PC            PC   PC


                                   5
2012年2月29日水曜日
Private Networkとは
          • Internetに対するいわゆるLAN(Local Area
                Network)側

          • 安全とされる。Internetとつながってい
                ないから。

          • (LAN内に悪い奴がいたら、残念でし
                た…)

                            6
2012年2月29日水曜日
インターネットつな
            がってますけど
          • Internetで情報をやりとりするためには
                グローバルIPアドレスが必要。

          • ローカルIPアドレスではInternetを介した
                通信ができない。(社内のみ)

          • ローカルIPアドレスとグローバルIPアド
                レスとは
                        7
2012年2月29日水曜日
ローカルIPアドレス
          • Private Network内で使えるIPアドレス。
                10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
          • Internetではルーティングされない。
          • Private NetworkとInternetが通信するため
                の仕組みがある

                → NAT, NAPT(APT, IP masquerade)


                                    8
2012年2月29日水曜日
NAT, NAPT
          • Network Address (and Port) Translation
          • ローカルIPアドレスをグローバルIPアド
                レスに変換する仕組み

          • 少数のグローバルIPアドレスをみんなで
                分け合う仕組み

          • (市販のルータではまとめて”NAT”と呼
                ぶ)
                             9
2012年2月29日水曜日
NAT
                                             グローバルIPアドレス
                          Internet            G1, G2を持っている


                Public                             対応表を管理
                              GW                  G1   192.168.1.11
            Private           1                   G2   192.168.1.14
  192.168.1.0/24
            11           12        13        14
                   PC    PC             PC    PC

       対応表にあるアドレスだけInternetと通信可能
                                   10
2012年2月29日水曜日
NAPT
                                             グローバルIPアドレス
                          Internet                G1を持っている


                Public                        対応表を管理(port毎)
                              GW             G1:4095 192.168.1.11:123
            Private           1              G1:4097 192.168.1.14:253
  192.168.1.0/24                             G1:4098 192.168.1.11:98
                                                s
            11           12        13        14
                   PC    PC             PC    PC

       対応表にあるアドレスだけInternetと通信可能
                                   11
2012年2月29日水曜日
NAPTの特徴
          • 少ないIPアドレスを使い回す(安価)
          • 通信時のみInternetとの通信経路ができる
                → 外部から接続できないのでF/W代わり

          • (管理者として)ルータのメモリ負荷が
                結構大きい


                        12
2012年2月29日水曜日
Private Networkは安全

          • パケットがGWを越えてそのまま外に出
                ることは無いから

          • NAPTにより(副次的に)外からの接続
                が制限されているから

          • 中に悪いやつがいないから
                           13
2012年2月29日水曜日
LANケーブルが届かない件

          • 同じ会社なのに、
          • ビルが増えた
          • 拠点が増えた
          • そもそもLANケーブルは数メートルから
                数キロ程度しか通信できない


                        14
2012年2月29日水曜日
拠点間接続
          • 同じ社内だし、同一Private Networkのよ
                うに自由に安全に接続したい

                        Internet




                  拠点A              拠点B

                           15
2012年2月29日水曜日
拠点間接続(専用線)
    宛先が192.168.2.0/24なら               宛先が192.168.1.0/24なら
           専用線に送出                         専用線に送出
     (拠点BのGWに転送)                       (拠点AのGWに転送)




                192.168.1.0/24        192.168.2.0/24
                    拠点A                   拠点B
                                 16
2012年2月29日水曜日
専用線の特徴
          • 品質と安全性は接続業者が保証
          • 高価
          • 契約や開通に時間がかかる
          • スイッチ切り替えるだけじゃないんです
                かプロバイダさん


                           17
2012年2月29日水曜日
VPN登場


          • 要するにローカルIPパケットをInternet経
                由で送れればいいんでしょ?




                        18
2012年2月29日水曜日
VPNの概念
    宛先が192.168.2.0/24なら                     宛先が192.168.1.0/24なら
       拠点BのGWに転送                              拠点AのGWに転送


                                 Internet




                192.168.1.0/24              192.168.2.0/24
                    拠点A                         拠点B
                                    19
2012年2月29日水曜日
ボクがかんがえたVPN
                             宛先:GW B

                            IPヘッダ IPヘッダ    データ


                     GW A                    GW B
    LAN:                                             LAN:
    192.168.1.0/24                                   192.168.2.0/24


                IPヘッダ   データ               IPヘッダ   データ

          宛先:192.168.2.21              宛先:192.168.2.21

         カプセル化:トンネリングの基礎的な概念
                                  20
2012年2月29日水曜日
ボクがかんがえたVPN
           の問題点
          • データ部分がPublicに流れる。Privateのつ
                もりがInternetで盗聴可能

          • 全く関係ない人がPrivate Network内にパ
                ケットを送ることが可能(GW用とロー
                カル用のIPヘッダを2つ付ければいい)


                           21
2012年2月29日水曜日
一般的なVPN
                        ・事前に互いを認証
                        ・通信を暗号化

  宛先が192.168.2.0/24なら                    宛先が192.168.1.0/24なら
     拠点BのGWに転送                             拠点AのGWに転送




                192.168.1.0/24        192.168.2.0/24
                    拠点A                   拠点B
                                 22
2012年2月29日水曜日
VPN実現方法
          •     IPsec(トンネルモード)
              •   IPパケットをカプセル化(L3)

          •     IPsec(トランスポートモード) + L2TP
              •   PPPパケットをカプセル化・PPPの機能を利用(L2)

              •   IPsecでIPペイロードだけを暗号化(L3)

          •     SoftEther/UT-VPN
              •   仮想NICと仮想HUBを作る(L2)

              •   EthernetフレームをSSL/TLSで転送(L4-)

          •     などなど……
                                    23
2012年2月29日水曜日
まとめ
          • VPN:Internet経由でPrivate Network同士
                のような通信をする技術

          • 専用線のようなもの
          • 実態は、Internetを介してローカルパケッ
                トを転送する技術(トンネル)

          • やり方は色々。IPsecがよく使われる
                          24
2012年2月29日水曜日

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

VPNについて

  • 1. VPNについて 野村裕佑 1 2012年2月29日水曜日
  • 2. 注意(免責) • VPNは製品や仕様ではない • 構築・管理した中で得た感覚です • ネットワーク管理の話がほとんどです 2 2012年2月29日水曜日
  • 3. VPNとは • VPN:Virtual Private Network 日本語訳:仮想閉域網 • 拠点間のネットワーク接続や通信路の暗 号化のために使われる • Private Networkの仮想化 3 2012年2月29日水曜日
  • 4. VPNの疑問 • 拠点間通信ってなにをするのs? • なぜ通信路が安全なの? • そもそもPrivate Networkってなに? 4 2012年2月29日水曜日
  • 5. PrivateとPublic Internet Public GW Private (社内) PC PC PC PC 5 2012年2月29日水曜日
  • 6. Private Networkとは • Internetに対するいわゆるLAN(Local Area Network)側 • 安全とされる。Internetとつながってい ないから。 • (LAN内に悪い奴がいたら、残念でし た…) 6 2012年2月29日水曜日
  • 7. インターネットつな がってますけど • Internetで情報をやりとりするためには グローバルIPアドレスが必要。 • ローカルIPアドレスではInternetを介した 通信ができない。(社内のみ) • ローカルIPアドレスとグローバルIPアド レスとは 7 2012年2月29日水曜日
  • 8. ローカルIPアドレス • Private Network内で使えるIPアドレス。 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 • Internetではルーティングされない。 • Private NetworkとInternetが通信するため の仕組みがある → NAT, NAPT(APT, IP masquerade) 8 2012年2月29日水曜日
  • 9. NAT, NAPT • Network Address (and Port) Translation • ローカルIPアドレスをグローバルIPアド レスに変換する仕組み • 少数のグローバルIPアドレスをみんなで 分け合う仕組み • (市販のルータではまとめて”NAT”と呼 ぶ) 9 2012年2月29日水曜日
  • 10. NAT グローバルIPアドレス Internet G1, G2を持っている Public 対応表を管理 GW G1 192.168.1.11 Private 1 G2 192.168.1.14 192.168.1.0/24 11 12 13 14 PC PC PC PC 対応表にあるアドレスだけInternetと通信可能 10 2012年2月29日水曜日
  • 11. NAPT グローバルIPアドレス Internet G1を持っている Public 対応表を管理(port毎) GW G1:4095 192.168.1.11:123 Private 1 G1:4097 192.168.1.14:253 192.168.1.0/24 G1:4098 192.168.1.11:98 s 11 12 13 14 PC PC PC PC 対応表にあるアドレスだけInternetと通信可能 11 2012年2月29日水曜日
  • 12. NAPTの特徴 • 少ないIPアドレスを使い回す(安価) • 通信時のみInternetとの通信経路ができる → 外部から接続できないのでF/W代わり • (管理者として)ルータのメモリ負荷が 結構大きい 12 2012年2月29日水曜日
  • 13. Private Networkは安全 • パケットがGWを越えてそのまま外に出 ることは無いから • NAPTにより(副次的に)外からの接続 が制限されているから • 中に悪いやつがいないから 13 2012年2月29日水曜日
  • 14. LANケーブルが届かない件 • 同じ会社なのに、 • ビルが増えた • 拠点が増えた • そもそもLANケーブルは数メートルから 数キロ程度しか通信できない 14 2012年2月29日水曜日
  • 15. 拠点間接続 • 同じ社内だし、同一Private Networkのよ うに自由に安全に接続したい Internet 拠点A 拠点B 15 2012年2月29日水曜日
  • 16. 拠点間接続(専用線) 宛先が192.168.2.0/24なら 宛先が192.168.1.0/24なら 専用線に送出 専用線に送出 (拠点BのGWに転送) (拠点AのGWに転送) 192.168.1.0/24 192.168.2.0/24 拠点A 拠点B 16 2012年2月29日水曜日
  • 17. 専用線の特徴 • 品質と安全性は接続業者が保証 • 高価 • 契約や開通に時間がかかる • スイッチ切り替えるだけじゃないんです かプロバイダさん 17 2012年2月29日水曜日
  • 18. VPN登場 • 要するにローカルIPパケットをInternet経 由で送れればいいんでしょ? 18 2012年2月29日水曜日
  • 19. VPNの概念 宛先が192.168.2.0/24なら 宛先が192.168.1.0/24なら 拠点BのGWに転送 拠点AのGWに転送 Internet 192.168.1.0/24 192.168.2.0/24 拠点A 拠点B 19 2012年2月29日水曜日
  • 20. ボクがかんがえたVPN 宛先:GW B IPヘッダ IPヘッダ データ GW A GW B LAN: LAN: 192.168.1.0/24 192.168.2.0/24 IPヘッダ データ IPヘッダ データ 宛先:192.168.2.21 宛先:192.168.2.21 カプセル化:トンネリングの基礎的な概念 20 2012年2月29日水曜日
  • 21. ボクがかんがえたVPN の問題点 • データ部分がPublicに流れる。Privateのつ もりがInternetで盗聴可能 • 全く関係ない人がPrivate Network内にパ ケットを送ることが可能(GW用とロー カル用のIPヘッダを2つ付ければいい) 21 2012年2月29日水曜日
  • 22. 一般的なVPN ・事前に互いを認証 ・通信を暗号化 宛先が192.168.2.0/24なら 宛先が192.168.1.0/24なら 拠点BのGWに転送 拠点AのGWに転送 192.168.1.0/24 192.168.2.0/24 拠点A 拠点B 22 2012年2月29日水曜日
  • 23. VPN実現方法 • IPsec(トンネルモード) • IPパケットをカプセル化(L3) • IPsec(トランスポートモード) + L2TP • PPPパケットをカプセル化・PPPの機能を利用(L2) • IPsecでIPペイロードだけを暗号化(L3) • SoftEther/UT-VPN • 仮想NICと仮想HUBを作る(L2) • EthernetフレームをSSL/TLSで転送(L4-) • などなど…… 23 2012年2月29日水曜日
  • 24. まとめ • VPN:Internet経由でPrivate Network同士 のような通信をする技術 • 専用線のようなもの • 実態は、Internetを介してローカルパケッ トを転送する技術(トンネル) • やり方は色々。IPsecがよく使われる 24 2012年2月29日水曜日