Hi Jan,
The current documentation says, that a remote management call should be given 
only when
"The "remote" command should only be given in response to a >REMOTE
notification.  For example, the following >REMOTE notification
indicates that the client config file would ordinarily connect
to vpn.example.com port 1194 (UDP):

  >REMOTE:vpn.example.com,1194,udp"

i.e on reception of the above event.

Still I will try out your feedback and get back.

Thanks

Abhijit

From: Jan Just Keijser [mailto:janj...@nikhef.nl]
Sent: Thursday, May 26, 2016 4:49 PM
To: Lamsoge, Abhijit; openvpn-users@lists.sourceforge.net
Subject: Re: [Openvpn-users] Evaluating Openvpn management interface externally 
via application

Hi,

On 26/05/16 10:40, Lamsoge, Abhijit wrote:
Hi All,
I am trying to write python and C based application for modifying "OpenVpn" in 
client mode via management interface.
I need to do the following

-          Update the remote server the vpn client connects to at runtime

However, the current existing management interface works like

-          First connects to existing specified.

-          And only on reception of event, can the management interface send a 
new remote site to client.
I want to

-          Start openvpn in client mode, and then via my application tell 
openvpn to connect to a remote site, without the reception of event as 
specified in the document for management interface.

Is there a way to do this ?
Or maybe I am just lame to not understand it.

I'm not terribly experienced with the management interface but AFAIU you should 
do something like

  openvpn ... options .... --management-hold

which will start openvpn but it will not make the connection yet. Then use the 
management interface to connect to it and issue a
  remote <new ip> <new port>
and finally do a
  hold release
(also inside the mgmt interface).

HTH,

JJK
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to