From: Simon Rozman Date: Wed, 9 Aug 2017 19:46:57 +0000 Message-ID: <99D61A626FDA8A4B90A270669121BE10806D643C@...2294...> References: <99D61A626FDA8A4B90A270669121BE10806D5BC3@...2294...> In-Reply-To: Content-Language: en-US Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=2.16.840.1.101.3.4.2.1; boundary="----=_NextPart_000_0014_01D31159.05E14FD0" MIME-Version: 1.0 Subject: Re: [Openvpn-devel] OVPN Interactive Service for non-admin users List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Selva Nair Cc: "openvpn-devel@lists.sourceforge.net" ------=_NextPart_000_0014_01D31159.05E14FD0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0015_01D31159.05E14FD0" ------=_NextPart_001_0015_01D31159.05E14FD0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Selva, Is there any specific reason, why Interactive Service is so paranoid, knowi= ng that it launches openvpn.exe and all external scripts as the interactive= user anyway? The service does privileged operations so some admin has to bless a user to= allow certain options when launching openvpn.exe. In other words, options = allowed in user editable configs are restricted unless the user is in a des= ignated group. =20=20 I don't quite agree. OpenVPN needs elevation to set up connection because i= t runs in user space. IPsec VPN doesn't require elevation for the very same= task since it runs in kernel space. =20 Therefore, elevation for OpenVPN is required for technical reasons, not sec= urity. Thus, an explicit blessing from the admin is an exaggeration. I have a work-around for this paradox in my sleeve: the eduVPN setup shall= create an "eduVPN" subfolder in the "C:\Program Files\OpenVPN\config" fold= er, and grant all users desirable permissions*: a sort of public spool fold= er. Setting up such a folder requires admin rights. If your installer has admin= rights, just add all users to "OpenVPN Administrators" group or set the re= gistry key ovpn_admin_group to "Users" =20=20 The installer will require admin rights of course. Here we agree installing= software (VPN especially) needs an admin approval. =20 Thank you for your excellent advice. I haven't thought of that before. Howe= ver, I will not follow it for the following reason=E2=80=A6 =20 eduVPN will not claim OpenVPN for all by itself. It will install it when mi= ssing, but will leave everything to its defaults. We would still like to le= ave the user an option to make use of OpenVPN for other purposes. Tweaking = registry is not a step in this direction. But that would open the OpenVPN Interactive Service to any user and applic= ation. This is why we would like your opinion first. Yes the service will then launch openvpn with arbitrary configs as any user= , but that is what you want isn't it? =20 True, I want that indeed. I was just trying to find the official way of doi= ng it only to learn it's against OpenVPN team's principles. :( =20 Well, I'll do it anyway. And I suggest you take it as a compliment: the Ope= nVPN is great for its flexibility so people can and will use it in a millio= n of bizarre ways. :) =20 Best regards, Simon ------=_NextPart_001_0015_01D31159.05E14FD0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hi Selva,

Is ther= e any specific reason, why Interactive Service is so paranoid, knowing that= it launches openvpn.exe and all external scripts as the interactive user a= nyway?

The service does privileged operations so= some admin has to bless a user to allow certain options when launching ope= nvpn.exe. In other words, options allowed in user editable configs are rest= ricted unless the user is in a designated group.

<= p class=3DMsoNormal>  

I don't quite agree. OpenVPN needs elevation to set up connect= ion because it runs in user space. IPsec VPN doesn't require elevation for = the very same task since it runs in kernel space.

 

Therefore, elevation for OpenVPN is requir= ed for technical reasons, not security. Thus, an explicit blessing from the= admin is an exaggeration.

 I = have a work-around for this paradox in my sleeve: the eduVPN setup shall cr= eate an "eduVPN" subfolder in the "C:\Program Files\OpenVPN\= config" folder, and grant all users desirable permissions*: a sort of = public spool folder.

Setting up such a folder requires admin rights. If your i= nstaller has admin rights, just add all users to "OpenVPN Administrato= rs" group or set the registry key ovpn_admin_group to "Users"= ;

  

=

The installer will require admin r= ights of course. Here we agree installing software (VPN especially) needs a= n admin approval.

 

T= hank you for your excellent advice. I haven't thought of that before. Howev= er, I will not follow it for the following reason=E2=80=A6

 

<= p class=3DMsoNormal>eduVPN will not claim OpenVPN for a= ll by itself. It will install it when missing, but will leave everything to= its defaults. We would still like to leave the user an option to make use = of OpenVPN for other purposes. Tweaking registry is not a step in this dire= ction.

 But that would open th= e OpenVPN Interactive Service to any user and application. This is why we w= ould like your opinion first.

Yes the service will then launch openvpn with ar= bitrary configs as any user, but that is what you want isn't it?

 

<= p class=3DMsoNormal>True, I want that indeed. I was jus= t trying to find the official way of doing it only to learn it's against Op= enVPN team's principles. :(

 

Well, I'll do it anyway. And I suggest you take it as a complimen= t: the OpenVPN is great for its flexibility so people can and will use it i= n a million of bizarre ways. :)

<= span lang=3DEN-GB style=3D'font-size:11.0pt;font-family:"Calibri","sans-ser= if";color:#1F497D'> 

Best regards,

Simon

= ------=_NextPart_001_0015_01D31159.05E14FD0-- ------=_NextPart_000_0014_01D31159.05E14FD0 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCCXow ggQZMIIDAaADAgECAgQ7PPnJMA0GCSqGSIb3DQEBBQUAMD0xCzAJBgNVBAYTAnNpMRswGQYDVQQK ExJzdGF0ZS1pbnN0aXR1dGlvbnMxETAPBgNVBAsTCHNpZ2VuLWNhMB4XDTAxMDYyOTIxMjc0NloX DTIxMDYyOTIxNTc0NlowPTELMAkGA1UEBhMCc2kxGzAZBgNVBAoTEnN0YXRlLWluc3RpdHV0aW9u czERMA8GA1UECxMIc2lnZW4tY2EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCw5WWy wKxklvKIG7PtnuQCxk8riM4uilGAda8QW/LLOGabog5tNEeWpZIRr/Y1R6J3IgzOFohiqtNJbhi8 LkTYvsaewhoZrEGO/DAHAvLGatRbIwDvQTTYpHNj3yKSM4QBpY3zg1z6uNR6Nd/s+G0P4EztrZw6 fYbWpQiUvn16ER/+hT9UWohjh5ylsadOzbdEc6/PiklrH+PN10lNWisX5lx2s7tyuW8n0puJFYjf EF92IQFqxxUxCtGcWPgoFgVt2U7ZodcHIMtLJolNkrKnupbo41iPIpwBllrE9zFNC0m14Xhh4lQY BrueVDR+DD7r7rWAH90WhB1oOGZnc/iRAgMBAAGj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