Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenVPN 2.0.2 init script problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tracyde
n00b
n00b


Joined: 18 Feb 2004
Posts: 27

PostPosted: Wed Sep 21, 2005 10:32 am    Post subject: OpenVPN 2.0.2 init script problem Reply with quote

I have been trying to get OpenVPN working for a couple of days now and have finally been able to get it to start via the command line

Code:
/usr/sbin/openvpn --config /etc/openvpn/server/local.conf


But whenever I attempt to start it via the Gentoo init scripts (/etc/init.d/openvpn) it does absolutely nothing.

Code:
hades ~ # /etc/init.d/openvpn start
 * Starting openvpn for server ...                                                                                                                   [ !! ]


Has anyone else had this problem or could possibly know of a way to get more debug information?
_________________
----------------------------------------------------
-- D --
----------------------------------------------------
Back to top
View user's profile Send private message
jamapii
Guru
Guru


Joined: 16 Sep 2004
Posts: 527

PostPosted: Wed Sep 21, 2005 7:01 pm    Post subject: Reply with quote

Maybe you still have the old init script that looks for /etc/openvpn/server.conf, either because you didn't update it when running dispatch-conf, or because the ebuild in your overlay is based on an old version, not on the latest one.

PS: if both don't apply to you, maybe something in your local.conf refers files outside its directory... the init script doesn't only pass --config but also --daemon and --cd arguments.


Last edited by jamapii on Wed Sep 21, 2005 7:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
DNAspark99
Guru
Guru


Joined: 03 Sep 2004
Posts: 321

PostPosted: Wed Sep 21, 2005 7:09 pm    Post subject: Re: OpenVPN 2.0.2 init script problem Reply with quote

tracyde wrote:

Has anyone else had this problem or could possibly know of a way to get more debug information?


openvpn should be dumping some info into your logs, check /var/log/messages for clues
Back to top
View user's profile Send private message
tracyde
n00b
n00b


Joined: 18 Feb 2004
Posts: 27

PostPosted: Fri Sep 23, 2005 9:37 am    Post subject: Reply with quote

As far as I can tell my config file is correct and I am using the newest available version/ebuild of OpenVPN (2.0.2)
My /etc/openvpn directory is setup correctly and everthing in my local.conf file is a full and correct path (i.e. /etc/openvpn/server/keys/ca.crt)

And I have looked at my /var/log/messages the only thing that is displayed after the failed attempt to bring up openvpn is

Code:
Sep 23 05:29:37 hades openvpn[14775]: Exiting


That is it and I have the verbosity set to 11
_________________
----------------------------------------------------
-- D --
----------------------------------------------------
Back to top
View user's profile Send private message
cchee
Apprentice
Apprentice


Joined: 29 Jul 2003
Posts: 214
Location: NYC

PostPosted: Tue Oct 04, 2005 8:06 pm    Post subject: Reply with quote

You tried running via command line instead?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum