LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-18-2011, 03:47 AM   #1
speakerbox
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Strongswan IPSec problems


Hi Guys,

Trying to get strongswan working on an Ubuntu box. I have configured the ipsec.conf file as follows:
Code:
config setup
        plutodebug=all
        charonstart=yes
        plutostart=yes

conn %default
        ikelifetime=60m
        keylife=20m
        rekeymargin=3m
        keyingtries=1
        keyexchange=ikev1
        authby=secret



conn net-net
        left=125.xxx.xxx.70
        leftsubnet=192.168.21.170/32
        leftid=@luca
        leftfirewall=yes
        right=121.xxx.xxx.28
        rightsubnet=10.80.50.104/32 
        rightid=@home
        ike=3des-md5,3des-sha
        esp=3des-md5,3des-sha1
        auto=add
The 'left' configuration is the Ubuntu box and the 'right' config is the remote site which is a Cisco router. I can see from the Cisco that it is trying to establish the connection but nothing happens. TCPDUMP shows the traffic hitting the ubuntu box.


Looking through the 'auth.log' file i see lots of errors about something called pluto... specifically this one -
Code:
ipsec_starter[26671]: FATAL ERROR: pluto cannot run without a SHA-1 hasher.
ipsec_starter[26671]: pluto has died -- restart scheduled (5sec)
ipsec_starter[26671]: pluto refused to be started
pluto[30852]: Starting IKEv1 pluto daemon (strongSwan 4.3.2) THREADS SMARTCARD VENDORID CISCO_QUIRKS
pluto[30852]: loading plugin 'aes' failed: /usr/lib/ipsec/plugins/libstrongswan-aes.so: cannot open shared object file: No such file or directory
pluto[30852]: loading plugin 'des' failed: /usr/lib/ipsec/plugins/libstrongswan-des.so: cannot open shared object file: No such file or directory
pluto[30852]: loading plugin 'sha1' failed: /usr/lib/ipsec/plugins/libstrongswan-sha1.so: cannot open shared object file: No such file or directory
pluto[30852]: loading plugin 'md5' failed: /usr/lib/ipsec/plugins/libstrongswan-md5.so: cannot open shared object file: No such file or directory
pluto[30852]: loading plugin 'sha2' failed: /usr/lib/ipsec/plugins/libstrongswan-sha2.so: cannot open shared object file: No such file or directory
Any thoughts on this? It looks like the pluto service can't start due to some missing files.... I can't find any info on this though.

Last edited by speakerbox; 12-18-2011 at 04:34 AM.
 
Old 01-18-2012, 08:04 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,436
Blog Entries: 11

Rep: Reputation: 181Reputation: 181
See if you can install the libstrongswan package.

Dunno if ubuntu got something like this. But on missing files I don't have a clue about I visit http://www.debian.org/distrib/packages#search_contents and do a search.
 
Old 05-05-2012, 02:10 AM   #3
KengaRU
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
You could try to disable listed missing plugins in /etc/strongswan.conf. That theoretically should not affect strongswan operation, because the missing plugins des aes sha1 sha2 etc. code is already in openssl libraries as noted in changelog of strongswan debian package source.

Not tested yet, but daemon started without any problem.
 
  


Reply


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
strongswan ipsec culin Linux - Networking 4 08-16-2011 11:31 PM
vpn-ipsec : Failed to parse config setup portion of ipsec.conf hari85 Linux - Newbie 1 07-17-2010 08:12 PM
Bind Pluto (StrongSwan) On Specific Interface zelda32 Linux - Security 0 01-10-2010 10:34 AM
Distros compatible with Strongswan Kaamos Linux - Networking 2 06-13-2007 10:41 AM
Problems after IPsec tunnel establishment bkankur Linux - Security 1 03-24-2005 05:42 AM


All times are GMT -5. The time now is 08:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration