Open Artectek opened 2 years ago
x86的op,现在好像系统日志里 不输出 web登录和ssh登录的日志了。导致pushbot没法采集到登录情况
web登陆没有提醒,错误提示也没 SSH登陆有提示.但是拉黑功能失效 固件: Onewrt Dev22.02.05 From Lean Openwrt SNAPSHOT / LuCI Master (git-21.335.48743-5f363d9) 内核:5.4.175 系统: OP_X86
也遇到這個問題
修改ssh登录识别逻辑 vim /usr/bin/pushbot/pushbot 找到 cat ${dir}login_monitor|grep -i "Bad password attempt|Login attempt for nonexistent user from"|grep -Eo "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" >> ${dir}ssh_failed 这行,修改匹配规则 我的改成这个就行 cat ${dir}login_monitor|grep -i "Bad password attempt|Exit before auth from .*: Exited normally|Failed password"|grep -Eo "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" >> ${dir}ssh_failed
同样有这个问题