mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
fail2ban - auto allowipv6
This commit is contained in:
parent
74ba6d7825
commit
7f13adbd05
1 changed files with 5 additions and 2 deletions
7
x-ui.sh
7
x-ui.sh
|
@ -862,8 +862,11 @@ run_speedtest() {
|
||||||
}
|
}
|
||||||
|
|
||||||
create_iplimit_jails() {
|
create_iplimit_jails() {
|
||||||
# Use default bantime if not passed => 5 minutes
|
# Use default bantime if not passed => 30 minutes
|
||||||
local bantime="${1:-5}"
|
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
|
cat << EOF > /etc/fail2ban/jail.d/3x-ipl.conf
|
||||||
[3x-ipl]
|
[3x-ipl]
|
||||||
|
|
Loading…
Reference in a new issue