Help this newbie connect to server

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
mach7
OpenVpn Newbie
Posts: 1
Joined: Tue May 03, 2011 7:08 pm

Help this newbie connect to server

Post by mach7 » Tue May 03, 2011 7:19 pm

My company has an Amazon EC2 OpenVPN server instance that I connect to using OpenVPN Connect 1.7.2. I do this by going to https://myvpnhostname.com and entering a username and password, as explained at http://openvpn.net/index.php/access-ser ... lient.html

I'm writing a C# app that requires this VPN connection. I want the app to connect automatically instead of requiring that the user log in by visiting that page. I found some sample code at http://stackoverflow.com/questions/1091861 that shows how to do this, provided you have a client.ovpn file. Unfortunately, I don't have (or can't find) the .ovpn file that OpenVPN Connect is using to make this connection. There is a .ovpn file in C:\Program Files (x86)\OpenVPN Technologies\OpenVPN Client\etc\profile, but when I try to run "openvpn.exe --config <profileovpn>" it says that this is a generic file and fails.

It stands to reason that if I can connect using the OpenVPN Connect web site, I ought to be able to do this programmatically. Any suggestions on the shortest path to success would be greatly appreciated.

Thanks,
-J

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Help this newbie connect to server

Post by janjust » Tue May 03, 2011 8:52 pm

sounds like an OpenVPN Access Server question.
This forum is meant only for the open source version (community edition) of openvpn; OpenVPN Access Server is the commercial version. Please submit your question to OpenVPN Inc's technical support.

Post Reply