Difference between revisions of "VPN"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "== Private Intenet Access == VPN provider: [https://www.privateinternetaccess.com/ Private Internet Acess] == Linux Connection == In order to connect using Linux you need to...") |
Rafahsolis (talk | contribs) |
||
| Line 5: | Line 5: | ||
In order to connect using Linux you need to install openvpn | In order to connect using Linux you need to install openvpn | ||
<nowiki>sudo apt-get install openvpn</nowiki> | <nowiki>sudo apt-get install openvpn</nowiki> | ||
| − | + | Download and extract the openvpn configuration files | |
| − | <nowiki> | + | <nowiki> |
#!/bin/bash | #!/bin/bash | ||
WORKING_DIR=$( pwd ) | WORKING_DIR=$( pwd ) | ||
| Line 24: | Line 24: | ||
clear | clear | ||
echo "Connecting to: ${servers[$option_selection]}" | echo "Connecting to: ${servers[$option_selection]}" | ||
| − | echo "Username: | + | echo "Username: PUT_YOUR_USERNAME_HERE_IF_YOU_WHANT_TO_HAVE_FAST_ACCESS_WHEN_PROMT" |
| − | echo "Password: | + | echo "Password: PUT_YOUR_PASSWORD_HERE_IF_YOU_WHANT_TO_HAVE_FAST_ACCESS_WHEN_PROMT" |
#tmp=$(echo "'${vms[$vm]}'") | #tmp=$(echo "'${vms[$vm]}'") | ||
config_file="${servers[$option_selection]}.ovpn" | config_file="${servers[$option_selection]}.ovpn" | ||
sudo openvpn --config "${config_file}" | sudo openvpn --config "${config_file}" | ||
| − | </nowiki> | + | </nowiki> |
Revision as of 01:54, 22 March 2015
Private Intenet Access
VPN provider: Private Internet Acess
Linux Connection
In order to connect using Linux you need to install openvpn
sudo apt-get install openvpn
Download and extract the openvpn configuration files
#!/bin/bash
WORKING_DIR=$( pwd )
clear
echo "Select Server to connect:"
echo
declare -a servers
cnt=1
for entry in "$search_dir"$( pwd )/*.ovpn
do
echo "$cnt) $entry" | sed "s#${WORKING_DIR}/##" | sed 's#.ovpn##'
servers[${#servers[@]}+1]=$(echo "$entry" | sed "s#${WORKING_DIR}/##" | sed 's#.ovpn##')
cnt=$(( cnt + 1))
done
read option_selection
clear
echo "Connecting to: ${servers[$option_selection]}"
echo "Username: PUT_YOUR_USERNAME_HERE_IF_YOU_WHANT_TO_HAVE_FAST_ACCESS_WHEN_PROMT"
echo "Password: PUT_YOUR_PASSWORD_HERE_IF_YOU_WHANT_TO_HAVE_FAST_ACCESS_WHEN_PROMT"
#tmp=$(echo "'${vms[$vm]}'")
config_file="${servers[$option_selection]}.ovpn"
sudo openvpn --config "${config_file}"