123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- #!/bin/bash
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e ""
- echo -e " [1] Restart All Services"
- echo -e " [2] Restart OpenSSH"
- echo -e " [3] Restart Dropbear"
- echo -e " [4] Restart Stunnel4"
- echo -e " [5] Restart OpenVPN"
- echo -e " [6] Restart Squid"
- echo -e " [7] Restart Nginx"
- echo -e " [8] Restart Badvpn"
- echo -e " [x] Exit"
- echo -e ""
- read -p " Select From Options [1-8 or x] : " Restart
- echo -e ""
- echo -e "======================================"
- sleep 1
- clear
- case $Restart in
- 1)
- clear
- /etc/init.d/ssh restart
- /etc/init.d/dropbear restart
- /etc/init.d/stunnel4 restart
- /etc/init.d/openvpn restart
- /etc/init.d/fail2ban restart
- /etc/init.d/cron restart
- /etc/init.d/nginx restart
- /etc/init.d/squid restart
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7100 --max-clients 1000
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 1000
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 1000
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e " Service/s Restarted "
- echo -e ""
- echo -e "======================================"
- exit
- ;;
- 2)
- clear
- /etc/init.d/ssh restart
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e " SSH Service Restarted "
- echo -e ""
- echo -e "======================================"
- exit
- ;;
- 3)
- clear
- /etc/init.d/dropbear restart
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e " Dropbear Service Restarted "
- echo -e ""
- echo -e "======================================"
- exit
- ;;
- 4)
- clear
- /etc/init.d/stunnel4 restart
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e " Stunnel4 Service Restarted "
- echo -e ""
- echo -e "======================================"
- exit
- ;;
- 5)
- clear
- /etc/init.d/openvpn restart
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e " OpenVPN Service Restarted "
- echo -e ""
- echo -e "======================================"
- exit
- ;;
- 6)
- clear
- /etc/init.d/squid restart
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e " Squid3 Service Restarted "
- echo -e ""
- echo -e "======================================"
- exit
- ;;
- 7)
- clear
- /etc/init.d/nginx restart
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e " Nginx Service Restarted "
- echo -e ""
- echo -e "======================================"
- exit
- ;;
- 8)
- clear
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7100 --max-clients 500
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 500
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 500
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7400 --max-clients 500
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7500 --max-clients 500
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7600 --max-clients 500
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7700 --max-clients 500
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7800 --max-clients 500
- screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7900 --max-clients 500
- echo -e ""
- echo -e "======================================"
- echo -e ""
- echo -e " Badvpn Badvpn Service Restarted "
- echo -e ""
- echo -e "======================================"
- exit
- ;;
- x)
- clear
- exit
- ;;
- esac
|