Tunneling ในความปลอดภัยเครือข่าย - คำศัพท์ที่เกี่ยวข้องและเทคโนโลยี
Tunneling คืออะไร?
Tunneling (การสร้างอุโมงค์) คือ เทคนิค Encapsulation (ห่อหุ้ม) ข้อมูลของโปรโตคอลหนึ่ง (Passenger Protocol) ภายในโปรโตคอลอีกตัว (Transport Protocol) เพื่อส่งผ่านเครือข่ายที่ไม่รองรับโปรโตคอลต้นทางโดยตรง หรือเพื่อ ความปลอดภัย (Encryption) และ การแยกトラฟฟิก (Isolation)
คำที่ใช้แทน/เกี่ยวข้องกับ Tunneling (Synonyms & Related Terms)
| คำศัพท์ | ความหมาย / บริบท | ความสัมพันธ์กับ Tunneling | ||
|---|---|---|---|---|
| Encapsulation | การห่อหุ้ม Header + Payload ของโปรโตคอลหนึ่งในอีกโปรโตคอลหนึ่ง | กลไกหลักของ Tunneling (Tunneling = Encapsulation + Routing) | ||
| Port Forwarding | การส่งต่อ Port จากเครื่องหนึ่งไปอีกเครื่อง (SSH -L/-R/-D) | Application-layer Tunneling (SSH Tunneling) | ||
| VPN (Virtual Private Network) | เครือข่ายส่วนตัวเสมือนจริงบนโครงสร้างสาธารณะ | ใช้ Tunneling เป็นพื้นฐาน (VPN = Tunnel + Encryption + Authentication) | ||
| Overlay Network | เครือข่ายเสมือนบน Underlay Network (VXLAN, Geneve, GRE) | Tunneling เป็น Mechanism สร้าง Overlay | ||
| Conduit / Pipe | ทางสื่อสารเสมือน | คำอธิบายลักษณะ Tunnel | ||
| Encrypted Tunnel / Secure Tunnel | Tunnel ที่มีการเข้ารหัส (IPsec, WireGuard, TLS) | Subset ของ Tunneling เน้น Security | ||
| Carrier Protocol / Transport Protocol | โปรโตคอลที่บรรทุก (Outer Header) - IP, UDP, TCP, GRE | ส่วนประกอบของ Tunnel | ||
| Passenger Protocol / Payload Protocol | โปรโตคอลที่ถูกบรรทุก (Inner Header) - IP, Ethernet, PPP | ส่วนประกอบของ Tunnel |
| Protocol | Layer | Encryption | Authentication | Use Case |
|---|---|---|---|---|
| IPsec ESP (Tunnel Mode) | L3 | ✅ AES-GCM, ChaCha20-Poly1305 | ✅ PSK, Cert, EAP | Site-to-Site VPN, Remote Access |
| WireGuard | L3 | ✅ ChaCha20-Poly1305 (Modern) | ✅ Public Key (Curve25519) | Modern VPN, Kernel-space, Fast |
| OpenVPN | L2/L3 | ✅ OpenSSL (AES-GCM) | ✅ Cert, User/Pass, 2FA | Remote Access, Site-to-Site |
| GRE (Generic Routing Encapsulation) | L3 | ❌ None (ต้องรวม IPsec) | ❌ None | Multicast, Routing Protocols over VPN, Legacy |
| VXLAN (Virtual Extensible LAN) | L2 over L3 | ❌ None (ต้องรวม IPsec/MACsec) | ❌ None | Data Center Overlay, Multi-tenant, Kubernetes CNI |
| Geneve | L2 over L3 | ❌ None | ❌ None | Next-gen Overlay (Extensible TLV), AWS/GCP/Azure |
| SSH Tunneling (-L, -R, -D) | L4/L7 | ✅ SSH Encryption | ✅ Key, Pass, Cert | Port Forwarding, SOCKS Proxy, Bastion Access |
| SSL/TLS VPN (HTTPS Portal) | L7 | ✅ TLS 1.2/1.3 | ✅ Cert, SAML, OIDC, MFA | Clientless Remote Access, Web Apps |
| L2TP/IPsec | L2 | ✅ IPsec ESP | ✅ PSK, Cert, EAP | Legacy Remote Access (Native OS Support) |
| PPTP | L2 | ⚠️ MPPE (Weak/Broken) | ⚠️ MS-CHAPv2 (Vulnerable) | ❌ Deprecated - ห้ามใช้ |
Tunneling ในบริบทความปลอดภัย (Security Implications)
- Good: VPN (Privacy, Access Control), Micro-segmentation (VXLAN/Geneve + Encryption), SSH Bastion (Admin Access)
- Bad (Threat): DNS Tunneling (Data Exfil, C2), HTTPS Tunneling (Bypass Proxy/Firewall), ICMP Tunneling, Malware C2 over Legitimate Protocols
- Detection: Deep Packet Inspection (DPI), TLS Inspection, Flow Analysis (Entropy, Packet Size, Frequency), DNS Analytics, UEBA
Split Tunneling vs Full Tunneling
- Full Tunnel: ทุกトラฟฟิกไปผ่าน VPN Tunnel (ปลอดภัยกว่า, ใช้ Bandwidth มากกว่า)
- Split Tunnel: เฉพาะトラฟฟิกองค์กร (Corporate Routes) ไป VPN, อื่นๆ (Internet, Streaming) ไป Local Internet (ประหยัด Bandwidth, Latency ต่ำกว่า)
- Inverse Split Tunnel: เฉพาะトラฟฟิกเสี่ยง (Unknown, High-risk) ส่งไป VPN/Inspection, ที่เหลือ Direct