Advertisement
edmar031492

Install Softether Binaries

Jul 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo -e "\nPlease wait until Softether installation completed ...\n"
  4.  
  5. # Clearing SE VPNServer & dnsmasq if exist
  6. /etc/init.d/vpnserver stop && rm -rf /usr/local/vpnserver
  7. apt remove dnsmasq -y && rm /etc/dnsmasq.conf
  8.  
  9. # Installing necessary requirements
  10. apt-get -y update
  11. apt-get install expect apache2 checkinstall build-essential dnsmasq fail2ban -y
  12. wget http://www.softether-download.com/files/softether/v4.27-9668-beta-2018.05.29-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.27-9668-beta-2018.05.29-linux-x64-64bit.tar.gz -O /tmp/softether-vpnserver.tar.gz
  13. tar -xzf /tmp/softether-vpnserver.tar.gz -C /tmp
  14. cd /tmp/vpnserver && expect -c 'spawn make; expect number:; send 1\r; expect number:; send 1\r; expect number:; send 1\r; interact'
  15. mv /tmp/vpnserver /usr/local && chmod 600 * /usr/local/vpnserver/ && chmod 700 /usr/local/vpnserver/vpncmd && chmod 700 /usr/local/vpnserver/vpnserver
  16. rm -rf /tmp/softether-vpnserver.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement