LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-02-2009, 12:02 PM   #1
ice13berg
LQ Newbie
 
Registered: Mar 2009
Distribution: Still Shopping
Posts: 5

Rep: Reputation: 0
OpenVPN configuration on Ubuntu 8.04 Server


I am trying to install OpenVPN (configure, really) on Ubuntu 8.04 server, and am having problems with the initial configuration. I have read several howtos about the initial process, but they all seem to be outdated. For example, the easy-rsa directory has a 1.0 and 2.0 subdirectory, now, which is not indicated in the current instructions.

Can anyone provide some up-to-date guidance on how to initially configure OpenVPN? Some specific questions I have:

Where are the commands supposed to be issued from? /etc/openvpn/easy-rsa/ or /etc/openvpn/easy-rsa/2.0/
Why does the ". ./vars" command not seem to do anything?
What does the "export EASY_RSA="`pwd`"" line do? (or what is it SUPPOSED to do?)
How can I ensure the vars file is sourced appropriately?

I'm reasonably new to linux/ubuntu, but I have come a long way in the last 6 months. I'd appreciate step-by-step thoughts, but a "big picture" might also be helpful.

BTW, ultimately, I want to be able to access my home network files while on travel (samba shares), AND be able to use my home server as a web proxy while on the road. Walk then run, though... any thoughts on getting OpenVPN working?
 
Old 05-03-2009, 10:05 AM   #2
ice13berg
LQ Newbie
 
Registered: Mar 2009
Distribution: Still Shopping
Posts: 5

Original Poster
Rep: Reputation: 0
I figured most of this out, but I still have a lot of questions about bridging.

Just to close the loop on this... First, I copied all the files from the /2.0 subdirectory into the /easy-rsa directory. I also created a /keys subdirectory (KEY_DIR) inside of /easy-rsa.

I edited the vars file to include all my parameters, and edited the EASY_RSA value from `pwd` to

export EASY_RSA="/etc/openvpn/easy-rsa"

Then, for every script I wanted/needed to execute, I added

. ./vars

to the beginning of the script, and executed the scripts from within the /easy-rsa directory. This addition to the scripts ensured that each script included all the appropriate defaults for the key generation scripts. Keys were then created inside the /keys directory.

From there, each step in the OpenVPN HOWTO worked great for me. I'm still not sure why my terminal command . ./vars didn't work quite right.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
OpenVPN configuration whoas TheGorf Linux - Networking 2 08-11-2009 08:01 AM
OpenVPN configuration problems dmi Linux - Software 1 11-13-2008 03:44 PM
OpenVPN SSL configuration izaakrach Linux - Networking 2 04-01-2008 03:35 PM
Configuration of OPENVPN Camara Suse/Novell 1 10-04-2006 04:29 PM


All times are GMT -5. The time now is 01:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration