Surfshark city

This commit is contained in:
iLTeoooD
2020-04-30 23:20:33 +02:00
parent d06a9b6a51
commit 97cbcc9e4a
4 changed files with 5 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ rm -rf ovpn_configs*
wget -O ovpn_configs.zip https://api.surfshark.com/v1/server/configurations
unzip ovpn_configs.zip -d ovpn_configs
cd ovpn_configs
VPN_FILE=$(ls | grep "${SURFSHARK_COUNTRY}" | grep "${CONNECTION_TYPE}" | shuf | head -n 1)
VPN_FILE=$(ls | grep "${SURFSHARK_COUNTRY}" | grep "${SURFSHARK_CITY}" | grep "${CONNECTION_TYPE}" | shuf | head -n 1)
echo Choosed: ${VPN_FILE}
printf "${SURFSHARK_USER}\n${SURFSHARK_PASSWORD}" > vpn-auth.txt
openvpn --config $VPN_FILE --auth-user-pass vpn-auth.txt