#!/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- ifconfig.co); clear 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/axkami/Dog/main/1/cf.sh && chmod +x cf.sh && ./cf.sh #install ssh ovpn wget https://raw.githubusercontent.com/axkami/Dog/main/1/ssh-vpn.sh && chmod +x ssh-vpn.sh && screen -S ssh-vpn ./ssh-vpn.sh wget https://raw.githubusercontent.com/axkami/Dog/main/1/sstp.sh && chmod +x sstp.sh && screen -S sstp ./sstp.sh #install wireguard wget https://raw.githubusercontent.com/axkami/Dog/main/1/wg.sh && chmod +x wg.sh && screen -S wg ./wg.sh #log wget https://raw.githubusercontent.com/axkami/Dog/main/2/log.sh && dos2unix log.sh && chmod +x log.sh && ./log.sh rm -f /root/ssh-vpn.sh rm -f /root/sstp.sh rm -f /root/ss.sh rm -f /root/ssr.sh rm -f /root/wg.sh rm -f /root/ins-vt.sh rm -f /root/ipsec.sh rm -f /root/set-br.sh rm -f /root/ins-trojango.sh rm -f /root/log.sh cat < /etc/systemd/system/autosett.service [Unit] Description=autosetting Documentation=https://premium-server.xyz [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/agian123/gasken/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 : 902, 777" | tee -a log-install.txt echo " - Dropbear : 109, 143" | tee -a log-install.txt echo " - WebSocket/WS SSL : 443" | tee -a log-install.txt echo " - WebSocket/WS Non SSL : 2082" | tee -a log-install.txt echo " - WebSocket/WS Ovpn : 2086" | 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 "" | 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 "==========================-[ AUTOSCRIPT PREMIUM ]-===========================" | tee -a log-install.txt echo " Reboot 10 Sec" sleep 10 rm -f setup.sh reboot