Hello, I have chosen to commit to NordVPN as my goto for IP virtualisation.
I have an IP meter that shows if Nord is running. What I'd like to try and do is have the meter understand if the VPN is connected, not simply running in the background.
Anyone try this and succeed? I'd love to hear recommendations.
There are many ways to be different - there is only one way to be yourself - be amazing at it
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
Does your VPN software create a virtual network adapter? If so, you could create a measure that looks for your virtual adapter. I do this all the time, but I'm using Juniper's VPN software, so I'm not sure if it applies to NordVPN.
While VPN's use different approaches to taking over things, I would think for most, when you are actually "connected" to the VPN, the "Best" adapter, which will indicate the "active" one, will be the name of the virtual adapter the VPN creates.
So as long as you know what that value is for "Best" when the VPN is not connected, and what it is when it is connected, you should be able to detect and act on it.
Remember that SysInfo requires DyanmicVariables=1 on it to detect changes to "Best" in real-time.
Looks to me like NordVPN creates a virtual TAP adapter, just like my IPVanish does...
Hello, I am not sure what I am looking for, in terms of what "best" is on my system. I know you cannot tell me specifically, but perhaps some kind of indicator? Should I be looking for a txt file or similar, an xml? There are some .config files but nothing that looks like an adapter name.
EDIT: Never mind - I see now the code you provided will tell me that
There are many ways to be different - there is only one way to be yourself - be amazing at it
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.