ACL (Access Control List) คืออะไร?
ACL คือรายการกฎ (Rules) ที่ใช้ กรองแพ็กเก็ตข้อมูล (Packet Filtering) บน Router, Firewall, Layer 3 Switch เพื่อควบคุมการไหลของ Traffic ระหว่าง Network Segments
ACL ช่วยปรับปรุง Network Security อย่างไร?
ACL กรอง Traffic ตามข้อมูลใน IP Header ได้แก่:
- Source IP Address / Destination IP Address
- Protocol Number (TCP=6, UDP=17, ICMP=1, etc.)
- Source Port / Destination Port (Socket Number)
- Flags (SYN, ACK, FIN, RST - สำหรับ TCP)
Packet-filtering Firewalls ใช้ ACL เป็นหัวใจการทำงาน
ประเภทของ ACL
| ประเภท | เลขลำดับ (Number Range) | ความสามารถ |
|---|---|---|
| Standard ACL | 1-99, 1300-1999 | กรองได้แค่ Source IP |
| Extended ACL | 100-199, 2000-2699 | กรอง Source IP, Dest IP, Protocol, Port |
| Named ACL | ใช้ชื่อแทนเลข | จัดการง่ายกว่า รองรับ Standard/Extended |
| Dynamic ACL (Lock-and-Key) | - | ต้อง Authenticate ก่อนผ่าน (User-based) |
| Reflexive ACL | - | สร้าง Entry ชั่วคราวสำหรับ Return Traffic |
Extended ACL กรอง Traffic ได้จากอะไร? (เลือก 2)
- Destination IP Address / Hostname
- Source Protocol (IP, TCP, UDP, ICMP, etc.)
ACL ใช้งานจริงอย่างไร?
- Inbound ACL: กรอง Traffic ก่อนเข้าสู่ Interface
- Outbound ACL: กรอง Traffic หลังออกจาก Interface
- ประมวลผลแบบ Top-down (กฎบนสุดถูกตรวจสอบก่อน) มี Implicit Deny Any ท้ายสุด
ACL และ NAT ทำงานร่วมกันอย่างไร?
ใน Static NAT: Inbound ACL จะจับ Destination IP เป็น Public IP (External) ก่อนที่ NAT จะ Translate เป็น Private IP
3 พารามิเตอร์หลักที่ ACL ใช้กรอง Traffic
- Source / Destination Layer 3 Address (IP)
- Port Number (Layer 4)
- Protocol Type (TCP, UDP, ICMP, etc.)
สรุป: ACL ปรับปรุง Security ได้อย่างไร?
ACL เป็น Gatekeeper ควบคุม Packet เข้า/ออก Network ตามกฎที่กำหนด Permit/Deny Traffic ตาม IP, Protocol, Port ช่วยลดพื้นที่โจมตี (Attack Surface) และบังคับใช้ Policy ขององค์กร