Skip to contentSkip to conversation

OpenVPN GUI, and routes

Openvpn-devel Morris, Russell 4 participants 8 messages Jun 28, 2018 – Jun 29, 2018

lore
Share & tools
lore
#0 lore raw

Hi,

This may be by design – if so just say that and I’ll go away … 😉. But that said – it seems I have to run the OpenVPN GUI (manually) as an administrator, for routes to be set / added as directed by the server. Is this expected? Unfortunately it won’t even allow the client to connect if this step fails.

Thanks!

… Russell

#1 lore raw

Hi Russel,

Long time !

Quoted 9 lines · Russell

Hi,

This may be by design – if so just say that and I’ll go away … 😉. But that said – it seems I have to run the OpenVPN GUI (manually) as an administrator, for routes to be set / added as directed by the server. Is this expected? Unfortunately it won’t even allow the client to connect if this step fails.

The GUI in 2.4.x release is meant to be started without admin privileges and should just work including setting of routes.

It relies on the interactive service so the service should be running ---
but that's the default. And, when the GUI is started as a limited user it
will warn if the service is stopped. So not sure, why its not working for you. Client logs may hold some clues.

Cheers,

Selva

#2 lore raw
In reply to Morris, Russell

HI,

Quoted 1 line · Russell

This may be by design ??? if so just say that and I???ll go away ??? ????. But that said ??? it seems I have to run the OpenVPN GUI (manually) as an administrator, for routes to be set / added as directed by the server. Is this expected? Unfortunately it won???t even allow the client to connect if this step fails.

With 2.4.x, the GUI is supposed to run with normal user privs. Route handling is done by the "OpenVPN Interactive Service", which needs to be running.

If you install the normal installer provided by us, everything will be set up so it just works.

If not, provide platform details, logs, etc.

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#3 lore raw

Il 28/06/2018 09:57, Gert Doering ha scritto:

Quoted 5 lines

HI,

Quoted 1 line · Russell

This may be by design ??? if so just say that and I???ll go away ??? ????. But that said ??? it seems I have to run the OpenVPN GUI (manually) as an administrator, for routes to be set / added as directed by the server. Is this expected? Unfortunately it won???t even allow the client to connect if this step fails.

Quoted 9 lines

With 2.4.x, the GUI is supposed to run with normal user privs. Route handling is done by the "OpenVPN Interactive Service", which needs to be running.

If you install the normal installer provided by us, everything will be set up so it just works.

If not, provide platform details, logs, etc.

The Windows service name is "OpenVPNServiceInteractive". You can check its status from Powershell:

Get-Service OpenVPNServiceInteractive

To start it:

Start-Service OpenVPNServiceInteractive

That said, it _should_ be running already if you installed OpenVPN 2.4.x using our standard installers.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#4 lore raw

Hi,

Thanks for the thoughts - and they do align with my understanding as well. But it is failing unfortunately - only if the GUI is run as non-admin. Log for this case is below, from Windows of course (as it shows). Suggestions?

Thu Jun 28 11:46:35 2018 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{7D008A8F-BEC3-4196-9CCE-C8970FB55962}.tap Thu Jun 28 11:46:36 2018 NETSH: C:\WINDOWS\system32\netsh.exe interface ip set address OpenVPN dhcp Thu Jun 28 11:46:36 2018 ERROR: netsh command failed: returned error code 1
Thu Jun 28 11:46:41 2018 NETSH: C:\WINDOWS\system32\netsh.exe interface ip set address OpenVPN dhcp Thu Jun 28 11:46:41 2018 ERROR: netsh command failed: returned error code 1
Thu Jun 28 11:46:46 2018 NETSH: C:\WINDOWS\system32\netsh.exe interface ip set address OpenVPN dhcp Thu Jun 28 11:46:47 2018 ERROR: netsh command failed: returned error code 1
Thu Jun 28 11:46:52 2018 NETSH: C:\WINDOWS\system32\netsh.exe interface ip set address OpenVPN dhcp Thu Jun 28 11:46:52 2018 ERROR: netsh command failed: returned error code 1
Thu Jun 28 11:46:56 2018 NETSH: command failed
Thu Jun 28 11:46:56 2018 Exiting due to fatal error

And I did confirm, as you note,

PS C:\> Get-Service OpenVPNServiceInteractive

Status   Name               DisplayName
------   ----               -----------
Running  OpenVPNServiceI... OpenVPN Interactive Service

Thanks again,
... Russell

PS, good to hear from you again Selva. And yes, it has been a while ... 😊. Hope all is well!

-----Original Message-----
From: Samuli Seppänen [mailto:[email protected]...]
Sent: Thursday, June 28, 2018 2:53 AM
To: Gert Doering <[email protected]...>; Morris, Russell <[email protected]...>
Cc: [email protected]
Subject: Re: [Openvpn-devel] OpenVPN GUI, and routes

Il 28/06/2018 09:57, Gert Doering ha scritto:

Quoted 5 lines

HI,

Quoted 1 line · Russell

This may be by design ??? if so just say that and I???ll go away ??? ????. But that said ??? it seems I have to run the OpenVPN GUI (manually) as an administrator, for routes to be set / added as directed by the server. Is this expected? Unfortunately it won???t even allow the client to connect if this step fails.

Quoted 9 lines

With 2.4.x, the GUI is supposed to run with normal user privs. Route handling is done by the "OpenVPN Interactive Service", which needs to be running.

If you install the normal installer provided by us, everything will be set up so it just works.

If not, provide platform details, logs, etc.

The Windows service name is "OpenVPNServiceInteractive". You can check its status from Powershell:

Get-Service OpenVPNServiceInteractive

To start it:

Start-Service OpenVPNServiceInteractive

That said, it _should_ be running already if you installed OpenVPN 2.4.x using our standard installers.

--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

#5 lore raw

Hi,

Quoted 4 lines · Russell

Thanks for the thoughts - and they do align with my understanding as well. But it is failing unfortunately - only if the GUI is run as non-admin. Log for this case is below, from Windows of course (as it shows). Suggestions?

Thu Jun 28 11:46:35 2018 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{7D008A8F-BEC3-4196-9CCE-C8970FB55962}.tap Thu Jun 28 11:46:36 2018 NETSH: C:\WINDOWS\system32\netsh.exe interface ip set address OpenVPN dhcp

This looks like the tap interface has been (manually) set to "static IP address" - and it seems we can't change it back using the service yet.

Please change the config of the TAP adapter to "DHCP" and re-try.

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#6 lore raw

Good find - thanks! Yep, that was it. And it had me very confused how that happened (static settings), then a bit of sleuthing here - Tether changed it, as part of tethering my Android phone (tried it again, found it in the logs).

Much appreciated! And just a though, but - perhaps something to have the service be able to do in the future?

Thanks again,
... Russell

-----Original Message-----
From: Gert Doering <[email protected]...>
Sent: Thursday, June 28, 2018 11:56 AM
To: Morris, Russell <[email protected]...>
Cc: Samuli Seppänen <[email protected]...>; Gert Doering <[email protected]...>; [email protected]
Subject: Re: [Openvpn-devel] OpenVPN GUI, and routes

Hi,

Quoted 6 lines · Russell

Thanks for the thoughts - and they do align with my understanding as well. But it is failing unfortunately - only if the GUI is run as non-admin. Log for this case is below, from Windows of course (as it shows). Suggestions?

Thu Jun 28 11:46:35 2018 TAP-WIN32 device [OpenVPN] opened:
\\.\Global\{7D008A8F-BEC3-4196-9CCE-C8970FB55962}.tap Thu Jun 28 11:46:36 2018 NETSH: C:\WINDOWS\system32\netsh.exe interface ip set address OpenVPN dhcp

This looks like the tap interface has been (manually) set to "static IP address" - and it seems we can't change it back using the service yet.

Please change the config of the TAP adapter to "DHCP" and re-try.

gert
--
"If was one thing all people took for granted, was conviction that if you feed honest figures into a computer, honest figures come out. Never doubted it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany [email protected]...

#7 lore raw

Hi,

Quoted 3 lines · Russell

Good find - thanks! Yep, that was it. And it had me very confused how that happened (static settings), then a bit of sleuthing here - Tether changed it, as part of tethering my Android phone (tried it again, found it in the logs).

Much appreciated! And just a though, but - perhaps something to have the service be able to do in the future?

Most definitely :-)

We're currently (for 2.5) ripping appart and rewriting large parts of "tun.c" already, which is responsible for interface setup - and the way windows is currently handled (4 or 5 different methods of configuring IP addresses) is hard to maintain and error-prone, thus on our list of "we should be able to do better"...

(This is code that goes back to before WinXP...)

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...