DDoS 主要类型 流量型攻击(如 SYN Flood):消耗带宽。应用层攻击(如 HTTP Flood):耗尽服务器资源。 防御方案 使用 WAF(Web 应用防火墙)过滤恶意流量。限制 IP 速率: iptables -A INPUT -p tcp --dport 80 -m limit --limit 100/sec -j ACCEPT