Compare commits

...

4 commits

Author SHA1 Message Date
LoST
8822b541d0
Merge branch 'MHSanaei:main' into main 2024-12-20 01:35:57 +03:00
mhsanaei
49295661fd
fail2ban - unban fix
sorry for my mistake
2024-12-19 23:24:10 +01:00
LoST
90d22c7d22
Merge branch 'main' into main 2024-12-20 01:09:44 +03:00
mhsanaei
e4301f8d93
fail2ban - allports 2024-12-19 22:49:25 +01:00

View file

@ -1332,7 +1332,7 @@ EOF
cat << EOF > /etc/fail2ban/action.d/3x-ipl.conf
[INCLUDES]
before = iptables-common.conf
before = iptables-allports.conf
[Definition]
actionstart = <iptables> -N f2b-<name>
@ -1413,7 +1413,7 @@ iplimit_main() {
3)
confirm "Proceed with Unbanning everyone from IP Limit jail?" "y"
if [[ $? == 0 ]]; then
systemctl restart fail2ban
fail2ban-client reload --restart --unban 3x-ipl
truncate -s 0 "${iplimit_banned_log_path}"
echo -e "${green}All users Unbanned successfully.${plain}"
iplimit_main