forked from MrAminiDev/NetOptix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetOptix.sh
More file actions
115 lines (112 loc) · 4.68 KB
/
Copy pathNetOptix.sh
File metadata and controls
115 lines (112 loc) · 4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/bash
RED='\033[38;2;231;76;60m'
BLUE='\033[38;5;33m'
NC='\033[0m'
while true; do
clear
echo -e "${BLUE}+======================================================================+${NC}"
echo -e "${BLUE}║ ${RED}▌║█║▌║▌│║▌║▌█║ NetOptix Coded By MrAmini ▌│║▌║▌║║▌█║${NC} ${BLUE} ║${NC}"
echo -e "${BLUE}+======================================================================+${NC}"
echo -e "${BLUE}+======================================================================+${NC}"
echo -e "${BLUE}║ ${RED} ▌║█║▌│║│║▌║▌█║ Main Menu ▌│║▌║│║║▌█║▌ ${NC} ${BLUE} ║${NC}"
echo -e "${BLUE}+======================================================================+${NC}"
echo -e "${BLUE}+======================================================================+${NC}"
echo -e " ${RED}Open issues at https://github.com/MrAminiDev/NetOptix ${NC}"
echo -e "${BLUE}+======================================================================+${NC}"
echo -e "${BLUE}+======================================================================+${NC}"
echo -e " ${RED}NetOptix V1.5.0 ${NC}"
echo -e "${BLUE}+======================================================================+${NC}"
echo "1- install Hybla"
echo "2- install BBR"
echo "3- Delete Optimize ( BBR and Hybla )"
echo "4- Create Swap"
echo "5- MTU Finder + auto set"
echo "6- MTU Finder"
echo "7- Disable Server Ping"
echo "8- Enable Server Ping"
echo "9- Block torrent list"
echo "10- Change Server DNS"
echo "11- Exit menu"
read -p "Enter your choice: " choice
case $choice in
1)
echo "Running Hybla script..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/hybla.sh -o /tmp/hybla.sh
bash /tmp/hybla.sh
rm /tmp/hybla.sh
;;
2)
echo "Running BBR script..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/bbr.sh -o /tmp/bbr.sh
bash /tmp/bbr.sh
rm /tmp/bbr.sh
;;
3)
echo "Running Uninstall script..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/uninstall.sh -o /tmp/uninstall.sh
bash /tmp/uninstall.sh
rm /tmp/uninstall.sh
;;
4)
echo "Running Swap script..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/swap.sh -o /tmp/swap.sh
bash /tmp/swap.sh
rm /tmp/swap.sh
;;
5)
echo "Running MTU finder + auto set script..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/mtu.sh -o /tmp/mtu.sh
bash /tmp/mtu.sh
rm /tmp/mtu.sh
;;
6)
echo "Running MTU finder script..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/mtunoset.sh -o /tmp/mtunoset.sh
bash /tmp/mtunoset.sh
rm /tmp/mtunoset.sh
;;
7)
echo "Running Server Ping Blocker..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/DPing.sh -o /tmp/DPing.sh
bash /tmp/DPing.sh
rm /tmp/DPing.sh
;;
8)
echo "Running Server Ping UnBlocker..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/EPing.sh -o /tmp/EPing.sh
bash /tmp/EPing.sh
rm /tmp/EPing.sh
;;
9)
echo "Running Block torrent list..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/blocktorrent/blocktorrent.sh -o /tmp/blocktorrent.sh
bash /tmp/blocktorrent.sh
rm /tmp/blocktorrent.sh
;;
10)
echo "Running Server DNS changer..."
sleep 2
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/dns.sh -o /tmp/dns.sh
bash /tmp/dns.sh
rm /tmp/dns.sh
;;
11)
echo "Exiting..."
sleep 3
exit 0
;;
*)
echo "Invalid choice. Please enter a valid option."
read -p "Press Enter to continue..."
;;
esac
done