mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-10-14 12:09:12 +00:00
Compare commits
4 commits
7604b1a3b0
...
8822b541d0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8822b541d0 | ||
![]() |
49295661fd | ||
![]() |
90d22c7d22 | ||
![]() |
e4301f8d93 |
1 changed files with 2 additions and 2 deletions
4
x-ui.sh
4
x-ui.sh
|
@ -1332,7 +1332,7 @@ EOF
|
||||||
|
|
||||||
cat << EOF > /etc/fail2ban/action.d/3x-ipl.conf
|
cat << EOF > /etc/fail2ban/action.d/3x-ipl.conf
|
||||||
[INCLUDES]
|
[INCLUDES]
|
||||||
before = iptables-common.conf
|
before = iptables-allports.conf
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
actionstart = <iptables> -N f2b-<name>
|
actionstart = <iptables> -N f2b-<name>
|
||||||
|
@ -1413,7 +1413,7 @@ iplimit_main() {
|
||||||
3)
|
3)
|
||||||
confirm "Proceed with Unbanning everyone from IP Limit jail?" "y"
|
confirm "Proceed with Unbanning everyone from IP Limit jail?" "y"
|
||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
systemctl restart fail2ban
|
fail2ban-client reload --restart --unban 3x-ipl
|
||||||
truncate -s 0 "${iplimit_banned_log_path}"
|
truncate -s 0 "${iplimit_banned_log_path}"
|
||||||
echo -e "${green}All users Unbanned successfully.${plain}"
|
echo -e "${green}All users Unbanned successfully.${plain}"
|
||||||
iplimit_main
|
iplimit_main
|
||||||
|
|
Loading…
Reference in a new issue