Difference between revisions of "VPN"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) Tag: visualeditor |
||
| (5 intermediate revisions by the same user not shown) | |||
| 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 configuration files:<br /> | 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##' | |
| − | + | 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}" | ||
| + | </nowiki> | ||
| + | |||
| + | ==Create an alias for the script== | ||
| + | <nowiki>echo 'alias vpn="PATH_TO_SCRIPT"' >> ~/.bash_alias && . ~/.bash_alias </nowiki> | ||
| − | + | == '''[https://hispasec.us16.list-manage.com/track/click?u=dd62599a9195e52f2dca2ab9a&id=3ea4b57e62&e=e1fb43e834 CVE-2019-14899]''' Mitigation (Linux) == | |
| − | + | <syntaxhighlight lang="bash"> | |
| − | + | sysctl -ar '\.rp_filter' | awk '{print $1}' | grep -v .lo. | xargs -I ARG -n 1 -t sudo sysctl -w "ARG=1" | |
| − | + | </syntaxhighlight> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | sudo | ||
| − | |||
Latest revision as of 15:00, 16 December 2019
VPN provider
Private Intenet Access: Private Internet Acess
PiVPN
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:
openVPN config files and cert
#!/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}"
Create an alias for the script
echo 'alias vpn="PATH_TO_SCRIPT"' >> ~/.bash_alias && . ~/.bash_alias
CVE-2019-14899 Mitigation (Linux)
sysctl -ar '\.rp_filter' | awk '{print $1}' | grep -v .lo. | xargs -I ARG -n 1 -t sudo sysctl -w "ARG=1"