[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Windows 7 + OpenVPN + Non Admin Users

Posted on 2010-09-08
8
Medium Priority
?
2,008 Views
Last Modified: 2012-05-10
Hi,

Just wondering if anyone has a solution to this problem.

The users where openvpn has to be installed, are not administrators in any way of their machines, not even local admins.

The users cannot be any kind of admin otherwise PCI + other compliance is compromised.

Is there any way for the user to be able to run the VPN, and have the routes added, without being an admin ?

Thanks,

Leon
0
Comment
Question by:gjdonkeh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 71

Expert Comment

by:Qlemo
ID: 33631979
If you can
* install OpenVPN as a service (requires admin privs once)
* install the TUN/TAP adapter (requires admin privs once)
* assign "start service" priv to the users
it should work, just by starting the OpenVPN service manually. If the latter isn't possible at all, the only way is to let OpenVPN Service run automatically all the time.
0
 
LVL 3

Author Comment

by:gjdonkeh
ID: 33635370
Thanks - I'll give this a go.

Are you able to provide info on how to assign start service privileges to users ?

Thanks,

Leon
0
 
LVL 3

Author Comment

by:gjdonkeh
ID: 33635467
Hi,

Also - running as a service does not appear to allow the user to enter there username/password that are required to connect.

Regards,

Leon
0
Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

 
LVL 71

Expert Comment

by:Qlemo
ID: 33636926
That's true, you can't provide username and password. Do you really need to do that interactively, or just for identification of the PC? Is it ok to put it into the config file? Else you would need to ask for user and password, and send that over to the OpenVPN process using the telnet management feature of OpenVPN. That again requires a batch command and an external tool called netcat (or a telnet connection which asks for the credentials - but I'm not positive about this option).
0
 
LVL 3

Author Comment

by:gjdonkeh
ID: 33637522
The requirement to enter the username/password on each connection is necessary and cannot be stored in a text file.

Security is a must unfortunately.

Regards,

Leon
0
 
LVL 71

Accepted Solution

by:
Qlemo earned 2000 total points
ID: 33640849
Ok, that is getting more complicated then.

-----------------

To be able to start a service, users need the privilege assigned by
subinacl /SERVICE "OpenVPNService" /GRANT=MyUser=TO
TO is Start and Stop
 
Download subinacl (part of the Windows Resource kit)
Options for /SERVICE: http://www.eventlogblog.com/blog/2007/11/setting-service-permissions-wi.html.

-----------------

To ask for credentials, you need following settings in each config file:
management 127.0.0.1 65500management-query-passwords
Then download netcat (best thru http://joncraton.org/files/nc111nt.zip, you will only need the nc.exe file from that zip).

As soon as OpenVPN is started with above config, you can do (in a batch file):
@echo offset /P usr=Username: set /P pwd=Password: (echo username Auth "%usr%"& echo password Auth "%pwd%"& echo quit) | nc -i 1 127.0.0.1 65500
65500 is an arbitrary port number I chose by random. You can use other port numbers, of course, but you need to change them in both the config and the nc.exe command line.

The management interface of OpenVPN can be used to provide data else given manually, to stop the connection, and many more.

If you want to start the service manually, begin the batch file above with
sc start OpenVPN
(before the set /P's). Since the user needs some time to enter the credentials, that should be sufficient for OpenVPN to do the necessary inits and start communicating with the OpenVPN server, and the management commands come just in time.

0
 
LVL 3

Author Closing Comment

by:gjdonkeh
ID: 33927793
While your method would most likely work, it isn't really practical in my scenario.

Thanks for your help.
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 33933382
Why? You can automate it without much ado, all steps contained in my description. That's the only way how you can get around the permission issue.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question