โปรโตคอลความปลอดภัยเครือข่าย (Network Security Protocols) คืออะไร?
โปรโตคอลความปลอดภัยเครือข่ายคือชุดกฎและกระบวนการที่ใช้การเข้ารหัส (Cryptography) เพื่อปกป้องข้อมูลระหว่างการส่งผ่านเครือข่ายสาธารณะ ป้องกันการดักฟัง ปรับเปลี่ยน หรือปลอมแปลงข้อมูล
หมวดหมู่หลักของโปรโตคอลเครือข่าย
- Communication Protocols: TCP/IP, HTTP, UDP, FTP, SMTP (ส่งข้อมูล)
- Management Protocols: SNMP, ICMP (จัดการ/ตรวจสอบเครือข่าย)
- Security Protocols: SSL/TLS, IPsec, SSH, HTTPS, SFTP, Kerberos (ปกป้องข้อมูล)
โปรโตคอลความปลอดภัยสำคัญที่ควรรู้
1. SSL/TLS (Secure Sockets Layer / Transport Layer Security)
- ใช้สำหรับ: HTTPS, SMTPS, IMAPS, FTPS
- TLS เป็นผู้สืบทอดของ SSL (SSL 3.0 → TLS 1.0 → 1.1 → 1.2 → 1.3)
- ให้: Encryption, Authentication, Integrity
2. IPsec (Internet Protocol Security)
- ทำงานที่ Layer 3 (Network Layer)
- โหมด: Transport Mode (เข้ารหัส Payload) / Tunnel Mode (เข้ารหัสทั้ง Packet)
- ใช้สำหรับ: Site-to-Site VPN, Remote Access VPN
- โปรโตคอลหลัก: AH (Authentication Header), ESP (Encapsulating Security Payload), IKE (Internet Key Exchange)
3. SSH (Secure Shell)
- แทนที่ Telnet, rlogin, rsh
- พอร์ต 22, ใช้ Public Key Authentication หรือ Password
- ใช้สำหรับ: Remote CLI, SFTP, SCP, Port Forwarding
4. HTTPS (HTTP over TLS)
- พอร์ต 443, ใช้ TLS เข้ารหัส HTTP Traffic
- Certificate จาก CA 受信ได้ ใช้สำหรับเว็บไซต์, API, Web Services
5. SFTP (SSH File Transfer Protocol)
- ไม่ใช่ FTP over SSL (FTPS) — SFTP ใช้ SSH Channel เดียวสำหรับ Command และ Data
- พอร์ต 22, รองรับ Public Key Auth, Resume Transfer
6. Kerberos
- Network Authentication Protocol ใช้ Ticket (Ticket Granting Ticket)
- ใช้ใน Windows Active Directory, Linux/Unix (MIT/Heimdal)
- ป้องกัน Replay Attack, ให้ Single Sign-On (SSO)
7. SNMPv3 (Simple Network Management Protocol v3)
- เพิ่ม Authentication (MD5/SHA) และ Privacy (DES/AES) ซึ่ง v1/v2c ไม่มี
- ใช้สำหรับจัดการอุปกรณ์เครือข่ายอย่างปลอดภัย
8. OSPF Authentication
- ป้องกัน Route Injection Attack
- รองรับ: Simple Password, MD5, HMAC-SHA (OSPFv3 ใช้ IPsec)
ตารางเปรียบเทียบสรุป
| โปรโตคอล | Layer | พอร์ต | ใช้สำหรับ |
|---|---|---|---|
| TLS/SSL | 4-7 | 443, 993, 995, 465, 636 | Web, Email, LDAP, Database |
| IPsec | 3 | 50 (ESP), 51 (AH), 500/4500 (IKE) | VPN, Site-to-Site |
| SSH | 7 | 22 | Remote Admin, File Transfer |
| 7 | 88 | Enterprise Authentication | |
| SNMPv3 | 7 | 161/162 | Network Management |
แนวทางเลือกใช้งาน
- เว็บ/API: TLS 1.2/1.3 (บังคับ HTTPS)
- VPN ระหว่างสำนักงาน: IPsec IKEv2 หรือ WireGuard
- จัดการเซิร์ฟเวอร์ Linux: SSH Key-based Auth (ปิด Password Auth)
- เครือข่ายองค์กร: Kerberos + SNMPv3
- โอนไฟล์ปลอดภัย: SFTP (ไม่ใช่ FTP/FTPS)