Skip to content

Commit

Permalink
fail2ban - bantime 30min
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Dec 18, 2024
1 parent 0fb0df7 commit d804043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1278,8 +1278,8 @@ run_speedtest() {
}

create_iplimit_jails() {
# Use default bantime if not passed => 15 minutes
local bantime="${1:-15}"
# Use default bantime if not passed => 30 minutes
local bantime="${1:-30}"

# Uncomment 'allowipv6 = auto' in fail2ban.conf
sed -i 's/#allowipv6 = auto/allowipv6 = auto/g' /etc/fail2ban/fail2ban.conf
Expand Down

0 comments on commit d804043

Please sign in to comment.