OpenVPN as a service config problem
Posted: Mon Nov 07, 2011 11:08 am
Hello!
I have two sub folders in the C:\Program Files (x86)\OpenVPN\config folder. In each of sub folders there is .ovpn config file and connection certificates. I can connect/disconnect vpns with OpenVPN GUI without a problem and separate log files are created for every config file. I don't want to do this manually anymore so I want to create vpn connections automatically with OpenVPN as a service. OpenVPN service is started without a problem, but nothing happens and no logs are created. Some trial and error gave me a hint that service does not handle sub folders in the C:\Program Files (x86)\OpenVPN\config folder config folder. If I put .ovpn config files in the root of the C:\Program Files (x86)\OpenVPN\config folder, it starts to work. But I really don't want to do this. Is there some way to fix the problem? Why does it work with GUI program, but not with OpenVPN as a service?
Thank you for all your help and suggestions,
Marko Kukovec
I have two sub folders in the C:\Program Files (x86)\OpenVPN\config folder. In each of sub folders there is .ovpn config file and connection certificates. I can connect/disconnect vpns with OpenVPN GUI without a problem and separate log files are created for every config file. I don't want to do this manually anymore so I want to create vpn connections automatically with OpenVPN as a service. OpenVPN service is started without a problem, but nothing happens and no logs are created. Some trial and error gave me a hint that service does not handle sub folders in the C:\Program Files (x86)\OpenVPN\config folder config folder. If I put .ovpn config files in the root of the C:\Program Files (x86)\OpenVPN\config folder, it starts to work. But I really don't want to do this. Is there some way to fix the problem? Why does it work with GUI program, but not with OpenVPN as a service?
Thank you for all your help and suggestions,
Marko Kukovec