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-06-04 13:52:21 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-06-04 13:52:21 +0300
commit2f46d42214e8d6702324084574bb9f5043a09341 (patch)
tree0aff433fd4342983a88c8de46b46109e75fa8ceb
parent1b9360dfaf741b593ae597e2f729e41cc056af21 (diff)
bash - restart fail2ban
-rw-r--r--x-ui.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/x-ui.sh b/x-ui.sh
index 01d16099..e804e01c 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -1068,8 +1068,9 @@ iplimit_main() {
echo -e "${green}\t2.${plain} Change Ban Duration"
echo -e "${green}\t3.${plain} Unban Everyone"
echo -e "${green}\t4.${plain} Check Logs"
- echo -e "${green}\t5.${plain} fail2ban status"
- echo -e "${green}\t6.${plain} Uninstall IP Limit"
+ echo -e "${green}\t5.${plain} Fail2ban Status"
+ echo -e "${green}\t6.${plain} Restart Fail2ban"
+ echo -e "${green}\t7.${plain} Uninstall IP Limit"
echo -e "${green}\t0.${plain} Back to Main Menu"
read -p "Choose an option: " choice
case "$choice" in
@@ -1112,8 +1113,10 @@ iplimit_main() {
5)
service fail2ban status
;;
-
6)
+ systemctl restart fail2ban
+ ;;
+ 7)
remove_iplimit
;;
*) echo "Invalid choice" ;;