| Line 1: |
Line 1: |
| − | == VPN provider == | + | ==VPN provider== |
| | Private Intenet Access: [https://www.privateinternetaccess.com/ Private Internet Acess] | | Private Intenet Access: [https://www.privateinternetaccess.com/ Private Internet Acess] |
| − | | + | ==PiVPN== |
| − | == Linux Connection == | + | http://www.pivpn.io/ |
| | + | ==Linux Connection== |
| | 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 [[File:OpenvpnConfigurationFiles.zip|openvpn configuration files]] | + | Download and extract the openvpn configuration files:<br /> |
| | + | [http://wiki.herrerosolis.com/images/9/98/OpenvpnConfigurationFiles.zip openVPN config files and cert] |
| | <nowiki> | | <nowiki> |
| − | #!/bin/bash | + | #!/bin/bash |
| − | WORKING_DIR=$( pwd ) | + | WORKING_DIR=$( pwd ) |
| − | clear | + | clear |
| − | echo "Select Server to connect:" | + | echo "Select Server to connect:" |
| − | echo | + | echo |
| − | declare -a servers | + | declare -a servers |
| − | cnt=1 | + | cnt=1 |
| − | for entry in "$search_dir"$( pwd )/*.ovpn | + | for entry in "$search_dir"$( pwd )/*.ovpn |
| − | do | + | do |
| − | echo "$cnt) $entry" | sed "s#${WORKING_DIR}/##" | sed 's#.ovpn##'
| + | echo "$cnt) $entry" | sed "s#${WORKING_DIR}/##" | sed 's#.ovpn##' |
| − | servers[${#servers[@]}+1]=$(echo "$entry" | sed "s#${WORKING_DIR}/##" | sed 's#.ovpn##')
| + | servers[${#servers[@]}+1]=$(echo "$entry" | sed "s#${WORKING_DIR}/##" | sed 's#.ovpn##') |
| − | cnt=$(( cnt + 1))
| + | 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}" |
| | + | </nowiki> |
| | + | |
| | + | ==Create an alias for the script== |
| | + | <nowiki>echo 'alias vpn="PATH_TO_SCRIPT"' >> ~/.bash_alias && . ~/.bash_alias </nowiki> |
| | | | |
| − | done
| + | == '''[https://hispasec.us16.list-manage.com/track/click?u=dd62599a9195e52f2dca2ab9a&id=3ea4b57e62&e=e1fb43e834 CVE-2019-14899]''' Mitigation (Linux) == |
| − | read option_selection
| + | <syntaxhighlight lang="bash"> |
| − | clear
| + | sysctl -ar '\.rp_filter' | awk '{print $1}' | grep -v .lo. | xargs -I ARG -n 1 -t sudo sysctl -w "ARG=1" |
| − | echo "Connecting to: ${servers[$option_selection]}"
| + | </syntaxhighlight> |
| − | 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}" | |
| − | </nowiki>
| |