Stuck at a step during configuring openvpn
Posted: Sat Dec 04, 2010 12:08 am
So i have a centos5 vps and i'm installing openvpn on it. I'm a noob at linux and servers but after reading a few tutorials i come up with the following. Black is my bash commands, blue is output, red is my thoughts. Lol.
# -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm
(seems to be the newest version of openvpn afaik.)
Retrieving http://download.fedora.redhat.com/pub/e ... noarch.rpm
warning: /var/tmp/rpm-xfer.pAhLcO: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
# yum install openvpn
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: centos.mirror.transip.nl
* base: ftp.nluug.nl
* epel: ftp.nluug.nl
* extras: ftp.nluug.nl
* updates: mirror.denit.net
addons | 951 B 00:00
addons/primary | 204 B 00:00
base | 2.1 kB 00:00
base/primary_db | 2.1 MB 00:00
epel | 3.7 kB 00:00
epel/primary_db | 3.4 MB 00:00
extras | 2.1 kB 00:00
extras/primary_db | 246 kB 00:00
n2 | 951 B 00:00
n2/primary | 2.9 kB 00:00
n2 17/17
updates | 1.9 kB 00:00
updates/primary_db | 1.0 MB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package openvpn.x86_64 0:2.1.1-2.el5 set to be updated
--> Processing Dependency: liblzo2.so.2()(64bit) for package: openvpn
--> Processing Dependency: libpkcs11-helper.so.1()(64bit) for package: openvpn
--> Running transaction check
---> Package lzo.x86_64 0:2.02-2.el5.1 set to be updated
---> Package pkcs11-helper.x86_64 0:1.07-2.el5.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
openvpn x86_64 2.1.1-2.el5 epel 380 k
Installing for dependencies:
lzo x86_64 2.02-2.el5.1 epel 57 k
pkcs11-helper x86_64 1.07-2.el5.1 epel 54 k
Transaction Summary
================================================================================
Install 3 Package(s)
Upgrade 0 Package(s)
Total download size: 491 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): pkcs11-helper-1.07-2.el5.1.x86_64.rpm | 54 kB 00:00
(2/3): lzo-2.02-2.el5.1.x86_64.rpm | 57 kB 00:00
(3/3): openvpn-2.1.1-2.el5.x86_64.rpm | 380 kB 00:00
--------------------------------------------------------------------------------
Total 27 kB/s | 491 kB 00:18
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 1.7 kB 00:00
Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pkcs11-helper 1/3
Installing : lzo 2/3
Installing : openvpn 3/3
Installed:
openvpn.x86_64 0:2.1.1-2.el5
Dependency Installed:
lzo.x86_64 0:2.02-2.el5.1 pkcs11-helper.x86_64 0:1.07-2.el5.1
Complete!
# find / -name 'easy-rsa' -type d
/usr/share/openvpn/easy-rsa
# cp -r /usr/share/openvpn/easy-rsa/ /etc/openvpn/
# cd /etc/openvpn/easy-rsa
# vi vars
Here is the problem. When i vi into vars, the file is empty.
The tutorials all say i should then:
then scroll down to the bottom, edit as you like.
export KEY_COUNTRY=AU
export KEY_PROVINCE=VIC
export KEY_CITY=MELBOURNE
export KEY_ORG=”THROXVPN”
export KEY_EMAIL=”name@email.com”
#. ./vars (note a space between . . )
#./clean-all
But i can't scroll in that file, its empty and useless... Could anyone please help? I have no idea where i'm going wrong. Thanks for your time and help!
# -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm
(seems to be the newest version of openvpn afaik.)
Retrieving http://download.fedora.redhat.com/pub/e ... noarch.rpm
warning: /var/tmp/rpm-xfer.pAhLcO: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
# yum install openvpn
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: centos.mirror.transip.nl
* base: ftp.nluug.nl
* epel: ftp.nluug.nl
* extras: ftp.nluug.nl
* updates: mirror.denit.net
addons | 951 B 00:00
addons/primary | 204 B 00:00
base | 2.1 kB 00:00
base/primary_db | 2.1 MB 00:00
epel | 3.7 kB 00:00
epel/primary_db | 3.4 MB 00:00
extras | 2.1 kB 00:00
extras/primary_db | 246 kB 00:00
n2 | 951 B 00:00
n2/primary | 2.9 kB 00:00
n2 17/17
updates | 1.9 kB 00:00
updates/primary_db | 1.0 MB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package openvpn.x86_64 0:2.1.1-2.el5 set to be updated
--> Processing Dependency: liblzo2.so.2()(64bit) for package: openvpn
--> Processing Dependency: libpkcs11-helper.so.1()(64bit) for package: openvpn
--> Running transaction check
---> Package lzo.x86_64 0:2.02-2.el5.1 set to be updated
---> Package pkcs11-helper.x86_64 0:1.07-2.el5.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
openvpn x86_64 2.1.1-2.el5 epel 380 k
Installing for dependencies:
lzo x86_64 2.02-2.el5.1 epel 57 k
pkcs11-helper x86_64 1.07-2.el5.1 epel 54 k
Transaction Summary
================================================================================
Install 3 Package(s)
Upgrade 0 Package(s)
Total download size: 491 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): pkcs11-helper-1.07-2.el5.1.x86_64.rpm | 54 kB 00:00
(2/3): lzo-2.02-2.el5.1.x86_64.rpm | 57 kB 00:00
(3/3): openvpn-2.1.1-2.el5.x86_64.rpm | 380 kB 00:00
--------------------------------------------------------------------------------
Total 27 kB/s | 491 kB 00:18
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 1.7 kB 00:00
Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pkcs11-helper 1/3
Installing : lzo 2/3
Installing : openvpn 3/3
Installed:
openvpn.x86_64 0:2.1.1-2.el5
Dependency Installed:
lzo.x86_64 0:2.02-2.el5.1 pkcs11-helper.x86_64 0:1.07-2.el5.1
Complete!
# find / -name 'easy-rsa' -type d
/usr/share/openvpn/easy-rsa
# cp -r /usr/share/openvpn/easy-rsa/ /etc/openvpn/
# cd /etc/openvpn/easy-rsa
# vi vars
Here is the problem. When i vi into vars, the file is empty.
The tutorials all say i should then:
then scroll down to the bottom, edit as you like.
export KEY_COUNTRY=AU
export KEY_PROVINCE=VIC
export KEY_CITY=MELBOURNE
export KEY_ORG=”THROXVPN”
export KEY_EMAIL=”name@email.com”
#. ./vars (note a space between . . )
#./clean-all
But i can't scroll in that file, its empty and useless... Could anyone please help? I have no idea where i'm going wrong. Thanks for your time and help!