Computer >> Hướng Dẫn Máy Tính >  >> Kết Nối Mạng >> An Ninh Mạng

Các loại Firewall an ninh mạng: Phân loại, tính năng & lựa chọn

Firewall là gì?

Firewall (Tường lửa) là thiết bị/phần mềm giám sát, lọc và kiểm soát lưu lượng mạng đi/vào dựa trên tập luật bảo mật (security policy). Nó thiết lập rào chắn giữa mạng tin cậy (internal) và không tin cậy (Internet, DMZ, partner network).

Phân loại theo kiến trúc triển khai

1. Hardware Firewall (Appliance)

  • Thiết bị chuyên dụng: ASIC/FPGA xử lý gói tin tốc độ cao
  • Hiệu năng cao, độ trễ thấp, HA (High Availability) tích hợp
  • Ví dụ: Palo Alto Networks PA-Series, FortiGate, Check Point Quantum, Cisco Firepower (FPR)
  • Phù hợp: Enterprise, Data Center, Service Provider

2. Software Firewall (Host-based / Endpoint)

  • Cài trên OS: Windows Defender Firewall, iptables/nftables (Linux), pf (BSD), Little Snitch (macOS)
  • Bảo vệ cấp host, lọc theo process/user
  • Miễn phí/đi kèm OS, nhưng tiêu tốn tài nguyên host

3. Virtual Firewall / Cloud Firewall

  • Chạy dạng VM/Container: AWS Network Firewall, Azure Firewall, GCP Cloud Firewall, Palo Alto VM-Series, FortiGate-VM
  • Tích hợp native với VPC/VNet, auto-scaling, Infrastructure as Code (Terraform)
  • Phù hợp: Cloud-native, Hybrid cloud, Multi-cloud

4. Firewall as a Service (FWaaS / SASE)

  • Cloud-delivered: Zscaler, Cloudflare Magic Firewall, Palo Alto Prisma Access, Netskope
  • Không quản lý hạ tầng, policy theo identity/user/device, SSL inspection tại edge
  • Phù hợp: Remote workforce, Branch office, Zero Trust Network Access

Phân loại theo поколение công nghệ (Generation)

Thế hệTên gọiĐặc điểm chínhVí dụ
Gen 1Packet Filtering (Stateless)Lọc theo IP src/dst, port, protocol (L3/L4). Không theo dõi state. Nhanh nhưng yếu.ACL Router, iptables basic
Gen 2Stateful InspectionTheo dõi state table (SYN, SYN-ACK, ACK). Hiểu context kết nối. Chuẩn năm 1990.Check Point FireWall-1, Cisco PIX/ASA
Gen 3Application Layer / ProxyProxy thực sự (terminate connection). Deep L7 inspection. Chậm, phức tạp.Sidewinder, Gauntlet, early Proxy FW
Gen 4Unified Threat Management (UTM)All-in-one: FW + IPS + AV + Web Filter + VPN + Anti-spam. SMB-focused.FortiGate, Sophos XG, WatchGuard, SonicWall
Gen 5Next-Gen Firewall (NGFW)App-ID, User-ID, Content-ID, SSL Decrypt, Threat Intelligence, Sandbox, API automation.Palo Alto, FortiGate (NGFW mode), Check Point Quantum, Cisco Firepower
Gen 6ML-Powered / AI-Native FWInline ML zero-day prevention, behavioral analytics, auto policy tuning.Palo Alto ML-Powered, FortiGuard AI, Zscaler AI

Phân loại theo vị trí triển khai

  • Perimeter/Edge Firewall: Ran internet, bảo vệ toàn bộ mạng nội bộ
  • Internal Segmentation Firewall (ISFW): Giữa các zone nội bộ (DC, User, OT, Guest)
  • Data Center Firewall (DCFW): East-West traffic, high throughput, low latency, micro-segmentation
  • Web Application Firewall (WAF): Layer 7 HTTP/HTTPS, OWASP Top 10, API protection (ModSecurity, F5 ASM, Cloudflare WAF, AWS WAF)
  • Database Firewall: SQL inspection, virtual patching (Imperva, Oracle Audit Vault)
  • Container/K8s Firewall: Cilium, Calico, NeuVector, Aqua – workload-level, eBPF-based

So sánh NGFW hàng đầu (Enterprise)

Chọn firewall phù hợp – Ma trận quyết định

VendorĐiểm mạnhĐiểm yếuLicensing
Palo Alto NetworksApp-ID tốt nhất, User-ID, WildFire sandbox, Panorama mgmt, ML-poweredGiá cao, license phức tạp, resource heavySubscription per feature (Threat, URL, WildFire, DNS, IoT)
Fortinet FortiGateASIC SPU tự研发, hiệu năng/giá tốt, UTM tích hợp, FortiOS unifiedGUI phức tạp, support đôi khi chậm, SSL inspect tốn resourceBundle (UTP/ATP/Enterprise), per device
Check Point QuantumInfinity architecture, Infinity Portal, SandBlast, quản trị policy mạnhKernel-level (Gaia), upgrade phức tạp, chi phí caoSubscription blade-based
Cisco Firepower (FPR/FTD)Tích hợp Cisco ecosystem (ISE, Stealthwatch, Meraki), Talos intelligenceFTD complex, migration từ ASA khó, performance/price trung bìnhSmart Licensing, tier-based
Yêu cầuKhuyến nghị
Enterprise lớn, cần best-of-breed App-ID, MLPalo Alto Networks
Hiệu năng cao, ngân sách hợp lý, all-in-oneFortiGate
Môi trường Check Point hiện hữu, quản trị policy trung tâmCheck Point Quantum
Cisco shop, tích hợp ISE/TrustSec/SD-WANCisco Firepower / Meraki MX
SMB, ít nhân sự IT, cần UTM đơn giảnSophos XG, WatchGuard, SonicWall
Cloud-native, AWS/Azure/GCPCloud Firewall / FWaaS (Palo Alto VM, FortiGate-VM, AWS Network Firewall)
Remote user, Zero Trust, không muốn manage hardwareZscaler, Cloudflare, Prisma Access (SASE/SSE)

Best Practices triển khai

  1. Default Deny: Chặn tất cả, chỉ cho phép rule cần thiết (least privilege)
  2. Zero Trust Segmentation: Firewall ở mọi ranh giới zone, không chỉ perimeter
  3. SSL/TLS Inspection: Bật decrypt (với policy privacy), >80% malware藏 trong TLS
  4. Threat Intelligence Feed: Tự động block IOC (IP, domain, hash) từ feed uy tín
  5. Automation & API: Infrastructure as Code (Terraform), CI/CD policy, SOAR integration
  6. Logging & Monitoring: Gửi log đến SIEM (Splunk, Sentinel, Elastic), bật NetFlow
  7. Regular Rule Review: Dọn rule unused, shadowed, overly permissive (quarterly)
  8. HA & DR: Active/Passive hoặc Active/Active, config sync, test failover định kỳ

Kết luận: Firewall hiện đại không chỉ lọc gói tin – là platform bảo mật tích hợp (NGFW/ML-FW) cung cấp visibility, control, prevention tại L3-L7. Lựa chọn phụ thuộc vào quy mô, kiến trúc (on-prem/cloud/hybrid), ngân sách, và năng lực vận hành.