Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openvpn and openssl 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
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Thu Apr 27, 2006 2:09 am    Post subject: openvpn and openssl problem Reply with quote

hey guys, i am having this problem with OpenVPN.

Code:

Apr 26 22:05:02 gretch openvpn[29290]: OpenVPN 2.0.6 i686-pc-linux-gnu [SSL] [LZO] [EPOLL] buil
t on Apr 26 2006
Apr 26 22:05:02 gretch openvpn[29290]: WARNING: you are using user/group/chroot without persist
-key/persist-tun -- this may cause restarts to fail
Apr 26 22:05:02 gretch openvpn[29290]: Cipher algorithm 'BF-CBC' not found (OpenSSL)
Apr 26 22:05:02 gretch openvpn[29290]: Exiting


i searched around for a bit, some people said it was a problem with openssl 0.9.7.i.. so as some other said, unmerge openssl, re emerge and it worked for them, tried that, doesn't work.....
output of
Code:

gretch dynomyte-lssu # strings /usr/lib/libcrypto.so.0.9.7 | grep BF
BF_set_key
BF_encrypt
BF_version
BF_options
BF_ecb_encrypt
BF_decrypt
BF_cbc_encrypt
BF_cfb64_encrypt
BF_ofb64_encrypt
BF-CBC
BF-ECB
BF-CFB
BF-OFB
BFUa.X


what is wrong?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Apr 27, 2006 11:01 am    Post subject: Reply with quote

What is the output of "openvpn --show-ciphers"
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Thu Apr 27, 2006 11:45 am    Post subject: Reply with quote

Code:

gretch tom # openvpn --show-ciphers
The following ciphers and cipher modes are available
for use with OpenVPN.  Each cipher shown below may be
used as a parameter to the --cipher option.  The default
key size is shown as well as whether or not it can be
changed with the --keysize directive.  Using a CBC mode
is recommended.

DES-CBC 64 bit default key (fixed)
IDEA-CBC 128 bit default key (fixed)
RC2-CBC 128 bit default key (variable)
DES-EDE3-CBC 192 bit default key (fixed)
AES-128-CBC 128 bit default key (fixed)
AES-192-CBC 192 bit default key (fixed)
AES-256-CBC 256 bit default key (fixed)

gretch tom #


that's what i get.....
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Apr 27, 2006 12:50 pm    Post subject: Reply with quote

I have to confess, I have no idea why this happens.
It is related to how your openssl is installed though, as changing the installed version does seem to affect openvpn with blowfish.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
xtlosx
Apprentice
Apprentice


Joined: 14 Jan 2006
Posts: 219
Location: Chicago

PostPosted: Thu Apr 27, 2006 1:04 pm    Post subject: Reply with quote

so what would you reccomend i do.... i heard of some people unmerging 0.9.7i and going down to like 0.9.7e and installing it from source.... am we able to merge an older version of openssl through emerge? like the last releases. This was the first version of openssl that was installed on this machine as it's less than a month old... .. or maybe i should just unmerge, and install 0.9.7e from source?? Would it be a clean install if i did that, or would it gum up portage if i was to go about doing that..
thanks!

Any ideas?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Apr 27, 2006 1:27 pm    Post subject: Reply with quote

xtlosx wrote:
Any ideas?


I've given you my ideas

You can emerge specific versions like so

emerge -1 "=dev-libs/openssl-0.9.7i"
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
odborg
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2002
Posts: 89
Location: Aalborg, Denmark

PostPosted: Thu Jun 29, 2006 3:24 pm    Post subject: Reply with quote

I tried the following three times, with succes every time. Before that i could not get it to work (tried 5 times with MAKEOPTS="-j5" in make.conf) .
Code:
MAKEOPTS="-j1" emerge openssl

Hopes it helps. I've reported this as bug #138484
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2616
Location: Konradsreuth (Germany)

PostPosted: Sun Jul 02, 2006 11:52 am    Post subject: Reply with quote

Same Problem here -- your workaround worked here, too.
Back to top
View user's profile Send private message
odborg
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2002
Posts: 89
Location: Aalborg, Denmark

PostPosted: Fri Jul 07, 2006 11:57 am    Post subject: Reply with quote

To help resolve this bug: please report the succes of
Code:
MAKEOPTS="-j1" emerge openssl
here:
https://bugs.gentoo.org/show_bug.cgi?id=138484
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