我目前正尝试让 Fail2ban 与我的 Xibo 容器一起工作,但即使我被列为被禁止,我仍然可以尝试登录。
debian@vps-ec7a07fd:~/xibo$ sudo fail2ban-client status xibo
Status for the jail: xibo
|- Filter
| |- Currently failed: 1
| |- Total failed: 7
| `- File list: /var/log/xilog/container.log
`- Actions
|- Currently banned: 1
|- Total banned: 1
`- Banned IP list: 172.18.0.1
我去检查了 IPtables,但没有发现任何异常。
pkts bytes target prot opt in out source destination
32 6227 f2b-xibo 6 -- * * 0.0.0.0/0 0.0.0.0/0
multiport dports 80,443
最后,我没有在 fail2ban.log 中看到任何错误。
2025-02-21 12:35:55,883 fail2ban.filter [133082]: INFO [xibo] Found
172.18.0.1 - 2025-02-21 12:35:55
2025-02-21 12:35:57,813 fail2ban.filter [133082]: INFO [xibo] Found
172.18.0.1 - 2025-02-21 12:35:57
2025-02-21 12:36:00,516 fail2ban.filter [133082]: INFO [xibo] Found
172.18.0.1 - 2025-02-21 12:35:59
2025-02-21 12:36:00,674 fail2ban.actions [133082]: NOTICE [xibo] Ban 172.18.0.1
2025-02-21 12:36:02,119 fail2ban.filter [133082]: INFO [xibo] Found
172.18.0.1 - 2025-02-21 12:36:01
2025-02-21 12:36:03,743 fail2ban.filter [133082]: INFO [xibo] Found
172.18.0.1 - 2025-02-21 12:36:03
2025-02-21 12:36:05,501 fail2ban.filter [133082]: INFO [xibo] Found
172.18.0.1 - 2025-02-21 12:36:05
2025-02-21 12:36:05,904 fail2ban.actions [133082]: NOTICE [xibo] 172.18.0.1 a
lready banned
2025-02-21 12:36:07,244 fail2ban.filter [133082]: INFO [xibo] Found
172.18.0.1 - 2025-02-21 12:36:07
2025-02-21 12:39:05,184 fail2ban.actions [133082]: NOTICE [xibo] Unban
172.18.0.1
如果您知道问题可能出在哪里,我愿意接受任何建议。