1. 程式人生 > >PPTP、L2TP、VPN簡介(1)

PPTP、L2TP、VPN簡介(1)

接上一節的內容:

什麼是PPTP?

下面是微軟官方的解釋(最早是微軟提交的草案):

Point-to-Point Tunneling Protocol (PPTP) is a network protocol thatenables the secure transfer of data from a remote client to a private enterprise server by creating a virtual private network (VPN) acrossTCP/IP-based data networks. PPTP supports on-demand, multi-protocol, virtual private networking over public networks such as the Internet.

The networking technology of PPTP is an extension of the remote access Point-to-Point protocol defined in the document by the Internet Engineering Task Force (IETF) titled "The Point-to-Point Protocol for the Transmission of Multi-Protocol Datagrams over Point-to-Point Links," referred to as RFC 1171.PPTP is a network protocol that encapsulates PPP packets into IP datagrams for transmiss

ion over the Internet or other public TCP/IP-based networks. PPTP can also be used in private LAN-to-LAN networking.

    解釋:PPTP是能夠用於進行安全傳輸的協議(依靠建立VPN網路),是一個PPP協議的擴充套件協議,與PPP資料鏈路層不同的是,其在TCP/IP網路的IP資料包中封裝了PPP的資料包(比如有撥號認證、IP分配等)。PPTP也能夠在私有的LAN-To-LAN網路中使用。 

因此,PPTP和VPN密不可分,下面從三個方面介紹:

  • PPTP and secure, virtual private networking (VPN)

  • architecture of PPTP

  • PPTP security features

PPTP and Virtual Private Networking

The PPTP protocol is included with Windows NT® Server version4.0 and Windows NT Workstation version 4.0 operating systems. Computers running these operating can use the PPTP protocol to securely connect to a private network as a remote access client by using a public data network such as the Internet. In other words, PPTP enables on-demand, virtual private networks over the Internet or other public TCP/IP-based data networks.PPTP can also be used by computers connected to a LAN to create a virtual private network across the LAN.

An important feature in the use of PPTP is its support for virtual private networking by using public-switched telephone networks (PSTNs). PPTP simplifies and reduces the cost of deploying an enterprise-wide, remote access solution for remote or mobile users because it provides secure and encryptedcommunications over public telephone lines and the Internet. PPTP eliminates the need for expensive, leased-line or private enterprise-dedicated communication servers because you can use PPTP over PSTN lines.

Generally, there are three computers involved in every PPTP deployment:

  • a PPTP client   (PPTP客戶端

  • a network access server (網路接入伺服器

  • a PPTP server   (PPTP伺服器

  解釋:Windows NT 4.0以上的作業系統加入了PPTP協議的支援。PPTP可以提供遠端接入的安全加密傳輸方案,成本低。

Note: You do not need the network access server in order to create a PPTP tunnel when using a PPTP client connected to a LAN to connect to a PPTP server connected to the same LAN. 解釋:如果在同一個區域網中的兩臺電腦相連,不需要網路接入的伺服器

The following section describes a typical PPTP scenario using these computers and explains how they relate to each other and then fully defines each of these components.

Typical PPTP Scenario  (PPTP一般應用場景)

A typical deployment of PPTP starts with a remote or mobile PPTP client that needs access to a private enterprise LAN by using a local Internet Service Provider (ISP). Clients using computers running Windows NT Server version 4.0 or Windows NT Workstation version 4.0 use Dial-up Networking and the remote access protocol PPP to connect to an ISP.

The client connects to a network access server (NAS) at the ISP facility. (Network access servers are also referred to as front-end processors (FEPs), dial-in servers or point-of-presence (POP) servers.) Once connected, the client can send and receive packets over the Internet. The network access server uses the TCP/IP protocol for all traffic to the Internet.

After the client has made the initial PPP connection to the ISP, a second Dial-Up Networking call is made over the existing PPP connection. Data sent using this second connection is in the form of IP datagrams that contain PPP packets, referred to as encapsulated PPP packets.

The second call creates the virtual private networking (VPN) connection to a PPTP server on the private enterprise LAN, this is referred to as atunnel. This is shown in the following figure:


Figure1

1. Client首先通過第一次PPP撥號連線到ISP上,保證能夠訪問internet。

2. 通過PPP連線到ISP後,在PPP連線的基礎上再一次撥號。第二次連線殘生了VPN連線到PPTP服務上,被稱作為隧道。

Tunneling is the process of sending packets to a computer on a private network by routing them over some other network, such as the Internet. The other network routers cannot access the computer that is on the private network. However, tunneling enables the routing network to transmit the packet to an intermediary computer, such as a PPTP server, that is connected to the both the routing network and the private network. Both the PPTP client and the PPTP server use tunneling to securely route packets to a computer on the private network by using routers that only know the address of the private network intermediary server.

When the PPTP server receives the packet from the routing network, it sends it across the private network to the destination computer. The PPTP server does this by processing the PPTP packet to obtain the private network computer name or address information in the encapsulated PPP packet. Note that the encapsulated PPP packet can contain multi-protocol data such as TCP/IP, IPX, or NetBEUI protocols. Because the PPTP server is configured to communicate across the private network by using private network protocols, it is able to read multi-protocol packets.

The following figure illustrates the multi-protocol support built-into PPTP. A packet sent from the PPTP client to the PPTP server passes through the PPTP tunnel to a destination computer on the private network.


Figure 2: - Connecting a Dial-Up Networking PPTP Client to the Private Network

灰色的資料被加密。

PPTP encapsulates the encrypted and compressed PPP packets into IP datagrams for transmission over the Internet. These IP datagrams are routed over the Internet until they reach the PPTP server that is connected to the Internet and the private network. The PPTP server disassembles the IP datagram into a PPP packet and then decrypts the PPP packet using the network protocol of the private network. As mentioned earlier, the network protocols on the private network that are supported by PPTP are IPX, NetBEUI, or TCP/IP.

PPTP Clients

A computer that supports the PPTP network protocol, e.g., a Microsoft client, can connect to a PPTP server intwo ways:

  • by using an ISP's network access server that supports inbound PPP connections(Figure1 兩次撥號)

  • by using a physical TCP/IP-enabled LAN connection to connect to a PPTP server (在區域網物理連線建立的基礎上,一次撥號)

PPTP clients that use an ISP's network access server must be configured with a modem and a VPN device to make the separate connections to the ISP and the PPTP server. Thefirst connection is a dial-up connection using the PPP protocol over the modem to an Internet service provider. Thesecond connection is a VPN connection using PPTP, over the modem and the ISP connection, to tunnel across the Internet to a VPN device on the PPTP server. The second connection requires the first connection because the tunnel between the VPN devices is established by using the modem and PPP connection to the Internet.

(另外一種)The exception to this two-connection requirement is using PPTP to create a virtual private network between computers physically connected to the private enterprise network LAN. In this scenario, a PPTP client isalready connected to the network and only uses Dial-Up Networking with a VPN device to create the connection to a PPTP server on theLAN.

PPTP packets from a remote access PPTP client and a local LAN PPTP client are processeddifferently. A PPTP packet from a remote access PPTP client is placed on the telecommunication device physical media, while the PPTP packet from a LAN PPTP client is placed on the network adapter physical media as illustrated in the following figure:


Windows 和Linux伺服器搭建VPN (PPTP、L2TP)非常方便,要怎麼樣搭建可以百度。如果應用IPSec VPN,客戶端需要額外安裝元件?(待證實)。下一節簡單介紹一下L2TP。

相關推薦

PPTPL2TPVPN簡介(1)

接上一節的內容: 什麼是PPTP? 下面是微軟官方的解釋(最早是微軟提交的草案): Point-to-Point Tunneling Protocol (PPTP) is a network protocol thatenables the secure transfer

你瞭解VPNPPTPL2TPOpenVPN協議嗎?

一、PPTP、L2TP、OpenVPN三種隧道協議的概念 1、PPTP(Point toPoint Tunneling Protocol,點對點隧道協議)預設埠號:1723 PPTP,即PPTF協議。該協議是在PPP協議的基礎上開發的一種新的增強型安全協議,支援多協議虛擬

關於pppPPPoEPPTPL2TPIPSec協議的簡單認識

1、PPP:(PPP:Point to Point Protocol) 點對點協議(PPP)為基於點對點連線的多協議自定址資料包的傳輸提供了一個標準方法。PPP 最初設計是為兩個對等結構之間的 IP 流量的傳輸提供一種封裝協議。在 TCP-IP 協議集中它是一種關於同步調製

點對點通訊資料鏈路層點對點鏈路PPPPPPOEPPTPL2TP-VPN簡介

PPP協議的特點 對於點對點的鏈路,點對點協議PPP協議是目前使用得最廣泛的資料鏈路層協議。我們知道,使用者接入因特網有多種途徑,如通過電話線撥號入網或各種寬頻入網,但不管怎樣,總是要通過某個因特網服務提供者ISP才能接入到因特網。從使用者計算機到ISP的鏈路所使用的資料鏈路層協議就是PPP協議,如圖4-

ubuntu centos debian環境下腳本一鍵自動開啟PPTPL2TP兩種VPN服務

ubuntu centos debian環境下腳本一鍵自動開啟pptp、l2tp兩種vpn服務 ubuntu centos debian環境下腳本一鍵自動開啟PPTP、L2TP兩種VPN服務親測可用http://blog.csdn.net/bahubali/article/

Linux基本服務——多種VPN(GREPPTPL2TP+IPSec)

VPN    網路隧道     搭建VPN:VPN有很多個版本GRE(Linux專用),PPTP(相容Windows和Linux),L2TP+IPSec(安全的加密)等 GRE--VPN  (要搭建VPN的兩個裝置都要進行,不過

Ubuntu伺服器下VPN搭建PPTPL2TP完整教程

       最近一段時間在給公司搭建遠端虛擬網路,就是VPN。貧僧是在對網路知識近乎為0的情況下,一臉懵逼的接下了這個工作。然後就是百度百度,谷歌谷歌,無數次出錯無數次崩潰,最後已經準備破罐子破摔不想繼續了。       我以為是領導手把手教我,誰知道是直接丟給我一個活讓

Atitit 標記語言ML(Markup Language) 目錄 1. 標記語言ML Markup Language 1 1.1. 簡介 1 2. 置標語言置標語言通常可以分為三類:標識性的過程

Atitit 標記語言ML(Markup Language)   目錄 1. 標記語言ML Markup Language 1 1.1. 簡介 1 2. 置標語言置標語言通常可以分為三類:標識性的、過程性的以及描述性的。 2 2.1.1. 摺疊標識性的置標語言(類似

Atitit 標記語言ML(Markup Language) 目錄 1. 標記語言ML Markup Language 1 1.1. 簡介 1 2. 置標語言置標語言通常可以分為三類:標識性的過程

Atitit 標記語言ML(Markup Language) 目錄 4. 應用 3 標記語言ML Markup Language 標記語言,是一種將文字以及文字相關的其他資訊結合起來,展現出關於文件結構和資料

HTML學習1簡介結構標記要求等

HTML學習1 什麼是 HTML? HTML 標籤 整體結構 開始標記和結尾標記 頭部內容 主體內容 標記 型別描述 基本框架結構 內容描述 格式標誌標籤 網頁表格

常見RAID的各級別的特性簡介(RAID015610)

什麼是RAID? 磁碟陣列(Redundant Arrays of Independent Drives,RAID),有“獨立磁碟構成的具有冗餘能力的陣列”之意。 磁碟陣列是由很多價格較便宜的磁碟,組合成一個容量巨大的磁碟組,利用個別磁碟提供資料所產生加

MyBatis 使用筆記(1) 簡介安裝配置

之前做專案的時候,接觸到伺服器端開發,當時伺服器是用SpringMVC做後臺服務 MyBatis做資料庫連線 Mysql資料庫 在那之前 我只接觸過JavaWeb的簡單的Servlet的基本用法,在邊學邊開發的過程中學了一部分SpringMVC和MyBatis的

【原創】運維基礎之Nginx(1簡介安裝使用

官方:http://nginx.org nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by

Libevent(1)— 簡介編譯配置

此文編寫的時候,使用到的 Libevent 為 2.0.21 Libevent 之跨平臺 在處理大量 SOCKET 連線時,使用 select 並不高效。各個系統都提供了處理大量 SOCKET 連線時的解決方案: Linux 下的 epoll()BSD 下的 kque

Microsoft .NET:Microsoft .NET之.net4.5.1簡介安裝使用方法之詳細攻略

.net4.5.1簡介     .NET是 Microsoft XML Web services 平臺。XML Web services 允許應用程式通過 Internet 進行通訊和共享資料,而不管所採用的是哪種作業系統、裝置或程式語言。Microsoft .NET 平臺提

【原創】算法基礎之Anaconda(1簡介安裝使用

https orf ati 2.7 容易 ice range gcc x86_64 Anaconda 2 官方:https://www.anaconda.com/ 一 簡介 The Most Popular Python Data Science Platform A

比特幣學習筆記——————1比特幣簡介

1.1 什麼是比特幣比特幣是由一系列概念和技術作為基礎構建的數字貨幣生態系統。狹義的“比特幣”代表系統中的貨幣單位,用於儲存和傳輸價值。使用者主要通過網際網路使用比特幣系統,當然其他網路也可以使用。比特幣協議以各種開源軟體的形式實現,這些軟體可以在膝上型電腦、智慧手機等多種裝

【原創】大數據基礎之Mesos(1簡介安裝使用

物理 variable 服務器集群 ast 過程 ould task pos 編譯 Mesos 1.7.1 官方:http://mesos.apache.org/ 一 簡介 Program against your datacenter like it’s a sin

【原創】運維基礎之Redis(1簡介安裝使用

lists 腳本 分享 ngs 參考 ports eos 運維基礎 lru redis 5.0.3 官方:https://redis.io/ 一 簡介 Redis is an open source (BSD licensed), in-memory data str

【原創】大數據基礎之Presto(1簡介安裝使用

epo embedded mach img ans 公司 mkdir redis running presto 0.217 官方:http://prestodb.github.io/ 一 簡介 Presto is an open source distrib