跳至主内容

IPBan

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

IPBan 是一款类似 fail2ban 的入侵防御工具,支持跨平台运行

在 Windows 上通过单条命令安装(需管理员权限的 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'))

配置

<LogFile>

<Source>Jellyfin</Source>
<PathAndMask>
C:/ProgramData/Jellyfin/Server/log/log_{year-local}{month-local}{day-local}.log
</PathAndMask>
<FailedLoginRegex>
<![CDATA[
Authentication\s+request\s+for\s+\S+?(?<username>[^\s]+)\S+\s+has\s+been\s+(?<log>denied)\s+\(IP:\s+"(?<ipaddress>[^,"\s]+)"\)
]]>
</FailedLoginRegex>
<SuccessfulLoginRegex>
<![CDATA[
Authentication\s+request\s+for\s+\S+?(?<username>[^\s]+)\S+\s+has\s+succeeded
]]>
</SuccessfulLoginRegex>
<PlatformRegex>Windows</PlatformRegex>
<PingInterval>10000</PingInterval>
<MaxFileSize>16777216</MaxFileSize>
<FailedLoginThreshold>0</FailedLoginThreshold>

</LogFile>