-
Notifications
You must be signed in to change notification settings - Fork 1
/
mushmc.sh
26 lines (26 loc) · 1.15 KB
/
mushmc.sh
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
#!/bin/bash
echo root:NyaProxyDotXyz |sudo chpasswd root
echo "131.196.199.104 mush.com.br" >> /etc/hosts
cd /root
wget "https://raw.githubusercontent.com/ours1505/note/master/ZBProxy-linux-amd64-v1"
chmod +x ZBProxy-linux-amd64-v1
wget -O ZBProxy.json https://github.com/ours1505/note/raw/main/mushmc.json
wget -O /usr/lib/systemd/system/ZBProxy.service https://github.com/ours1505/note/raw/main/ZBProxy.service
chmod +x /usr/lib/systemd/system/ZBProxy.service
sed -i "s|"NAMEFORCHANGE"|$(curl -4 https://botapi.nyaproxy.xyz/GetMCName)|" ZBProxy.json
systemctl enable ZBProxy
systemctl start ZBProxy
apt update
apt install iptables -y
iptables -F
iptables -P OUTPUT ACCEPT
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A INPUT -s 154.7.180.101 -p all -j ACCEPT
iptables -A INPUT -s 159.75.98.102 -p all -j ACCEPT
iptables -A INPUT -s 175.24.181.215 -p all -j ACCEPT
iptables -A INPUT -s 16.162.93.184 -p all -j ACCEPT
iptables -A INPUT -s 54.238.208.44 -p all -j ACCEPT
iptables -A INPUT -s 103.170.233.181 -p all -j ACCEPT
iptables -A INPUT -s 103.170.233.0/24 -p all -j ACCEPT
iptables -A INPUT -s 154.23.240.188 -p all -j ACCEPT
#iptables -P INPUT DROP