Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo -e "\nPlease wait until Softether installation completed ...\n"
- # Clearing SE VPNServer & dnsmasq if exist
- /etc/init.d/vpnserver stop && rm -rf /usr/local/vpnserver
- apt remove dnsmasq -y && rm /etc/dnsmasq.conf
- # Installing necessary requirements
- apt-get -y update
- apt-get install expect apache2 checkinstall build-essential dnsmasq fail2ban -y
- 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
- tar -xzf /tmp/softether-vpnserver.tar.gz -C /tmp
- cd /tmp/vpnserver && expect -c 'spawn make; expect number:; send 1\r; expect number:; send 1\r; expect number:; send 1\r; interact'
- mv /tmp/vpnserver /usr/local && chmod 600 * /usr/local/vpnserver/ && chmod 700 /usr/local/vpnserver/vpncmd && chmod 700 /usr/local/vpnserver/vpnserver
- rm -rf /tmp/softether-vpnserver.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement