自来光 发表于 2025-3-21 16:28:43

ipset订阅ip黑名单联动fail2ban

<i class="pstatus"> 本帖最后由 自来光 于 2025-3-22 10:19 编辑 </i><br />
<br />
项目 https://github.com/ylx2016/ipset-fail2ban<br />
<br />
apikey申请 https://www.abuseipdb.com/<br />
每小时自动执行<br />
<br />
上报带KEY 一键 为人类做贡献<br /><div class="blockcode"><div id="code_gDY"><ol><li>curl -sSL https://github.com/ylx2016/ipset-fail2ban/raw/refs/heads/main/ipset-fail2ban.sh | bash -s &quot;apikey&quot;</ol></div><em onclick="copycode($('code_gDY'));">复制代码</em></div><br />
<br />
不上报<br /><div class="blockcode"><div id="code_X9p"><ol><li>curl -sSL https://github.com/ylx2016/ipset-fail2ban/raw/refs/heads/main/ipset-fail2ban.sh | bash</ol></div><em onclick="copycode($('code_X9p'));">复制代码</em></div><br />
<br />
<br />
<br />
工作目录<br />
/etc/ipset-blacklist<br />
<br />
查询fail2ban状态<br />
fail2ban-client status sshd<br />
<br />
查看防火Q<br />
iptables -L -n -v<img id="aimg_B2vmm" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif" onmouseover="img_onmouseoverfunc(this)" onload="thumbImg(this)" border="0" alt="" />

自来光 发表于 2025-3-22 13:33:21

更新项目<img id="aimg_Vh366" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif" onmouseover="img_onmouseoverfunc(this)" onload="thumbImg(this)" border="0" alt="" />
页: [1]
查看完整版本: ipset订阅ip黑名单联动fail2ban