Page 1 of 1

Installation Issues on Fedora

Posted: Sat Aug 20, 2011 6:48 am
by bhasvanth
Hi ,

I have followed the steps for installing OpenVPN by using rpm. When I try to run the commad "rpm -ivh /root/rpmbuild/RPMS/i686/openvpn-2.2.1-1.i686.rpm", it is giving me following errors :

Preparing... ########################################### [100%]
file /etc/rc.d/init.d/openvpn from install of openvpn-2.2.1-1.i686 conflicts with file from package openvpn-2.1.1-2.fc12.i686
file /usr/sbin/openvpn from install of openvpn-2.2.1-1.i686 conflicts with file from package openvpn-2.1.1-2.fc12.i686
file /usr/share/man/man8/openvpn.8.gz from install of openvpn-2.2.1-1.i686 conflicts with file from package openvpn-2.1.1-2.fc12.i686


Any help in resolving the above errors or installing OpenVPN on fedora OS will appreciable.

Please do let me know in case you need more info.


Regards,
Bhasvanth

Re: Installation Issues on Fedora

Posted: Sat Aug 20, 2011 12:52 pm
by maikcat
hi there,

if you issue

rpm -qa | grep openvpn

do you see openvpn package already installed?

i guess you already have 2.1.1-2.fc12.i686 package in your system

use rpm -e to remove it..

Michael.

Re: Installation Issues on Fedora

Posted: Sat Aug 20, 2011 8:56 pm
by janjust
you want to Upgrade OpenVPN, not Install it.
Use

Code: Select all

rpm -Uvh
or

Code: Select all

yum install
'rpm -ivh' is meant ONLY to install a package

Re: Installation Issues on Fedora

Posted: Wed Aug 24, 2011 1:10 pm
by bhasvanth
Thanks Michael,

I am able to Install/Update openvpn. Can you provide me any simple document for configuring openvpn.


Regards,
Bhasvanth

Re: Installation Issues on Fedora

Posted: Wed Aug 24, 2011 1:45 pm
by maikcat
hi there,

please take a look in documentation section under community version in openvpn.net

there are plenty examples about various setups.

if you need help letus know.

Michael.

Re: Installation Issues on Fedora

Posted: Wed Aug 31, 2011 12:43 pm
by bhasvanth
Hi Michael,

I have tried configuring Open VPN server as mentioned in the below links:
http://www.webhostingtalk.com/showthread.php?t=595436
http://meinit.nl/setting-openvpn-server ... edora-core

But when i start openvpn, its giving failed status and in log file an error message is displayed as mentioned below
Aug 31 20:31:42 localhost nm-dispatcher.action: nm_dispatcher_action: Invalid connection: '(null)' / 'connection setting not found' invalid: 1
Aug 31 21:15:34 localhost openvpn[6243]: OpenVPN 2.2.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Aug 20 2011
Aug 31 21:15:34 localhost openvpn[6243]: NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Aug 31 21:15:34 localhost openvpn[6243]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Aug 31 21:15:34 localhost openvpn[6243]: Cannot open dh1024.pem for DH parameters: error:02001002:system library:fopen:No such file or directory: error:2006D080:BIO routines:BIO_new_file:no such file
Aug 31 21:15:34 localhost openvpn[6243]: Exiting


Please help in resolving this issue.


Regards,
Bhasvanth

Re: Installation Issues on Fedora

Posted: Wed Aug 31, 2011 12:50 pm
by janjust
the message
Aug 31 21:15:34 localhost openvpn[6243]: Cannot open dh1024.pem for DH parameters: error:02001002:system library:fopen:No such file or directory: error:2006D080:BIO routines:BIO_new_file:no such file
suggests that the file dh1024.pem cannot be found ; did you run './build-dh' ? did you generate a 1024 or 2048 bit key?

Re: Installation Issues on Fedora

Posted: Wed Aug 31, 2011 1:00 pm
by Mimiko
Cannot open dh1024.pem
Tae a look at this also: http://forums.openvpn.net/topic7377.html