Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add www.vpngate.net as a provider to the openvpn script #10

Open
ryanniehaus opened this issue Dec 28, 2015 · 1 comment
Open

Add www.vpngate.net as a provider to the openvpn script #10

ryanniehaus opened this issue Dec 28, 2015 · 1 comment

Comments

@ryanniehaus
Copy link
Owner

@famewolf made this comment in Issue #1 : "Oh I didn't mention them but strictly as an FYI there is also freevpnsoftware.net and http://www.vpngate.net/ both of which do not use username/password. The only problem with vpngate is that even when you find a handful that work the NEXT time you want to use them they are defunct. When you visit the website it pulls up a random amount of nodes for you to use."

This issue is meant to track adding www.vpngate.net as a provider. (Not sure this one is really plausible given the way it works)

@famewolf
Copy link

I found the following code for vpngate that works ok standalone to grab entries by country....

#!/bin/bash ###################################### MRP080425 - GetVPNgateConfig.sh v0.2b if [ "$1" = "" ] then echo "Usage: GetVPNgateConfig.sh " exit fi path="/home/famewolf/vpn/vpngate" wget -q http://www.vpngate.net/en/ -O - | grep "
$1" > ${path}'/vpngate.html' country=${1/" "/"_"} if ls ${path}/${country}_VPNgate\* 1> /dev/null 2>&1; then rm ${path}/${country}_VPNgate\* ; fi counter=1 while read line do line=${line/_openvpn/'http':'//www.vpngate.net/common/openvpn_download'} line=${line/\'>_} case "$line" in _udp=[1-9]_) line=${line/udp=/port=} line=${line/&tcp=_port=/&port=} line=$line'&udp=1 -O '$path/${country}'_VPNgate'${counter}'.ovpn' ;; *tcp=[1-9]_) line=${line/tcp=/port=} line=${line/&udp=*sid=/&sid=} line=$line'&tcp=1 -O '$path/${country}'_VPNgate'${counter}'.ovpn' ;; *) continue esac line=${line/fqdn/host} wget -q $line > /dev/null if [ $? -ne 0 ]; then continue; fi counter=$((counter+1)) done < ${path}'/vpngate.html' rm ${path}/vpngate.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants