LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-17-2014, 03:07 AM   #1
tripialos
Member
 
Registered: Apr 2012
Posts: 166

Rep: Reputation: Disabled
Unhappy openvpn starts but not running


Greetings

I am quite stuck here...

i installed and configured openvpn on an Centos 5 machine.

When i start the vpn server i get no errors but when i check the status it states that it is not running.


Code:
root@server:/etc/openvpn$ service openvpn start
Starting openvpn:                                          [  OK  ]
root@server:/etc/openvpn$ service openvpn status
openvpn: service not started
root@server:/etc/openvpn$ tail /var/log/messages
Jan 17 10:33:23 mx1 kernel: tun: Universal TUN/TAP device driver, 1.6
Jan 17 10:33:23 mx1 kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Jan 17 10:44:41 mx1 smbd[2964]: [2014/01/17 10:44:41, 0] printing/print_cups.c:cups_connect(69) 
Jan 17 10:44:41 mx1 smbd[2964]:   Unable to connect to CUPS server localhost:631 - Connection refused 
Jan 17 10:44:41 mx1 smbd[2964]: [2014/01/17 10:44:41, 0] printing/print_cups.c:cups_connect(69) 
Jan 17 10:44:41 mx1 smbd[2964]:   Unable to connect to CUPS server localhost:631 - Connection refused 
Jan 17 10:57:41 mx1 smbd[2964]: [2014/01/17 10:57:41, 0] printing/print_cups.c:cups_connect(69) 
Jan 17 10:57:41 mx1 smbd[2964]:   Unable to connect to CUPS server localhost:631 - Connection refused 
Jan 17 10:57:41 mx1 smbd[2964]: [2014/01/17 10:57:41, 0] printing/print_cups.c:cups_connect(69) 
Jan 17 10:57:41 mx1 smbd[2964]:   Unable to connect to CUPS server localhost:631 - Connection refused 
root@server:/etc/openvpn$ date
Fri Jan 17 11:02:45 EET 2014
root@server:/etc/openvpn$

Also no error log any where

Any ideas anyone?

Code:
root@server:~$ netstat -naup
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
udp        0      0 172.16.253.109:137          0.0.0.0:*                               2678/nmbd           
udp        0      0 0.0.0.0:137                 0.0.0.0:*                               2678/nmbd           
udp        0      0 0.0.0.0:777                 0.0.0.0:*                               2297/rpc.statd      
udp        0      0 172.16.253.109:138          0.0.0.0:*                               2678/nmbd           
udp        0      0 0.0.0.0:138                 0.0.0.0:*                               2678/nmbd           
udp        0      0 0.0.0.0:780                 0.0.0.0:*                               2297/rpc.statd      
udp        0      0 0.0.0.0:57521               0.0.0.0:*                               2730/avahi-daemon   
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               1904/dhclient       
udp        0      0 0.0.0.0:5353                0.0.0.0:*                               2730/avahi-daemon   
udp        0      0 0.0.0.0:111                 0.0.0.0:*                               2254/portmap        
udp        0      0 172.16.253.109:123          0.0.0.0:*                               2611/ntpd           
udp        0      0 x.x.x.x:123            0.0.0.0:*                               2611/ntpd           
udp        0      0 127.0.0.1:123               0.0.0.0:*                               2611/ntpd           
udp        0      0 0.0.0.0:123                 0.0.0.0:*                               2611/ntpd           
udp        0      0 :::48992                    :::*                                    2730/avahi-daemon   
udp        0      0 :::5353                     :::*                                    2730/avahi-daemon   
udp        0      0 fe80:::b04d:123               :::*                                    2611/ntpd           
udp        0      0 fe80::e:63bf:123             :::*                                    2611/ntpd           
udp        0      0 ::1:123                     :::*                                    2611/ntpd           
udp        0      0 :::123                      :::*                                    2611/ntpd
 
Old 01-17-2014, 03:18 AM   #2
tripialos
Member
 
Registered: Apr 2012
Posts: 166

Original Poster
Rep: Reputation: Disabled
I found what was causing the problem but i noticed this weird thing.

When i started the server using the service command i got no errors.

But when i started the server with the below command:

#openvpn /etc/openvpn/server.cfg


then i got an error regarding a syntax on my config file.

Why when i started the openvpn server from "service" command i didnt receive any error?
 
Old 01-17-2014, 03:40 AM   #3
tripialos
Member
 
Registered: Apr 2012
Posts: 166

Original Poster
Rep: Reputation: Disabled
Found out that the server was not starting using the "service" command because my server config file had the ".cfg" extensions instead of ".conf"

When i renamed the server.cfg file to "Server.conf" i was able to start the server using the "service" command.


that was something i didnt know....
 
  


Reply

Tags
openvpn, problem


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 starts, internet stops rastiazul Linux - Networking 15 04-16-2012 01:45 AM
Running OpenVPN in the background. waelaltaqi Linux - Software 1 05-26-2007 05:18 AM
Running programs when x starts kzar Debian 3 08-03-2004 03:49 PM
Running programs when Flux starts mattp Linux - Newbie 16 03-31-2004 06:07 PM
Running Scripts When Modem Starts Up Angelis Linux - Newbie 2 08-31-2003 12:46 PM


All times are GMT -5. The time now is 11:09 AM.

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