Page 1 of 1

PROBLEM AUTOMATIC CONNECTION

Posted: Sun Jan 01, 2023 4:16 am
by trade.one.1401
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

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Wed Jan 04, 2023 9:30 am
by cedar
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.

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sun Jan 22, 2023 7:33 am
by trade.one.1401
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.

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sun Jan 22, 2023 8:30 am
by cedar
I know how it works, but I don't understand why it is needed.
In what situations would you use that feature?

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Mon Jan 23, 2023 5:48 am
by trade.one.1401
Yes, I want to always be connected to the VPN
Becaue in iran internet is filter

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Mon Jan 23, 2023 8:01 am
by cedar
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.

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sat Jan 28, 2023 5:13 am
by trade.one.1401
Yes, you are right, but this is done by a program or script specialist, I can't do it
can you؟

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sat Jan 28, 2023 7:32 am
by cedar
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

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sat Jan 28, 2023 3:59 pm
by trade.one.1401
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

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sun Jan 29, 2023 4:07 am
by cedar
My script is an example in a windows batch file.
(vpncmd itself does not have the ability to handle conditional branches)

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sun Jan 29, 2023 4:15 am
by trade.one.1401
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

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sun Jan 29, 2023 4:58 am
by cedar
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.

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sun Jan 29, 2023 5:51 am
by trade.one.1401
HI
FOR SOFTETHER VPNGATE IN THIS PICTURE YOU CAN SEE:
WHEN I DISCONNECT THE CONNECTION DELETE FROM LIST WHY?
https://ibb.co/wz8yPwn

Re: PROBLEM AUTOMATIC CONNECTION

Posted: Sun Jan 29, 2023 9:04 am
by cedar
Did you create the connection settings manually?
Automatically created ones may be automatically deleted.