openvpn-manager icon indicating copy to clipboard operation
openvpn-manager copied to clipboard

Run the project in debug mode, shown UAC prompt asking for administrator password

Open LarissaChangLiu opened this issue 6 years ago • 4 comments

When I run this project in Visual studio , and true to connect one of VPNs , it's shown UAC prompt ask for administrator password. Does anyone know how to remove this UAC promot? I think it was trying to trigger OpenVPN.

thanks

LarissaChangLiu avatar Feb 12 '19 20:02 LarissaChangLiu

The uac is needed to allow for pushed routes and configured routes to be set when the openvpn tunnel is up and running. This is required to route any traffic trough the tunnel. You can configure the [OpenVPNManagerService] as described in the wiki to overcome the uac. The service will have the rights needed to set routes and the uac isn't needed there. This is a limitation of openvpn and can not be influenced by us.

hapm avatar Feb 14 '19 19:02 hapm

thanks for the reply @hapm , Do you mean this doc in the wiki, which describe how to overcome the UAC. Pardon me, not quiet sure that does this mean below

"Similar to the OpenVPN Server, the config must include the following lines so that the OpenVPN Manager can use the management interface. management 127.0.0.1 11193 management-query-passwords management-hold management-signal management-forget-disconnect auth-retry interact"

So where exactly should I to find the place to put those config statement?

thanks

LarissaChangLiu avatar Feb 14 '19 19:02 LarissaChangLiu

@hapm do I supposed to put those configuration in to OpenVPNManagerService.exe.config?

LarissaChangLiu avatar Feb 14 '19 19:02 LarissaChangLiu

They belong into the .ovpn file used to connect to your openvpn peer. If you want to setup everything by yourself you should read some basics about openvpn: https://openvpn.net/community-resources/how-to/

hapm avatar Feb 14 '19 20:02 hapm