mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-01 01:20:49 +03:00
(fixed) fail2ban - ubuntu 24
This commit is contained in:
parent
fdf805f264
commit
7ac79446c7
@ -132,7 +132,7 @@ config_after_install() {
|
|||||||
echo -e "${yellow}Your password will be: ${config_password}${plain}"
|
echo -e "${yellow}Your password will be: ${config_password}${plain}"
|
||||||
read -p "Please set up the panel port: " config_port
|
read -p "Please set up the panel port: " config_port
|
||||||
echo -e "${yellow}Your panel port is: ${config_port}${plain}"
|
echo -e "${yellow}Your panel port is: ${config_port}${plain}"
|
||||||
read -p "Please set up the web base path: " config_webBasePath
|
read -p "Please set up the web base path (ip:port/webbasepath/): " config_webBasePath
|
||||||
echo -e "${yellow}Your web base path is: ${config_webBasePath}${plain}"
|
echo -e "${yellow}Your web base path is: ${config_webBasePath}${plain}"
|
||||||
echo -e "${yellow}Initializing, please wait...${plain}"
|
echo -e "${yellow}Initializing, please wait...${plain}"
|
||||||
/usr/local/x-ui/x-ui setting -username ${config_account} -password ${config_password}
|
/usr/local/x-ui/x-ui setting -username ${config_account} -password ${config_password}
|
||||||
|
9
x-ui.sh
9
x-ui.sh
@ -1126,7 +1126,14 @@ install_iplimit() {
|
|||||||
|
|
||||||
# Check the OS and install necessary packages
|
# Check the OS and install necessary packages
|
||||||
case "${release}" in
|
case "${release}" in
|
||||||
ubuntu | debian | armbian)
|
ubuntu)
|
||||||
|
if [[ "${os_version}" -ge 24 ]]; then
|
||||||
|
apt update && apt install python3-pip -y
|
||||||
|
python3 -m pip install pyasynchat --break-system-packages
|
||||||
|
fi
|
||||||
|
apt update && apt install fail2ban -y
|
||||||
|
;;
|
||||||
|
debian | armbian)
|
||||||
apt update && apt install fail2ban -y
|
apt update && apt install fail2ban -y
|
||||||
;;
|
;;
|
||||||
centos | almalinux | rocky | oracle)
|
centos | almalinux | rocky | oracle)
|
||||||
|
Loading…
Reference in New Issue
Block a user