<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>防火墙 on Moxuan's Blog</title><link>https://blog.moxuan.de/tags/%E9%98%B2%E7%81%AB%E5%A2%99/</link><description>Recent content in 防火墙 on Moxuan's Blog</description><image><title>Moxuan's Blog</title><url>https://i.postimg.cc/7hwBy7VS/calcr.png</url><link>https://i.postimg.cc/7hwBy7VS/calcr.png</link></image><generator>Hugo -- 0.154.3</generator><language>zh-cn</language><copyright>©2023-2026 moxuan</copyright><lastBuildDate>Tue, 11 Jun 2024 11:15:00 +0800</lastBuildDate><atom:link href="https://blog.moxuan.de/tags/%E9%98%B2%E7%81%AB%E5%A2%99/index.xml" rel="self" type="application/rss+xml"/><item><title>服务器遭遇疯狂 CC 攻击，祭出 Fail2ban 封禁恶意 IP</title><link>https://blog.moxuan.de/posts/fail2ban-protect-nginx-ssh/</link><pubDate>Tue, 11 Jun 2024 11:15:00 +0800</pubDate><guid>https://blog.moxuan.de/posts/fail2ban-protect-nginx-ssh/</guid><description>&lt;p&gt;&lt;strong&gt;被制裁的早晨&lt;/strong&gt;
早上起来发现博客打不开了，登进终端一看，Load Average（系统负载）飙到了 15。&lt;code&gt;top&lt;/code&gt; 命令一看，Nginx 进程占了 99% 的 CPU。
用 &lt;code&gt;tail -n 100 /var/log/nginx/access.log&lt;/code&gt; 一看，某个段的海外 IP 正在以每秒几百次的频率狂刷我的查询接口，典型的 CC 攻击。&lt;/p&gt;</description></item></channel></rss>