fail2ban old version
Posted: Wed Nov 20, 2024 5:01 pm
Hi guys.
I got old vesion fail2ban on my old server:
also:
Regarding website: https://github.com/fail2ban/fail2ban/releases there is vesion 1.1.0 available.
So my question is: is it possible to somehow update it ?
Why i am looking for update? Because from version:
From my server i can see lot of RUSSIAN IP is connection and flood my server for bad logins and so on. So i am looking for solution how to effective BAN all of that.
Thanks for all your answers, i really appreciate it.
I got old vesion fail2ban on my old server:
Code: Select all
root@vps:~# apt-cache showpkg fail2ban
Package: fail2ban
Versions:
0.10.2-2
Code: Select all
root@vps:~# fail2ban-server --version
Fail2Ban v0.10.2
So my question is: is it possible to somehow update it ?
Why i am looking for update? Because from version:
If you use v.0.11, you can use bantime increment feature
Code: Select all
[sshd]
# initial ban time:
bantime = 1h
# incremental banning:
bantime.increment = true
# default factor (causes increment - 1h -> 1d 2d 4d 8d 16d 32d ...):
bantime.factor = 24
# max banning time = 5 week:
bantime.maxtime = 5w
PS: One more question: Is it somehow possible block RUSSIA and CHINA users to connect on any service on my server? Something like geolocation firewall block?root@vps:~# fail2ban-client status sshd
Status for the jail: sshd
|- Filter
| |- Currently failed: 0
| |- Total failed: 10868
| `- File list: /var/log/auth.log
`- Actions
|- Currently banned: 0
|- Total banned: 644
Thanks for all your answers, i really appreciate it.