View previous topic :: View next topic |
Author |
Message |
demon-tf n00b
Joined: 13 Dec 2002 Posts: 35 Location: Buchholz, Germany
|
Posted: Fri Dec 30, 2005 10:51 pm Post subject: Stupid (?!) openvpn question [SOLVED] |
|
|
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 |
|
|
LoDown Apprentice
Joined: 26 Oct 2004 Posts: 189 Location: Louisville, Ky
|
Posted: Fri Dec 30, 2005 11:12 pm Post subject: |
|
|
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 |
|
|
demon-tf n00b
Joined: 13 Dec 2002 Posts: 35 Location: Buchholz, Germany
|
Posted: Fri Dec 30, 2005 11:16 pm Post subject: As i said |
|
|
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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sat Dec 31, 2005 9:00 am Post subject: |
|
|
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 |
|
|
demon-tf n00b
Joined: 13 Dec 2002 Posts: 35 Location: Buchholz, Germany
|
Posted: Sat Dec 31, 2005 1:40 pm Post subject: |
|
|
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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sat Dec 31, 2005 1:54 pm Post subject: |
|
|
Glad that worked out. You can always take a peek in the .ebuild to get some clues; works for me. |
|
Back to top |
|
|
mariourk l33t
Joined: 11 Jul 2003 Posts: 807 Location: Urk, Netherlands
|
Posted: Fri Nov 10, 2006 11:37 am Post subject: |
|
|
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 |
|
|
|