文件操作 - jail.conf
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/fail2ban/tests/config/jail.conf
编辑文件内容
[DEFAULT] filter = simple logpath = /non/exist [emptyaction] enabled = true filter = action = [special] failregex = <IP> ignoreregex = ignoreip = [test-known-interp] enabled = true filter = test[one=1,two=2] failregex = %(known/failregex)s failure %(known/_daemon)s %(known/three)s (jail.local) <HOST> [missinglogfiles] enabled = true logpath = /weapons/of/mass/destruction [brokenactiondef] enabled = true action = joho[foo [brokenfilterdef] enabled = true filter = flt[test [brokenaction] enabled = true action = brokenaction [missingaction] enabled = true action = noactionfileforthisaction [missingbitsjail] enabled = true filter = catchallthebadies action = thefunkychickendance [parse_to_end_of_jail.conf] enabled = true action = [tz_correct] enabled = true logtimezone = UTC+0200 [multi-log] enabled = false filter = logpath = a.log b.log c.log log2nd = %(logpath)s d.log action = action[actname='ban'] action[actname='log', logpath="%(log2nd)s"] action[actname='test'] [sshd-override-flt-opts] filter = zzz-sshd-obsolete-multiline[logtype=short] backend = systemd prefregex = ^Test failregex = ^Test unused <ADDR>$ ignoreregex = ^Test ignore <ADDR>$ journalmatch = _COMM=test maxlines = 2 usedns = no enabled = false [checklogtype_jrnl] filter = checklogtype backend = systemd action = action enabled = false [checklogtype_file] filter = checklogtype backend = polling logpath = README.md action = action enabled = false [checklogtype_test] filter = checklogtype_test backend = systemd action = action enabled = false [checklogtype_init] filter = checklogtype_test[logtype=init] backend = systemd action = action enabled = false
修改文件时间
将文件时间修改为当前时间的前一年
删除文件