-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.sh
134 lines (130 loc) · 6.03 KB
/
setup.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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/bin/bash
if [ "${EUID}" -ne 0 ]; then
echo "You need to run this script as root"
exit 1
fi
if [ "$(systemd-detect-virt)" == "openvz" ]; then
echo "OpenVZ is not supported"
exit 1
fi
red='\e[1;31m'
green='\e[0;32m'
NC='\e[0m'
MYIP=$(wget -qO- icanhazip.com);
IZIN=$( curl https://raw.githubusercontent.com/senowahyu62/freesc/main/ipvps | grep $MYIP )
if [ $MYIP = $MYIP ]; then
echo -e "${green}Permission Accepted...${NC}"
else
echo -e "${red}Permission Denied!${NC}";
echo "Please Contact Admin"
rm -f setup.sh
exit 0
fi
if [ -f "/etc/v2ray/domain" ]; then
echo "Script Already Installed"
exit 0
fi
mkdir /var/lib/premium-script;
echo "IP=" >> /var/lib/premium-script/ipvps.conf
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/cf.sh && chmod +x cf.sh && ./cf.sh
#install ssh ovpn
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/ssh-vpn.sh && chmod +x ssh-vpn.sh && screen -S ssh-vpn ./ssh-vpn.sh
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/sstp.sh && chmod +x sstp.sh && screen -S sstp ./sstp.sh
#install ssr
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/ssr.sh && chmod +x ssr.sh && screen -S ssr ./ssr.sh
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/sodosok.sh && chmod +x sodosok.sh && screen -S ss ./sodosok.sh
#installwg
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/wg.sh && chmod +x wg.sh && screen -S wg ./wg.sh
#install v2ray
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/ins-vt.sh && chmod +x ins-vt.sh && screen -S v2ray ./ins-vt.sh
#install L2TP
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/ipsec.sh && chmod +x ipsec.sh && screen -S ipsec ./ipsec.sh
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/set-br.sh && chmod +x set-br.sh && ./set-br.sh
# Install Neofetch
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/geo.sh && chmod +x geo.sh && ./geo.sh && dos2unix /usr/bin/geo.sh
#install edu
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/websocket.sh && chmod +x websocket.sh && ./websocket.sh
wget https://raw.githubusercontent.com/senowahyu62/freesc/main/edu.sh && chmod +x edu.sh && screen -S edu ./edu.sh
rm -f /root/ssh-vpn.sh
rm -f /root/sstp.sh
rm -f /root/wg.sh
rm -f /root/ss.sh
rm -f /root/ssr.sh
rm -f /root/ins-vt.sh
rm -f /root/ipsec.sh
rm -f /root/set-br.sh
rm -f /root/geo.sh
rm -f /root/websocket.sh
rm -f /root/edu.sh
cat <<EOF> /etc/systemd/system/autosett.service
[Unit]
Description=autosetting
Documentation=https://geoganteng.tech
[Service]
Type=oneshot
ExecStart=/bin/bash /etc/set.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable autosett
wget -O /etc/set.sh "https://raw.githubusercontent.com/senowahyu62/freesc/main/set.sh"
chmod +x /etc/set.sh
history -c
echo "1.2" > /home/ver
clear
echo " "
echo "Installation has been completed!!"
echo " "
echo "============-Autoscript Premium-=============" | tee -a log-install.txt
echo "" | tee -a log-install.txt
echo "---------------------------------------------------" | tee -a log-install.txt
echo "" | tee -a log-install.txt
echo " >>> Service & Port" | tee -a log-install.txt
echo " - OpenSSH : 22" | tee -a log-install.txt
echo " - OpenVPN : TCP 1194, UDP 2200, SSL 442" | tee -a log-install.txt
echo " - Stunnel4 : 222, 777" | tee -a log-install.txt
echo " - Dropbear : 109, 143" | tee -a log-install.txt
echo " - Squid Proxy : 3128, 8080 (limit to IP Server)" | tee -a log-install.txt
echo " - Badvpn : 7100, 7200, 7300" | tee -a log-install.txt
echo " - Nginx : 81" | tee -a log-install.txt
echo " - Wireguard : 7070" | tee -a log-install.txt
echo " - L2TP/IPSEC VPN : 1701" | tee -a log-install.txt
echo " - PPTP VPN : 1732" | tee -a log-install.txt
echo " - SSTP VPN : 444" | tee -a log-install.txt
echo " - Shadowsocks-R : 1443-1543" | tee -a log-install.txt
echo " - SS-OBFS TLS : 2443-2543" | tee -a log-install.txt
echo " - SS-OBFS HTTP : 3443-3543" | tee -a log-install.txt
echo " - V2RAY Vmess TLS : 8443" | tee -a log-install.txt
echo " - V2RAY Vmess None TLS : 80" | tee -a log-install.txt
echo " - V2RAY Vless TLS : 2083" | tee -a log-install.txt
echo " - V2RAY Vless None TLS : 8880" | tee -a log-install.txt
echo " - Trojan : 2087" | tee -a log-install.txt
echo "" | tee -a log-install.txt
echo " >>> Server Information & Other Features" | tee -a log-install.txt
echo " - Timezone : Asia/Jakarta (GMT +7)" | tee -a log-install.txt
echo " - Fail2Ban : [ON]" | tee -a log-install.txt
echo " - Dflate : [ON]" | tee -a log-install.txt
echo " - IPtables : [ON]" | tee -a log-install.txt
echo " - Auto-Reboot : [ON]" | tee -a log-install.txt
echo " - IPv6 : [OFF]" | tee -a log-install.txt
echo " - Autoreboot On 05.00 GMT +7" | tee -a log-install.txt
echo " - Autobackup Data" | tee -a log-install.txt
echo " - Restore Data" | tee -a log-install.txt
echo " - Auto Delete Expired Account" | tee -a log-install.txt
echo " - Full Orders For Various Services" | tee -a log-install.txt
echo " - White Label" | tee -a log-install.txt
echo " - Installation Log --> /root/log-install.txt" | tee -a log-install.txt
echo "" | tee -a log-install.txt
echo " - Dev/Main : DA ORAKLE" | tee -a log-install.txt
echo " - Telegram : T.me/daorakle" | tee -a log-install.txt
echo " - Instagram : @harjarlah" | tee -a log-install.txt
echo " - Whatsapp : 08037680771" | tee -a log-install.txt
echo " - Facebook : https://www.facebook.com/Harjarlah" | tee -a log-install.txt
echo "------------------Script Created By orakle-----------------" | tee -a log-install.txt
echo ""
echo " Reboot 10 Sec"
sleep 10
rm -f setup.sh
reboot