Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Version 1 | Made by Tanner 11:11pm - 6am | Feb 11 2018 - Feb 12 2018
- ## Version 2 Edited - 8:30pm - 10:51pm | Feb 12 2018
- ## Version 3 - Feb 18 - 21 2018 |
- ## Version 3.1 - July, 22 2018 | Updated download links finally, Version 9668
- ## Version 3.2 - November, 5 2018 | Updated download links again, Version 9669
- ## Version 3.3 - October, 2 2020 | Made the script look a bit better; Updated links, Version 9745
- import subprocess
- def t(cmd):
- subprocess.call(cmd, shell=True)
- server = "wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz"
- client = "wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz"
- script = "curl https://pastebin.com/raw/6SdqXQFc > /etc/init.d/vpnserver/vpnserver"
- make_s = "curl https://pastebin.com/raw/B26X7vg7 > server.sh"
- make_c = "curl https://pastebin.com/raw/Yii9pbzu > client.sh"
- service = "curl https://pastebin.com/raw/h3fQBNVQ > service.sh"
- setup = "curl https://pastebin.com/raw/9FMUQjDg > setup.py"
- mv = "curl https://pastebin.com/raw/MpdWTPrv > move.sh"
- print "SoftEther Setup by Tanner"
- t("sleep 5")
- OS = raw_input("Debian or CentOS? ---> ")
- t("echo Downloading needed dependancies...")
- t("sleep 5")
- if OS == "Debian" or "debian" or "D" or "d":
- t("apt-get update && apt-get upgrade -y;apt-get install build-essential -y")
- elif OS == "CentOS" or "centos" or 'c' or 'C':
- t('yum groupinstall "Development Tools" -y; yum install nano -y; yum install wget -y')
- t("clear")
- t("echo Downloading server side files...")
- t("sleep 5")
- t(server)
- t("clear")
- t("echo Extracting files...")
- t("sleep 5")
- t("tar xzvf softether-vpnserver*")
- t("clear")
- t("echo Making .sh file then compiling server...")
- t("sleep 5")
- t(make_s)
- t("chmod 777 server.sh")
- t("./server.sh")
- t("clear")
- t("echo Making startup script to start the vpnserver on boot...")
- t("sleep 5")
- t(script)
- if OS == "Debian":
- t("chkconfig --add vpnserver | update-rc.d vpnserver defaults")
- elif OS == "CentOS":
- t("chmod 755 /etc/init.d/vpnserver && /etc/init.d/vpnserver start")
- t("clear")
- t("echo Downloading client files...")
- t("sleep 5")
- t(client)
- t("clear")
- t("echo Unziping the file...")
- t("sleep 5")
- t("tar xzvf softether-vpnclient*")
- t("clear")
- t("echo Making .sh file then compiling server...")
- t("sleep 5")
- t(make_c)
- t("chmod 777 *")
- t("sh client.sh")
- t("sleep 5")
- t('echo Moving "vpnserver" and "vpnclient" to /usr/local...')
- t("sleep 5")
- t(mv)
- t("sh move.sh")
- t("clear")
- print "Starting VPN server and client..."
- t(service)
- t("sh service.sh")
- t("sleep 5")
- t("clear")
- t("echo Put in the needed information in a few seconds...")
- t("sleep 5")
- t(setup)
- t("python setup.py")
- t("echo Deleting uneeded files...")
- t("rm -rf *.gz")
- t("rm -rf move.sh")
- t("rm -rf client.sh")
- t("r, -rf server.sh")
- t("rm -rf mv.sh")
- t("rm -rf setup.py")
- t("sleep 3")
- print """Everything is done & should work properly
- This script was made by Tanner! here is my contact info:
- email: Tanner@tfwno.gf
- """
Add Comment
Please, Sign In to add comment