windows 下的开源安全软件 IPBan
类似 Linux Fail2ban 的一款软件
项目地址 https://github.com/DigitalRuby/IPBan
安裝方式
powershell 管理员权限安装
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/DigitalRuby/IPBan/master/IPBanCore/Windows/Scripts/install_latest.ps1')) |
然后需要修改策略组
管理模板>系统>凭据分配>加密数据库修正

启用审计
auditpol /set /category:"登录/注销" /success:enable /failure:enable |
手动解锁
万一不小心锁了自己用的 IP,可以在程序根目录写一个 unban.txt 的文件。
每一行存一个 IP
192.168.1.123 |
然后默认 15 秒就会解锁,具体看设置 CycleTime 参数。