LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2011, 11:16 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Rep: Reputation: 33
OpenVPN won't start


Hello,

I installed openvpn :
Code:
Package openvpn-2.1.4-1.el6.x86_64 already installed and latest version
Starting the openvpn deamon does not work :
Code:
[root@p2 openvpn]# /sbin/service openvpn start
Starting openvpn:                                          [FAILED]
Getting the version also does not work :
Code:
[root@p2 openvpn]# /usr/sbin/openvpn -version
Options error: In [CMD-LINE]:1: Error opening configuration file: -version
Use --help for more information.
This is the configuration file :
Code:
[root@p2 openvpn]# cat vpn-server.conf
# OpenVPN configuration file for VPN SERVER 
dev tun 
ifconfig 10.10.0.1 10.10.0.2 
secret /etc/openvpn/staticVPN2.key 
comp-lzo 
keepalive 10 60 
ping-timer-rem 
persist-tun 
persist-key 
user openvpn 
group openvpn 
daemon
 
Old 08-18-2011, 07:46 PM   #2
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 173
Blog Entries: 5

Rep: Reputation: 17
Do you mean your configuration file is called "vpn-server.conf"?

Normally it is called "server.conf" for server and "client.conf" or else it won't start.
And it normally resides in /etc/openvpn.
 
Old 08-19-2011, 01:30 AM   #3
lystor
Member
 
Registered: May 2010
Location: Ukraine, Donetsk
Posts: 43

Rep: Reputation: 3
Quote:
Originally Posted by jonaskellens View Post
[root@p2 openvpn]# /usr/sbin/openvpn -version
Options error: In [CMD-LINE]:1: Error opening configuration file: -version
Use --help for more information.
Hi
"-version" is invalid command line parameter of openvpn.
Try "--version":
Code:
# openvpn --version
OpenVPN 2.1.4 x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Mar 17 2011
 
Old 08-19-2011, 01:17 PM   #4
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 173
Blog Entries: 5

Rep: Reputation: 17
Quote:
Originally Posted by kostya View Post
Do you mean your configuration file is called "vpn-server.conf"?

Normally it is called "server.conf" for server and "client.conf" or else it won't start.
And it normally resides in /etc/openvpn.
Yet if you insist on calling your config file "vpn-server.conf", then try to start your openvpn like this:
Code:
#openvpn --config /etc/openvpn/vpn-server.conf
You can read the /etc/init.d/openvpn in order to see why the default config is called "server.conf" or "client.conf". So if you use the startup script it will be using such config file.

Last edited by kostya; 08-19-2011 at 01:19 PM.
 
  


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
gadmin-openvpn-client won't activate connection wjtaylor Linux - Software 2 01-20-2011 10:14 AM
OpenVPN won't revoke certs ichrispa Linux - Software 5 08-26-2010 02:57 PM
Openvpn start failed leiw Linux - Networking 1 05-20-2008 01:51 AM
Can't start windows openvpn client bambeklis Linux - Networking 2 04-09-2008 09:14 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration