Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stupid (?!) openvpn question [SOLVED]
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
demon-tf
n00b
n00b


Joined: 13 Dec 2002
Posts: 35
Location: Buchholz, Germany

PostPosted: Fri Dec 30, 2005 10:51 pm    Post subject: Stupid (?!) openvpn question [SOLVED] Reply with quote

Hi!

I just emerged openvpn while finishing a redo of my gateway machine. I'm using openvpn with a preshared key for over two years now but my setup seems to be broken now.

As far as i can tell openvpn doesn't support preshared keys anymore since the commandline arg --genkey and the config file parameter secret are generating errors like:

Options error: Unrecognized option or missing parameter(s) in [CMD-LINE]:1: genkey (2.0.5)

Any ideas?! I would really like to use the preshared keys.

Thanks, Kai
_________________
--
-- Air conditioned environment - do not open windows!
--
-- A Microsoft Certified Systems Engineer is to computing
-- what a McDonalds Certified Food Specialist is to fine cuisine


Last edited by demon-tf on Sat Dec 31, 2005 1:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
LoDown
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 189
Location: Louisville, Ky

PostPosted: Fri Dec 30, 2005 11:12 pm    Post subject: Reply with quote

What is the exact command you are trying to use? I have never used openVPN, but from some quick looking around, it appears it should be
Code:
openvpn --genkey --secret ta.key

_________________
Please remember to add [SOLVED] to your topic subject line when it is solved.
Back to top
View user's profile Send private message
demon-tf
n00b
n00b


Joined: 13 Dec 2002
Posts: 35
Location: Buchholz, Germany

PostPosted: Fri Dec 30, 2005 11:16 pm    Post subject: As i said Reply with quote

which gives:

Options error: Unrecognized option or missing parameter(s) in [CMD-LINE]:1: genkey (2.0.5)
Use --help for more information.

I read the howto and docs... I think it must either be a issue with the newer version (i was using 1.x before) or some USE flag i donn't know of.
_________________
--
-- Air conditioned environment - do not open windows!
--
-- A Microsoft Certified Systems Engineer is to computing
-- what a McDonalds Certified Food Specialist is to fine cuisine
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sat Dec 31, 2005 9:00 am    Post subject: Reply with quote

I'm running the same version and the command works for me. That could mean your version doesn't have all the same options compiled in, perhaps? Maybe SSL or SSL crypto?
Back to top
View user's profile Send private message
demon-tf
n00b
n00b


Joined: 13 Dec 2002
Posts: 35
Location: Buchholz, Germany

PostPosted: Sat Dec 31, 2005 1:40 pm    Post subject: Reply with quote

Yep, that's it! I knew it was some USE-Flag. ssl and crypt did the trick for me!!

Thanks a lot!
_________________
--
-- Air conditioned environment - do not open windows!
--
-- A Microsoft Certified Systems Engineer is to computing
-- what a McDonalds Certified Food Specialist is to fine cuisine
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sat Dec 31, 2005 1:54 pm    Post subject: Reply with quote

Glad that worked out. You can always take a peek in the .ebuild to get some clues; works for me.
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Fri Nov 10, 2006 11:37 am    Post subject: Reply with quote

My problem was that OpenVPN didn't recognize the ca option.
Therefore it refused to start. Adding the ssl-flag and recompile
fixed the problem for me.

Thanks a lot for that tip :)
_________________
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
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