Skip to content

Commit 85f6c4b

Browse files
authored
Update NetOptix.sh
1 parent 8899bcb commit 85f6c4b

File tree

1 file changed

+38
-30
lines changed

1 file changed

+38
-30
lines changed

NetOptix.sh

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ while true; do
2121
echo -e " ${RED}Open issues at https://github.com/MrAminiDev/NetOptix ${NC}"
2222
echo -e "${CYAN}+======================================================================+${NC}"
2323
echo -e "${CYAN}+======================================================================+${NC}"
24-
echo -e " ${RED}NetOptix V3.3.0 ${NC}"
24+
echo -e " ${RED}NetOptix V3.4.0 ${NC}"
2525
echo -e "${CYAN}+======================================================================+${NC}"
2626

2727
# Network Optimization (Green)
@@ -30,33 +30,34 @@ while true; do
3030
echo -e "${GREEN}2${NC}) ${YELLOW}Install BBR${NC}"
3131
echo -e "${GREEN}3${NC}) ${YELLOW}Delete Optimize (BBR and Hybla)${NC}"
3232
echo -e "${GREEN}4${NC}) ${YELLOW}Create Swap${NC}"
33-
echo -e "${GREEN}5${NC}) ${YELLOW}MTU Finder + Auto Set${NC}"
34-
echo -e "${GREEN}6${NC}) ${YELLOW}MTU Finder${NC}"
33+
echo -e "${GREEN}5${NC}) ${YELLOW}Create ZRAM${NC}"
34+
echo -e "${GREEN}6${NC}) ${YELLOW}MTU Finder + Auto Set${NC}"
35+
echo -e "${GREEN}7${NC}) ${YELLOW}MTU Finder${NC}"
3536

3637
# Server & Network Management (Blue)
3738
echo -e "\n${BLUE}== Server & Network Management ==${NC}"
38-
echo -e "${BLUE}7${NC}) ${CYAN}Block and Unblock Server Ping${NC}"
39-
echo -e "${BLUE}8${NC}) ${CYAN}Block Torrent List${NC}"
40-
echo -e "${BLUE}9${NC}) ${CYAN}Change Server DNS${NC}"
41-
echo -e "${BLUE}10${NC}) ${CYAN}Change SSH Port${NC}"
42-
echo -e "${BLUE}11${NC}) ${CYAN}Block and Unblock Private Network${NC}"
43-
echo -e "${BLUE}12${NC}) ${CYAN}Block and Unblock Iranian ISP${NC}"
44-
echo -e "${BLUE}13${NC}) ${CYAN}Install mikrotik on ubuntu${NC}"
45-
echo -e "${BLUE}14${NC}) ${CYAN}Install Monitoring system (Cockpit)${NC}"
39+
echo -e "${BLUE}8${NC}) ${CYAN}Block and Unblock Server Ping${NC}"
40+
echo -e "${BLUE}9${NC}) ${CYAN}Block Torrent List${NC}"
41+
echo -e "${BLUE}10${NC}) ${CYAN}Change Server DNS${NC}"
42+
echo -e "${BLUE}11${NC}) ${CYAN}Change SSH Port${NC}"
43+
echo -e "${BLUE}12${NC}) ${CYAN}Block and Unblock Private Network${NC}"
44+
echo -e "${BLUE}13${NC}) ${CYAN}Block and Unblock Iranian ISP${NC}"
45+
echo -e "${BLUE}14${NC}) ${CYAN}Install mikrotik on ubuntu${NC}"
46+
echo -e "${BLUE}15${NC}) ${CYAN}Install Monitoring system (Cockpit)${NC}"
4647

4748
# Security (Red)
4849
echo -e "\n${RED}== Security ==${NC}"
49-
echo -e "${RED}15${NC}) ${CYAN}Install Fail2ban for SSH Security${NC}"
50-
echo -e "${RED}16${NC}) ${CYAN}Block and Unblock All SpeedTest Websites${NC}"
50+
echo -e "${RED}16${NC}) ${CYAN}Install Fail2ban for SSH Security${NC}"
51+
echo -e "${RED}17${NC}) ${CYAN}Block and Unblock All SpeedTest Websites${NC}"
5152

5253
# System Maintenance (Magenta)
5354
echo -e "\n${MAGENTA}== System Maintenance ==${NC}"
54-
echo -e "${MAGENTA}17${NC}) ${CYAN}Fix WhatsApp Data and Time${NC}"
55-
echo -e "${MAGENTA}18${NC}) ${CYAN}Disable IPv6${NC}"
55+
echo -e "${MAGENTA}18${NC}) ${CYAN}Fix WhatsApp Data and Time${NC}"
56+
echo -e "${MAGENTA}19${NC}) ${CYAN}Disable IPv6${NC}"
5657

5758
# Exit Option (Yellow)
5859
echo -e "\n${YELLOW}== Exit ==${NC}"
59-
echo -e "${YELLOW}19${NC}) ${CYAN}Exit Menu${NC}"
60+
echo -e "${YELLOW}20${NC}) ${CYAN}Exit Menu${NC}"
6061

6162
read -p "Enter your choice: " choice
6263

@@ -90,69 +91,76 @@ while true; do
9091
rm /tmp/swap.sh
9192
;;
9293
5)
94+
echo "Running Swap script..."
95+
sleep 2
96+
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/swap.sh -o /tmp/swap.sh
97+
bash /tmp/swap.sh
98+
rm /tmp/swap.sh
99+
;;
100+
6)
93101
echo "Running MTU finder + auto set script..."
94102
sleep 2
95103
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/mtu.sh -o /tmp/mtu.sh
96104
bash /tmp/mtu.sh
97105
rm /tmp/mtu.sh
98106
;;
99-
6)
107+
7)
100108
echo "Running MTU finder script..."
101109
sleep 2
102110
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/mtunoset.sh -o /tmp/mtunoset.sh
103111
bash /tmp/mtunoset.sh
104112
rm /tmp/mtunoset.sh
105113
;;
106-
7)
114+
8)
107115
echo "Running Server Ping Blocker..."
108116
sleep 2
109117
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/Ping.sh -o /tmp/Ping.sh
110118
bash /tmp/Ping.sh
111119
rm /tmp/Ping.sh
112120
;;
113-
8)
121+
9)
114122
echo "Running Block torrent list..."
115123
sleep 2
116124
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/blocktorrent/blocktorrent.sh -o /tmp/blocktorrent.sh
117125
bash /tmp/blocktorrent.sh
118126
rm /tmp/blocktorrent.sh
119127
;;
120-
9)
128+
10)
121129
echo "Running Server DNS changer..."
122130
sleep 2
123131
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/dns.sh -o /tmp/dns.sh
124132
bash /tmp/dns.sh
125133
rm /tmp/dns.sh
126134
;;
127-
10)
135+
11)
128136
echo "Running SSH port changer..."
129137
sleep 2
130138
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/cport.sh -o /tmp/cport.sh
131139
bash /tmp/cport.sh
132140
rm /tmp/cport.sh
133141
;;
134-
11)
142+
12)
135143
echo "Running Private network blocker and unblocker..."
136144
sleep 2
137145
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/pib.sh -o /tmp/pib.sh
138146
bash /tmp/pib.sh
139147
rm /tmp/pib.sh
140148
;;
141-
12)
149+
13)
142150
echo "Running Iran ISP blocker and unblocker..."
143151
sleep 2
144152
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/isp-blocker/block-isp.sh -o /tmp/block-isp.sh
145153
bash /tmp/block-isp.sh
146154
rm /tmp/block-isp.sh
147155
;;
148-
13)
156+
14)
149157
echo "Running mikrotik installer on ubuntu..."
150158
sleep 2
151159
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/mikrotik.sh -o /tmp/mikrotik.sh
152160
bash /tmp/mikrotik.sh
153161
rm /tmp/mikrotik.sh
154162
;;
155-
14)
163+
15)
156164
echo "Install Monitoring system (Cockpit)"
157165
sleep 2
158166
sudo apt update
@@ -162,29 +170,29 @@ while true; do
162170
echo "Done, Monitoring system Onlined... use IP:9090 (user: root / password: server password)"
163171
sleep 10
164172
;;
165-
15)
173+
16)
166174
echo "Running installer fail2ban script for ssh security..."
167175
sleep 2
168176
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/fail2ban.sh -o /tmp/fail2ban.sh
169177
bash /tmp/fail2ban.sh
170178
rm /tmp/fail2ban.sh
171179
;;
172-
16)
180+
17)
173181
echo "Running Speedtest blocker and unblocker..."
174182
sleep 2
175183
curl -fsSL https://raw.githubusercontent.com/MrAminiDev/NetOptix/main/scripts/speedtest/speedtest.sh -o /tmp/speedtest.sh
176184
bash /tmp/speedtest.sh
177185
rm /tmp/speedtest.sh
178186
;;
179-
17)
187+
18)
180188
echo "Running WhatsApp Data and Time fixer..."
181189
sleep 2
182190
sudo timedatectl set-timezone Asia/Tehran
183191
sleep 2
184192
echo "Done, WhatsApp Data and Time fixed..."
185193
sleep 3
186194
;;
187-
18)
195+
19)
188196
echo "Running IPv6 Disabling command..."
189197
sleep 2
190198
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
@@ -193,7 +201,7 @@ while true; do
193201
echo "Done, IPv6 Disabled..."
194202
sleep 3
195203
;;
196-
19)
204+
20)
197205
echo "Exiting..."
198206
sleep 3
199207
exit 0

0 commit comments

Comments
 (0)