independentt

https://github.com/ind3p3nd3nt/sickvpn.vip

Sep 21st, 2020
3,875
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. # installs OpenVPN on a Google Cloud Virtual Machine with ipforwarding enabled or install client to connect our servers for free
  3. # we support freedom of speech and privacy
  4. apt-get install -y openvpn libssl-dev wget iptables python3-dev python3-pip;
  5. pip3 install requests;
  6. read -p "1.Client or 2.server installation (1/2)?" choice
  7. case "$choice" in
  8.   1 )
  9.     pkill openvpn
  10.     systemctl disable openvpn@server
  11.     systemctl stop openvpn@server
  12.     iptables -F INPUT
  13.     iptables -F OUTPUT     
  14.     wget -O sickvpn.conf https://pastebin.com/raw/yvNnT0uF --no-check-certificate && wget -O pingvpn.py https://github.com/ind3p3nd3nt/sickvpn.vip/raw/master/pingvpn.py --no-check-certificate && python3 pingvpn.py && openvpn sickvpn.conf&;;
  15.   2 )
  16.     wget -O /etc/openvpn/server.conf https://pastebin.com/raw/SrYcJGhK --no-check-certificate
  17.     systemctl enable openvpn@server
  18.     systemctl start openvpn@server
  19.     # Add the following iptables rule so that traffic can leave the VPN. Change the eth0 with the public network interface of your server
  20.     iptables -t nat -A POSTROUTING -s 10.10.110.0/24 -o ens4 -j MASQUERADE
  21.     # Allow IP forwarding
  22.     sed -i 's|#net.ipv4.ip_forward=1|net.ipv4.ip_forward=1|' /etc/sysctl.conf
  23.     echo 1 > /proc/sys/net/ipv4/ip_forward;;
  24.   * ) echo "Bad answer";;      
  25. esac
  26. exit 0
RAW Paste Data