Debian12安装fail2ban封禁恶意ip
####安装Fail2Ban ```csharp sudo apt update sudo apt install fail2ban rsyslog -y ``` 安装 rsyslog,以确保日志文件能够正常生成并供 Fail2Ban 使用 ####启动服务 ```csharp sudo systemctl enable --now fail2ban sudo systemc
####安装Fail2Ban ```csharp sudo apt update sudo apt install fail2ban rsyslog -y ``` 安装 rsyslog,以确保日志文件能够正常生成并供 Fail2Ban 使用 ####启动服务 ```csharp sudo systemctl enable --now fail2ban sudo systemc
#### Debian下安装&配置方法: ```csharp apt install ipset ipset create blockip hash:net --exist ipset add blockip ip/24 ipset save > /etc/ipset.conf iptables -I INPUT 1 -m set --match-set blockip s
1. 确认目前内核版本: ``` uname -a ``` 2. 更新源信息,开始看装指定版本内核: ``` apt update apt install linux-image-5.10.0-0.deb10.30-cloud-amd64 apt install linux-headers-5.10.0-0.deb10.30-cloud-amd64 update-grub ``