Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-01-20 15:19:34 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-01-20 15:19:34 +0300
commit7f13adbd05b5a1fb5f71e99dcff41bb13814134f (patch)
treeeca46624656cbbb2a34ac5e5dbccd0e286714d0a
parent74ba6d7825741fe7965c91e5ccd8ae6d0436fe59 (diff)
fail2ban - auto allowipv6
-rw-r--r--x-ui.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/x-ui.sh b/x-ui.sh
index 2807bc4f..de7e1f9f 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -862,8 +862,11 @@ run_speedtest() {
}
create_iplimit_jails() {
- # Use default bantime if not passed => 5 minutes
- local bantime="${1:-5}"
+ # 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
cat << EOF > /etc/fail2ban/jail.d/3x-ipl.conf
[3x-ipl]