Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # ,___
- # ¡ _`
- # ª_/() VPN Connect
- # |\` `, http://pastebin.com/u/noes1s
- # _·' l
- #Root>Dependencies>Internet>Install>Config>Start/Stop
- ((UID)) && echo -e "\n\e[1;31m"' (!) '"\e[msudo bash $0\n" && exit 1
- for d in vpnc; {
- which $d || dpkg-query -l $d|grep -w 'ii' || {
- ! ping -c2 tiny.cc && echo -e "\n\e[1;31m"' (!) '"Internet required\e[m\n" && exit 1
- pkill synaptic && apt-get install -y $d ;} ;} >/dev/null
- echo 'IPsec ID hss
- IPsec secret hss
- IPsec gateway 68.68.107.101
- Xauth password ****
- Xauth username ****' >> /tmp/vpn.conf
- ! ps -A |grep vpnc-connect &&
- vpnc-connect /tmp/vpn.conf &&
- echo 'message:VPN [ ENABLED ]' | zenity --notification --listen ||
- pkill -9 vpnc-connect &&
- echo 'message:VPN [ DISABLED ]' | zenity --notification --listen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement