On Sat, 12 Jun 2021 14:01:51 -0400, Selva Nair <selva.n...@gmail.com> wrote:
>Hi > >On Sat, Jun 12, 2021 at 1:53 PM Bo Berglund <bo.bergl...@gmail.com> wrote: > >> I am using the OpenVPN Gui application on my Windows 10 laptop to connect >> to a >> variety of locations where I have put OpenVPN servers. >> This has always until now been a matter of establishing a connection prior >> to >> doing something on or via the remote network. >> >> But now I have another use case, which is to communicate with a remote >> device, >> which as connected to an OpenVPN server where client-to-client is enabled >> but >> where there is no exit server side on the VPN server. So all >> communications are >> on the tunnel itself. >> >> In this case the process (which works) is this: >> - Connect to the tunnel-only server >> - Run the special comm program designed to talk to the remote device >> - Communicate with the remote device, which is connected 24/7 >> - When done close down the VPN tunnel >> >> I wonder if there is some way (on Windows) to start the tunnel connection >> from >> the special comm program and then close it down when the comm session is >> over >> and the program closes. >> I have written the comm program and I could add such a feature if it is >> possible >> to accoplish. >> >> OpenVPN-GUI is sort of a GUI program so I suspect it does not have any >> useful >> hooks... >> > >We have some support for sending commands to the GUI to >connect, disconnect etc.. See > >https://github.com/OpenVPN/openvpn-gui#send-commands-to-a-running-instance-of-openvpn-gui > >Selva Thanks a lot! This is exactly what I need in Windows! I just tried it in a user level command window and it works just fine both to connect and to disconnect. I will now integrate it into my client comm application and let it connect and disconnect automatically. Just another question: Can OpenVPN-GUI connect this way to a server if there is already a connection to somewhere else active at this time? I think that there is some limitation on Windows regarding the tunnel adapters... -- Bo Berglund Developer in Sweden _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users