點對點隧道協定 (PPTP) 將 PPP 封包封裝於 IP 網路中,透過 TCP 1723 建立控制通道、GRE (協定 47) 承載資料隧道。當 VPN 連線失敗、斷線、傳輸異常時,標準 Ping/ICMP 無法驗證 PPTP 專用平面。Windows 2000 Support Tools 提供成對工具:Pptpsrv.exe (伺服端)、Pptpclnt.exe (用戶端),協同模擬 PPTP 交握與資料傳輸,精準定斷故障層級。
Pptpsrv.exe → 進入監聽狀態,顯示 Waiting for connection on TCP port 1723...Pptpclnt.exe [ServerName|IP] → 發起連線。Connection established with client!
Data received from client: ---> abcdefghijklmnopqrstuvwxyz
Sending 'Reply from server' to client.
Establishing GRE socket test...
Receiving GRE packets (protocol 47)...
Total GRE packets received = 1
Total GRE packets received = 2
...
Total GRE packets received = 5
Test completed.
Initializing socket...
Resolving host info...
Host info resolved successfully.
Enter test data (<255 chars): ---> abcdefghijklmnopqrstuvwxyz
Successfully connected to PPTP via TCP port 1723.
Sending data to server...
Waiting for send completion...
Received reply: ---> Hello, there! This is a reply from the server.
TCP/PPTP test successful.
Closing socket...
Establishing GRE test socket...
Total GRE packets sent = 1
...
Total GRE packets sent = 5
Verify server received GRE packets.
Closing socket.
Test completed.
| 現象 | 可能成因 | 排查方向 |
|---|---|---|
| TCP 1723 連線失敗 | 防火牆封鎖、PPTP 服務未啟動、IP/主機名錯誤 | Telnet 1723、檢查 RRAS 服務、驗證 DNS/WINS |
| TCP 連線成功但 GRE 收發為 0 | 路由器/防火牆未開放 IP 協定 47、NAT 裝置不支援 GRE 穿透 | 啟用 GRE ALG、改用 L2TP/IPsec、DMZ 測試 |
| GRE 單向收發 (僅送出/僅收到) | 非對稱路由、單向防火牆規則、MTU 過大導致分片丟失 | 追蹤路由、降低 MTU (1400)、檢查雙向規則 |
| 資料內容不符/亂碼 | 加密協商失敗 (MPPE)、封包損壞 | 檢查加密設定一致性、抓包分析 |
工具可於 Win2000/NT/Win98 運行,不可於 Win95。故障歸類為:
@echo off
rem 定期檢查站點間 PPTP 隧道健康度
set SERVER=10.1.1.1
set LOG=D:\Logs\pptp_ping_%date:~-4,4%%date:~-10,2%%date:~-7,2%.log
Pptpclnt.exe %SERVER% >> %LOG% 2>&1
if errorlevel 1 (
echo [%date% %time%] PPTP Tunnel FAILED >> %LOG%
rem 觸發告警 (Email/SNMP/EventLog)
eventcreate /T ERROR /ID 5000 /L APPLICATION /SO "PPTP_Monitor" /D "Tunnel to %SERVER% down"
)
Pptpclnt/Pptpsrv 以「雙端協同、雙平面驗證 (TCP 控制 + GRE 資料)」設計,精準切割 PPTP 故障域。網管應將其納入 VPN 部署驗收標準作業程序 (SOP) 與日常巡檢腳本,實現「主動發現、精準定位、快速恢復」。
SCSI 硬碟安裝 Windows 2000 關鍵步驟:F6 載入第三方驅動與 DOS 光碟機必備
在啟用終端服務的 Windows Server 2003/2000 上安裝 Office 2003 完整教學
Windows 2000 支援工具診斷系列常見問題解析:術語查詢、參數差異與 cmd.exe 進階用法
Windows Server 2003 優化設定精選 7 項 (服務、登入、資料夾重導向、虛擬記憶體、環境變數、驅動備份)
Windows 2000 Outlook Express 5.0 新功能總覽:多身分、Hotmail、離線同步、聯絡人窗格、強化規則、數位簽章、IMAP 草稿
Windows Server 2003 關閉 NetBIOS over TCP/IP 配置指南:適用條件與潛在影響完整分析