Xây dựng bảo mật mạng toàn diện: Thiết bị, Công nghệ & Thiết kế kiến trúc
Bảo mật mạng hiệu quả yêu cầu phương pháp Defense in Depth (Sâu phòng thủ) - nhiều lớp bảo vệ chồng chéo từ biên giới mạng (perimeter) đến lõi (core), kết hợp thiết bị chuyên dụng, công nghệ hiện đại và thiết kế kiến trúc an ninh.
Các phương pháp đạt được bảo mật mạng
- Intrusion Prevention Systems (IPS): Chặn chủ động tấn công đã biết (signature) và bất thường (anomaly)
- Network Segmentation: Phân chia mạng thành các zone an ninh (DMZ, Server, User, Guest, IoT, OT) với firewall giữa các zone
- SIEM (Security Information and Event Management): Thu thập, tương quan, phân tích log toàn mạng để phát hiện mối đe dọa
- VPN (Virtual Private Network): IPsec, SSL VPN, Zero Trust Network Access (ZTNA) cho truy cập từ xa an toàn
Cách cung cấp bảo mật trên mạng
Nhiều lớp bảo vệ (Layered Defense):
- Perimeter Layer: Border firewall, DDoS protection, Email/Web gateway, DNS security
- Network Core Layer: Internal segmentation firewall, East-West inspection, NAC, NDR
- Endpoint Layer: EDR, AV, Host firewall, Application control, Disk encryption
- Application/Data Layer: WAF, API Gateway, DLP, Database firewall, Encryption
- Identity Layer: IAM, MFA, PAM, SSO, Conditional Access, Zero Trust
Người dùng được ủy quyền truy cập, kẻ xấu không thể khai thác hoặc đe dọa mạng.
Cải thiện bảo mật thiết bị hạ tầng mạng
- Phân đoạn chức năng: Tách management plane, control plane, data plane
- Chặn lateral communication không cần thiết: ACL, VRF, Private VLAN giữa các switch/port
- Hardening thiết bị: Tắt dịch vụ không dùng (CDP, LLDP, HTTP, Telnet, SNMP v1/v2c), đổi port mặc định
- Quản trị bảo mật (Secure Management): Chỉ cho phép SSH v2, HTTPS, SNMPv3 từ jump host/bastion dedicado
- Out-of-Band Management (OoB): Kênh quản trị riêng biệt (console server, modem, 4G) không qua data plane
- Kiểm tra tính toàn vẹn: Verified boot, secure boot, image signing, runtime integrity monitoring
Bảo mật mạng bằng mật mã học (Cryptography)
- Confidentiality (Bảo mật): AES-256 (data at rest), TLS 1.3 / IPsec (data in transit)
- Integrity (Toàn vẹn): HMAC-SHA256, SHA-3, Digital Signature (RSA/ECDSA)
- Authentication (Xác thực): Certificate-based (PKI, mTLS), Kerberos, SAML/OIDC, FIDO2
- Non-repudiation (Không thể chối cãi): Digital signature, Audit log tamper-proof
- Key Management: HSM, KMS, Key rotation, Certificate lifecycle automation (ACME, cert-manager)
Thiết bị chuyên dụng cho bảo mật mạng
| Thiết bị | Chức năng chính |
|---|---|
| Packet Filtering Firewall | Lọc gói tin dựa trên IP, Port, Protocol (Layer 3/4) |
| Stateful Inspection Firewall | Theo dõi trạng thái kết nối (Layer 4), hiệu suất cao |
| Proxy Firewall | Trung gian kết nối, kiểm tra nội dung Layer 7 |
| Web Application Firewall (WAF) | Bảo vệ ứng dụng web (OWASP Top 10), rate limiting, bot management |
| Host-based IDS (HIDS) | Giám sát file integrity, log, process trên endpoint (OSSEC, Wazuh) |
| Network-based IDS (NIDS) | Phân tích traffic mạng, signature/anomaly (Suricata, Zeek, Snort) |
| Web Content Filter | Chặn truy cập web độc hại, phishing, C&C, category-based |
| Network Load Balancer (NLB) | Phân phối traffic, health check, SSL offload, DDoS mitigation |
Yếu tố thiết kế mạng (Network Design Elements)
- DMZ (Demilitarized Zone): Vùng trung gian cho dịch vụ công khai (web, mail, DNS) - cách ly khỏi internal network
- Intranet: Mạng nội bộ tổ chức, không truy cập trực tiếp từ Internet
- Extranet: Mạng mở rộng cho partner, vendor, customer - kiểm soát chặt chẽ
- VLAN (Virtual LAN): Phân đoạn logic Layer 2, giảm broadcast domain
- NAT (Network Address Translation): Che giấu IP nội bộ, IPv4 conservation
- Subnetting: Chia mạng nhỏ, kiểm soát traffic giữa subnet qua firewall/router
- Network Topology: Hub-spoke, full mesh, hybrid, cloud-native (VPC, VNet, Transit Gateway)
- Network Access Control (NAC): 802.1X, MAB, Posture assessment, Profiling
Kiến trúc Zero Trust Network Architecture (ZTNA)
Thay thế mô hình "Trust but Verify" bằng "Never Trust, Always Verify":
- Xác thực & ủy quyền mọi request (user, device, app, workload)
- Least privilege access - chỉ cấp quyền tối thiểu, time-bound
- Micro-segmentation: Bảo vệ từng workload/app riêng lẻ
- Continuous verification: Đánh giá liên tục device posture, user behavior, threat intel
- Encrypt all traffic: mTLS, IPsec, WireGuard cho mọi communication
Cải thiện bảo mật mạng - Checklist thực hành
- Bật tính năng bảo mật trên mọi thiết bị (firewall, SSH, HTTPS, SNMPv3)
- Bảo mật Router: Đổi password mặc định, tắt remote management, cập nhật firmware
- Cập nhật phần mềm/firmware đều đặn (vulnerability management lifecycle)
- Triển khai Firewall: Default deny, rule least privilege, logging bật
- Gỡ bỏ/disable dịch vụ & phần mềm không cần thiết
- Chặn camera/mic không dùng (hardware switch hoặc software policy)
- Backup dữ liệu định kỳ, test restore, offline/immutable backup
- Network monitoring: NetFlow, PCAP, Zeek, NDR, SIEM correlation
- Security awareness training cho toàn thể nhân viên
- Incident Response Plan: RACI, playbook, tabletop exercise định kỳ
Bảo mật thiết bị mạng (Network Device Hardening)
- Giới hạn IP range được phép truy cập quản trị (ACL trên VTY/Management interface)
- SNMPv3 only (authPriv), tắt SNMP v1/v2c
- Rotate password định kỳ, dùng Password Vault/PAM
- Disable unused ports (port-security, shutdown, BPDU guard, root guard)
- SSH only (v2, key-based auth), tắt Telnet, HTTP
- Enable logging: Syslog đến SIEM, buffered logging, timestamp synchronized (NTP)
- Control Plane Policing (CoPP) bảo vệ CPU router/switch