*How can we programmatically distinguish between a failed VPN*[snip]
*connection attempt versus a successful VPN connection?*
This is a general purpose solution _everyone_ can use instantly.
For free. To connect to any one of _thousands_ of free VPN servers.
Around the world. Perfectly legally. Maintained by a university in Japan.
All the necessary free vpn files are provided in the request below
such that anyone can test it out fully to use thousands of vpn servers.
*The question is what's a reliable test of whether the connection worked*
*or failed, so that the script can either sit still on the current vpn*
*server (if successful) or move to the next vpn server (if it failed)?*
*How can we programmatically distinguish between a failed VPN*
*connection attempt versus a successful VPN connection?*
This is a general purpose solution _everyone_ can use instantly.
For free. To connect to any one of _thousands_ of free VPN servers.
Around the world. Perfectly legally. Maintained by a university in Japan.
This is a general purpose solution _everyone_ can use instantly.
For free. To connect to any one of _thousands_ of free VPN servers.
Around the world. Perfectly legally. Maintained by a university in Japan.
Define your "successful VPN connection"!! Ping test? Lantency value? Bandwidth test?
A reliable test will depend on how competent a software developer is. That is, whether the software provide output/result which is usable for determining the result of the connection or a task.
ping vpnserver.com
curl icanhazip.com
All programs have an exit code which can be checked with `errorlevel`, or `%errorlevel%` variable (if under Windows NT's CMD). It should be set according the result of the task given to the program, where zero is
commonly a successful result, and a specific non zero for specific error
code which are usually vendor specific.
If the software developer is not competent enough to set the program exit code, we can try to use the program's console output to find a specific keyword such as "connected", "successfully", etc. which is unique enough to indicate a successful result. We can use the FIND (or FINDSTR if Windows NT) tool to search for the keyword, where the tool will provide the result of
the search in form of program exit code.
Some programs generate logging outputs onto the console's standard error handle, instead of the standard output handle. So, you'll have to check first, from which console's standard handle should the keyword be searched for.
Some programs only generate logging outputs into a file using an optional command line switch. In ths case, the switch must be used and the keyword should be searched from that file.
The problem as I see is it that there's _nothing_ you can do inside the command window that is connecting to the VPN service other than kill it.
I must make it clear if you've never done it (although I thought it was obvious - so that's my mistake) that you run the command and up pops
a window but there's _nothing_ you can do _in_ that window anymore.
All you can do is control-C (or more gracefully, F4) that command window.
If it works - you control-C (or more gracefully, F4) out when you want.
If it fails - you control-C (or more gracefully, F4) out of that failure.
In summary, when you have a batch file that connects to a VPN server
(see above batch file), there's _nothing_ that I know of that you
can do after the connection in the command window that pops up.
It's not hard to manually determine success in a _different_
window because a ping or curl icanhazip needs to simply report
back a different IP address than what you happen to know is yours.
But where do you put the test for a successful VPN connection
if you want it to happen as part of the original batch command?
I have never used VPN myself, so my suggestion could be wrong:
If it works - you control-C (or more gracefully, F4) out when you want.
If it fails - you control-C (or more gracefully, F4) out of that failure.
If all you can do is hitting CTRL+C or F4 even when it fails, it would mean that, the VPN profile/setting is configured to retry connection error indefinitely (either by software default, or set manually).
In order to differentiate between success result and failed result, the VPN profile/setting should be configured not to retry indefinitely. So that, if it fails (after a number of limited retries), it'll terminates itself. And the next line in the batch file will only be executed when the connection
has failed. If it succeeds on making connection, then it'll never terminates and the next line in the batch file will never be executed (without user intervention).
There's one connection settings command line switch which involve connection retry which is set to 'infinite' by default:
--resolv-retry
That will prevent the program to never terminate when it fails to resolve server name.
I didn't know it was so easy.
I didn't know it was so easy.
It's no good if it leaks.
Very few people know how to properly write TAP and TUN software.
The companies that make virtual machine hosting, they know how
to do it. That's why their network stacks are always so complicated.
If the software was written properly, "services" are segregated
to the system side and they run with the SYSTEM account.
User space
applications run as a user, and the networking "appears ordinary"
to the applications that the user may use. You don't want stuff
running from a shell to be elevated, in case it aids some exploit
to get into the machine.
Sure, getting stuff to run on a computer is easy.
Figuring out the implications, is hard. Am I safe ?
Did I do a bad thing to my security ? These are questions
you have to constantly ask when using a computer.
I'm not sure why all that matters when all I wanted was a new IP address.
I'm not sure why all that matters when all I wanted was a new IP address.
There is a commercial subscription service, that lists all the VPN exit addresses,
for commercial purposes. While one of the free USENET server operators may not
have the money to subscribe to such a service, "anything that matters" has the
money for that subscription.
And the people who are incompetent while hiding behind a VPN, they "burn"
the address they're using, and ruin it for the next user.
What other free vpn service do you propose that you feel is much safer?
I have no dog in the hunt but my question would be that when it comes to
a free VPN server/service, what do we know about the folks who operate
the server, since they get to see all of the traffic that flows through there?
With a commercial service, there's presumably a reputation that
needs to be upheld so that a steady stream of customers will continue to
use the service, but there probably isn't much reputational pressure
being felt by the operators of a free service. As a result, if I were to
use a VPN service, it probably wouldn't be one of the free offerings.
What other free vpn service do you propose that you feel is much safer?
I have no dog in the hunt but my question would be that when it comes to
a free VPN server/service, what do we know about the folks who operate
the server, since they get to see all of the traffic that flows through there? With a commercial service, there's presumably a reputation that
needs to be upheld so that a steady stream of customers will continue to
use the service, but there probably isn't much reputational pressure
being felt by the operators of a free service. As a result, if I were to
use a VPN service, it probably wouldn't be one of the free offerings.
In article <news:od5f2it2d6saucdd7phfor5tnd0uodssik@4ax.com>, Char Jackson ><none@none.invalid> says...
What other free vpn service do you propose that you feel is much safer?
I have no dog in the hunt but my question would be that when it comes to
a free VPN server/service, what do we know about the folks who operate
the server, since they get to see all of the traffic that flows through
there? With a commercial service, there's presumably a reputation that
needs to be upheld so that a steady stream of customers will continue to
use the service, but there probably isn't much reputational pressure
being felt by the operators of a free service. As a result, if I were to
use a VPN service, it probably wouldn't be one of the free offerings.
I'm going to use strong words because all the fools are coming out now.
And worse, none of these fools ever has an answer to a simple question.
What other free vpn service do you propose that you feel is much safer?
I'll dumb it down for you. Why do you think any free VPN service would
be safe? Why do you think its free in the first place?
In article <news:6uaf2i15m426gt6sseeejrv3vap94j3h04@4ax.com>, Char Jackson ><none@none.invalid> says...
I'll dumb it down for you. Why do you think any free VPN service would
be safe? Why do you think its free in the first place?
I will dumb it down for you. The instant someone mentions VPN, there is >*always* a fool who starts screaming how much they fear VPN, and it's even >sooner than in an instant if you put the word "free" in front of VPN.
There should be a "VPN Law" which says something like that, where that fool >*never* adds a single thing that everyone doesn't already long ago know.
It's even worse than that fool never adding anything that everyone doesn't >already know in that the fool *never* provides a solution to their problem.
If you don't realize how foolish these people are, then allow me to try to >provide an example, although you should have gotten the point by now.
USER: I think I'll go out for a stroll.
FOOL: You can't do that! It's too dangerous.
USER: Why?
FOOL: There are bad things out there, that's why. Very bad I say.
USER: Like what?
FOOL: Everything. Everything is bad out there. Don't do it. Baad!
USER: But can't you name something that I don't already know?
FOOL: Oh yeah! Cars. Dogs. Mosquitoes. Lightning bolts too! Baaad!
USER: Cars? Dogs? Bugs? Lightning? But everyone knows all that?
FOOL: Yes. But I feel the need to scare you with all that. Baaaad!
USER: But can't you tell me something that I don't already know?
FOOL: Of course not. I'm a fool after all. I say Baaaaaaaaaaaaad!
USER: OK. Well then, after all that, what's your solution?
FOOL: I never thought about it, so, no. I have no solution.
USER: No solution?
FOOL: Yup. Nothing. I have nothing but Baaaaaaaaaaaaaaaaaaaaaaaaaaad!
USER: OK. But why did you bother to warn me of what I always knew?
FOOL: I'll dumb it down for you. VPN Baaaaaaaaaaaaaaaaaaaaaaaaaaaaad!
It never changes.
It happens every single time someone mentions VPN, & especially free VPN. >FOOL: VPN Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad!
FOOL: Free VPN Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad!
FOOL: Free VPN Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad!
Now you've done it! You mentioned VPN, & especially free VPN.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:21:28 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,392 |