mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-30 14:56:17 +00:00
Changed /var/log/daemon.log to universal parameter
This commit is contained in:
parent
bc9e8949d8
commit
d12ba90502
1 changed files with 1 additions and 1 deletions
2
x-ui.sh
2
x-ui.sh
|
@ -746,7 +746,7 @@ install_iplimit() {
|
||||||
touch /var/log/3xipl-banned.log
|
touch /var/log/3xipl-banned.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $'\n[3x-ipl]\nenabled=true\nfilter=3x-ipl\naction=3x-ipl\nlogpath=/var/log/daemon.log\nmaxretry=3\nfindtime=100\nbantime=300' >> /etc/fail2ban/jail.local
|
echo $'\n[3x-ipl]\nenabled=true\nfilter=3x-ipl\naction=3x-ipl\nlogpath=%(syslog_daemon)s\nmaxretry=3\nfindtime=100\nbantime=300' >> /etc/fail2ban/jail.local
|
||||||
|
|
||||||
echo $'[Definition]\nfailregex = [LIMIT_IP].+Email= <F-USER>.+</F-USER>.+SRC= <HOST>\nignoreregex =' > /etc/fail2ban/filter.d/3x-ipl.conf
|
echo $'[Definition]\nfailregex = [LIMIT_IP].+Email= <F-USER>.+</F-USER>.+SRC= <HOST>\nignoreregex =' > /etc/fail2ban/filter.d/3x-ipl.conf
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue