Windows service changes
Hi,
I integrated openvpnserv2 to the NSI installer today. A test installer is available here:
<http://build.openvpn.net/downloads/snapshots/openvpn-install-2.3_git-I903-x86_64.exe>
This installer bundles two service binaries, openvpnserv.exe and openvpnserv2.exe. These binaries register three different system services:
1) OpenVPNService ("OpenVPN Service")
This service comes from openvpnserv2.exe. Its "startupmode" is set to "manual", so that VPN connections do not suddenly start launching behind the user's back.
Previously "OpenVPNService" name was registered by the "automatic" part of openvpnserv.exe. The old name was retained here to make upgrades as smooth as possible, and to encourage people to actually use the new (and better) service.
2) OpenVPNServiceInteractive ("OpenVPN Interactive Service")
This service is registered by openvpnserv.exe. This part is still very useful, as it allows OpenVPN GUI to be used without admin privileges.
Right now this service has "startupmode" hardcoded to "automatic" in src/openvpnserv/interactive.c.
3) OpenVPNServiceLegacy ("OpenVPN Legacy Service")
For the time being the old OpenVPN service wrapper will be available as a fallback. Based on issues people have been having with it it will not be sorely missed. The "startupmode" for this is set to "manual".
---
The installer linked to above implement all of the above. However, these three changes are required for things to work properly:
<https://github.com/OpenVPN/openvpn-build/pull/23>
<https://github.com/xkjyeah/openvpnserv2/pull/7>
<https://github.com/OpenVPN/openvpn/pull/57>
The only thing missing is launching the "Interactive Service" at install time, and adding a checkbox "Enable Interactive Service" to the installer, as agreed upon in this email thread:
<http://thread.gmane.org/gmane.network.openvpn.devel/12010/>
Let me know if you have any comments regarding these changes.
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
Hi,
Quoted 8 lines · Samuli Seppänen
2) OpenVPNServiceInteractive ("OpenVPN Interactive Service")
This service is registered by openvpnserv.exe. This part is still very useful, as it allows OpenVPN GUI to be used without admin privileges.
Right now this service has "startupmode" hardcoded to "automatic" in
src/openvpnserv/interactive.c.
Automatic startup mode will start the service on next reboot, but an immediate start at the end of installation would be useful. Is that how this installer is supposed to work?
Selva
Quoted 6 lines · Samuli Seppänen
The installer linked to above implement all of the above. However, these three changes are required for things to work properly:
<https://github.com/OpenVPN/openvpn-build/pull/23>
<https://github.com/xkjyeah/openvpnserv2/pull/7>
Alternatively the startup mode may be changed from the installer using
sc config OpenVPNServiceInteractive start=auto
Something like this to change the mode at install time will be required to support the checkbox mentioned below.
Quoted 7 lines
<https://github.com/OpenVPN/openvpn/pull/57>
The only thing missing is launching the "Interactive Service" at install time, and adding a checkbox "Enable Interactive Service" to the installer, as agreed upon in this email thread:
Oh I missed this paragraph on the first read -- hence my stupid question in the previous email.. Anyway, once the startup mode is set as automatic it will anyway start after next reboot, so is there a need to have that checkbox? Unless unchecking it also means the mode will be changed to manual.
Quoted 4 lines
<http://thread.gmane.org/gmane.network.openvpn.devel/12010/>
Let me know if you have any comments regarding these changes
Selva
Hi,
Quoted 7 lines
On Thu, Jun 30, 2016 at 11:04 AM, Samuli Seppänen <[email protected]... <mailto:[email protected]...>> wrote:
The installer linked to above implement all of the above. However, these three changes are required for things to work properly:
Quoted 7 lines
<https://github.com/OpenVPN/openvpn-build/pull/23>
<https://github.com/xkjyeah/openvpnserv2/pull/7>Alternatively the startup mode may be changed from the installer using
sc config OpenVPNServiceInteractive start=auto
Yeah, I was planning on using sc.exe for managing Interactive Service. I've heard sc.exe is available on all of our supported platforms, and also in a predictable path.
Quoted 11 lines
Something like this to change the mode at install time will be required to support the checkbox mentioned below.
<https://github.com/OpenVPN/openvpn/pull/57>
The only thing missing is launching the "Interactive Service" at install time, and adding a checkbox "Enable Interactive Service" to the installer, as agreed upon in this email thread:
Quoted 5 lines
Oh I missed this paragraph on the first read -- hence my stupid question in the previous email.. Anyway, once the startup mode is set as automatic it will anyway start after next reboot, so is there a need to have that checkbox? Unless unchecking it also means the mode will be changed to manual.
The "Enable Interactive Service" checkbox would control the state of the Interactive service:
Yes -> service mode set to automatic, start at OpenVPN install No -> service mode set to manual, do not start at OpenVPN install
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock