Scott Lurndal writes:
> Better yet, to also work in the Windows File Explorer, add the full path
> # auth-user-pass
> # auth-user-pass freeopenvpn.txt
> auth-user-pass C:\\full-path-to\\configs\\freeopenvpn.txt
Since everyone can make use of a free VPN now and then, especially to choose
the country of your current IP address, here's the automated batch file that
I've ended up with (for now anyway). If you can improve it for everyone,
please do as anyone should be able to run this to get a free VPN working.
I've automated as much as I can the two steps needed each time it's run.
A. Obtain the daily password.
B. Put that daily password into the text login/password file.
C. Then connect to the free VPN (many config files are available).
If you can improve this, that would help everyone even more than I did.
1. Create freeopenvpn.txt containing just these two lines below.
(the first line is the login (which doesn't change often).
(the second line is the password (which changes daily).
===< below are the contents of freeopenvpn.txt >===
freeopenvpn
350048579
===< above are the contents of freeopenvpn.txt >===
2. Download the static freeopenvpn UDP or TCP configuration file.
(USA_freeopenvpn_udp.ovpn, USA_freeopenvpn_tcp.ovpn)
<
https://www.freeopenvpn.org/premium.php?cntid=USA&lang=en>
You only need to change one line in this static config file.
Change this: auth-user-pass
Change it to: auth-user-pass C:\\full-path-to\\configs\\freeopenvpn.txt
3. Run this batch file each time you wish to connect to a free VPN.
a. It will tell you the URL to get the latest daily password.
b. It will open up the text file so you can change that password.
c. Then it will connect to that free openvpn server for you.
===< below are the contents of alt.msdos.bat freeopenvpn.bat >===
@echo off
REM freeopenvpn.bat (as found on alt.msdos.bat)
set editor=C:\windows\notepad.exe
echo %editor% "c:\tmp\vpn\config\free\freeopenvpn.txt" &
pause
set browser=C:\path-to\chrome.exe
echo %browser% "
https://www.freeopenvpn.org/premium.php?cntid=USA&lang=en" &
pause
set configdir= C:\full-path-to\configs\
cd %configdir%
set configcmd=C:\path-to\openvpn\bin\openvpn.exe
REM (you can choose which, of many, free openvpn files to download)
set configfile=USA_freeopenvpn_udp.ovpn
%configcmd% %configdir%%configfile%
REM pause
===< above are the contents of alt.msdos.bat freeopenvpn.bat >===
That's the most I can, so far, automate this script (with my skills).
Any improvements will help anyone who finds this thread in a search.