Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Control » How to use Kerio VPN Client through command line
  •  
holcak

Messages: 3
Karma: 0
Send a private message to this user
Hello,

It's possible to manage "Kerio VPN Client" (aka to make connect or disconnect with specific configuration) by commands from windows command promt or powershell? If yes, what commands are at disposal and how can I use it?

To this point I have only found this forum thread h t t p://forums.kerio.com/t/9615/kerio-vpn-client . But commands showed there actually not working.

If this is not possible, is there some other 3rd party tool which can help me to externally start specific vpn connection through Kerio?

Thanks,
Radek
  •  
Brian Carmichael (Kerio)

Messages: 559
Karma: 55
Send a private message to this user
You can configure the VPN client to maintain a persistent connection, then you could use the windows service manager to stop / start the VPN client service. https://technet.microsoft.com/en-us/library/cc736564

Brian Carmichael
Senior Technical Marketing Engineer | Kerio
Stay Connected Anytime, Anywhere. Discover Kerio Cloud!
  •  
holcak

Messages: 3
Karma: 0
Send a private message to this user
Thanks for your recommendation.
But from my understanding of yours technology, it is not possible to make more persistent connection at once. There is always only one service named "Kerio VPN Client Service". Is that correct?

So how can I choose (through service manager during service start) which configuration it will use, if I have more than one connection configurations setup?

Thanks anyway for your reply and help. It is more than appreciated.
  •  
Brian Carmichael (Kerio)

Messages: 559
Karma: 55
Send a private message to this user
The configuration file is saved in C:\Users\username\AppData\Roaming\Kerio\VpnClient\user.cfg
You could keep multiple versions of this file e.g. user-server1.cfg and user-server2.cfg.
You could make a basic script to copy the preferred file to the working user.cfg before starting the service.

Brian Carmichael
Senior Technical Marketing Engineer | Kerio
Stay Connected Anytime, Anywhere. Discover Kerio Cloud!
  •  
holcak

Messages: 3
Karma: 0
Send a private message to this user
Ha, thanks for lead.
I have tried your recommendation but it not worked. It is because that everytime I have started the service, file user.cfg has returned to its initial state. BUT after little searching I found file persistent.cfg in path "c:\Program Files (x86)\Kerio\VPN Client\" and that do a magic.

Thanks a lot for helping me.
Best regards,
Radek
Previous Topic: Custom DDNS Service?
Next Topic: Deploy SSL certificate to client
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sun Dec 11 10:53:33 CET 2016

Total time taken to generate the page: 0.00899 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.