PROBLEM AUTOMATIC CONNECTION
-
- Posts: 9
- Joined: Fri Dec 30, 2022 9:55 am
PROBLEM AUTOMATIC CONNECTION
IN SOFTWARE VPN CLIENT MANAGER This feature should be added so that the user can choose that if it has a number of VPN connections and each one is disconnected, it will automatically connect to the next connection
-
- Site Admin
- Posts: 2207
- Joined: Sat Mar 09, 2013 5:37 am
Re: PROBLEM AUTOMATIC CONNECTION
What is the function intended to be used for?
It would be possible to modify the source code and add such features, but features that are only beneficial to specific users may not be adopted in the main tree.
For functions that are used only by you, it may be quicker to implement them externally using scripts or the like.
It would be possible to modify the source code and add such features, but features that are only beneficial to specific users may not be adopted in the main tree.
For functions that are used only by you, it may be quicker to implement them externally using scripts or the like.
-
- Posts: 9
- Joined: Fri Dec 30, 2022 9:55 am
Re: PROBLEM AUTOMATIC CONNECTION
Hello
Thank you for your reply
Yes, this is a feature that can be comprehensive and is needed by many
For example, I have 5 VPN connections, if each of them is disconnected, it will automatically connect the next connection. Do you understand what I mean?
And the new problem that I observed, in the list of some servers, they also have UDP capability, but when we make the connection manually and want to connect by UDP, we cannot, and only TCP.
Thank you for your reply
Yes, this is a feature that can be comprehensive and is needed by many
For example, I have 5 VPN connections, if each of them is disconnected, it will automatically connect the next connection. Do you understand what I mean?
And the new problem that I observed, in the list of some servers, they also have UDP capability, but when we make the connection manually and want to connect by UDP, we cannot, and only TCP.
-
- Site Admin
- Posts: 2207
- Joined: Sat Mar 09, 2013 5:37 am
Re: PROBLEM AUTOMATIC CONNECTION
I know how it works, but I don't understand why it is needed.
In what situations would you use that feature?
In what situations would you use that feature?
-
- Posts: 9
- Joined: Fri Dec 30, 2022 9:55 am
Re: PROBLEM AUTOMATIC CONNECTION
Yes, I want to always be connected to the VPN
Becaue in iran internet is filter
Becaue in iran internet is filter
-
- Site Admin
- Posts: 2207
- Joined: Sat Mar 09, 2013 5:37 am
Re: PROBLEM AUTOMATIC CONNECTION
I think it would be good to write a script that monitors the connection status with vpncmd, and if the connection is lost, gets the next host from the list and connects to it.
-
- Posts: 9
- Joined: Fri Dec 30, 2022 9:55 am
Re: PROBLEM AUTOMATIC CONNECTION
Yes, you are right, but this is done by a program or script specialist, I can't do it
can you؟
can you؟
-
- Site Admin
- Posts: 2207
- Joined: Sat Mar 09, 2013 5:37 am
Re: PROBLEM AUTOMATIC CONNECTION
By using the vpncmd command line tool, even unskilled people can automate VPN connections.
As a test, I wrote a script that monitors until the connection setting with the specified name becomes unconnected or retrying.
I think you can accomplish what you want by writing it repeatedly for as many connection settings as you want to challenge the connection, and jumping back to the beginning at the end.
set ACCT=vpn
vpncmd /client localhost /cmd:AccountConnect %ACCT%
echo %errorlevel%
:checkloop
sleep 3
vpncmd /client localhost /programming /cmd:AccountStatusGet %ACCT% > tmp.txt
set err=%errorlevel%
if %err% equ 37 goto next
find "Retry" tmp.txt
set err=%errorlevel%
if %err% neq 0 goto checkloop
:next
As a test, I wrote a script that monitors until the connection setting with the specified name becomes unconnected or retrying.
I think you can accomplish what you want by writing it repeatedly for as many connection settings as you want to challenge the connection, and jumping back to the beginning at the end.
set ACCT=vpn
vpncmd /client localhost /cmd:AccountConnect %ACCT%
echo %errorlevel%
:checkloop
sleep 3
vpncmd /client localhost /programming /cmd:AccountStatusGet %ACCT% > tmp.txt
set err=%errorlevel%
if %err% equ 37 goto next
find "Retry" tmp.txt
set err=%errorlevel%
if %err% neq 0 goto checkloop
:next
-
- Posts: 9
- Joined: Fri Dec 30, 2022 9:55 am
Re: PROBLEM AUTOMATIC CONNECTION
Hello
I sent photos of the steps
But I had a problem
Did I do it right?
I want it to automatically select from the list of servers
https://ibb.co/WvbH8xt
https://ibb.co/2jpRqDX
I sent photos of the steps
But I had a problem
Did I do it right?
I want it to automatically select from the list of servers
https://ibb.co/WvbH8xt
https://ibb.co/2jpRqDX
-
- Site Admin
- Posts: 2207
- Joined: Sat Mar 09, 2013 5:37 am
Re: PROBLEM AUTOMATIC CONNECTION
My script is an example in a windows batch file.
(vpncmd itself does not have the ability to handle conditional branches)
(vpncmd itself does not have the ability to handle conditional branches)
-
- Posts: 9
- Joined: Fri Dec 30, 2022 9:55 am
Re: PROBLEM AUTOMATIC CONNECTION
HELLO
THANKS DO NOT ANY SOLVING WAY FOR THIS?
ANOTHER QUESTION :Why is it that when we disconnect from a public server, that server is automatically removed from my list (VPN CLIENT MANAGER)!!!
FOR THIS PROBLEM IS ANY WAY :
https://www.vpnusers.com/viewtopic.php?f=15&t=68077
THANKS DO NOT ANY SOLVING WAY FOR THIS?
ANOTHER QUESTION :Why is it that when we disconnect from a public server, that server is automatically removed from my list (VPN CLIENT MANAGER)!!!
FOR THIS PROBLEM IS ANY WAY :
https://www.vpnusers.com/viewtopic.php?f=15&t=68077
-
- Site Admin
- Posts: 2207
- Joined: Sat Mar 09, 2013 5:37 am
Re: PROBLEM AUTOMATIC CONNECTION
Is this a question about VPN Gate?
The VPN Gate function is developed by the author alone, apart from his OSS community of SoftEther VPN, and the details are not disclosed.
I don't think it's possible to automatically manipulate or change the functionality.
The VPN Gate function is developed by the author alone, apart from his OSS community of SoftEther VPN, and the details are not disclosed.
I don't think it's possible to automatically manipulate or change the functionality.
-
- Posts: 9
- Joined: Fri Dec 30, 2022 9:55 am
Re: PROBLEM AUTOMATIC CONNECTION
HI
FOR SOFTETHER VPNGATE IN THIS PICTURE YOU CAN SEE:
WHEN I DISCONNECT THE CONNECTION DELETE FROM LIST WHY?
https://ibb.co/wz8yPwn
FOR SOFTETHER VPNGATE IN THIS PICTURE YOU CAN SEE:
WHEN I DISCONNECT THE CONNECTION DELETE FROM LIST WHY?
https://ibb.co/wz8yPwn
-
- Site Admin
- Posts: 2207
- Joined: Sat Mar 09, 2013 5:37 am
Re: PROBLEM AUTOMATIC CONNECTION
Did you create the connection settings manually?
Automatically created ones may be automatically deleted.
Automatically created ones may be automatically deleted.