LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-13-2012, 02:07 AM   #1
sriram_ec
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Rep: Reputation: 0
strongswan ikev2 issue in setting up tunnels


Hi,

There is ipsec configuration made between two linux machines.(version 2.6.21.7)
strongswan version is 4.3.1. configuration is done using ikev2.

There is a rule r1 making use of tunnel v1.
Also there is a rule r2 making use of tunnel v2.

Same set of certificates is used between two tunnels.

When the traffic hits the rule r1,ike negotiations start, child sa gets established. ESP packets start flowing.

But when the traffic is sent which hits the rule r2. Now Ike negotiations have to start from v2. But instead of that, charon says that ike_sa already exists and it tries make this new ike sa as the child sa of existing ike sa and fails eventually.

To overcome this problem, reuse_ikesa = no is added to strongswan.conf file. But with this configuration, when the traffic hits the rule r2, old ike_sa got deleted and new one got established.

But we want both the tunnels to be established at the same time, with the same set of certificates.
Any ideas ?

Regards,
Sriram.
 
Old 06-14-2012, 01:54 AM   #2
ecdsa
LQ Newbie
 
Registered: Jun 2012
Posts: 15

Rep: Reputation: Disabled
This is due to the uniqueids option in ipsec.conf. The default value for this is 'yes' which means that only one IKE_SA with a specific set of identities is allowed. Since you have configured the same certificate for both SAs this will be the case here. By setting uniqueids=no you should be able to create two IKE_SAs with the same identities.

Quote:
But instead of that, charon says that ike_sa already exists and it tries make this new ike sa as the child sa of existing ike sa and fails eventually.
It actually tries to create a new CHILD_SA within the existing IKE_SA. What is the reason this fails eventually? Could you post excerpts of the logs (of both hosts) that show the failure?
 
Old 06-19-2012, 04:09 AM   #3
sriram_ec
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you very much for the response. with unique_ids=no in ipsec.conf and reuse_ikesa=no in strongswan.conf, we are able to comeover the problem.

Regards,
Sriram.
 
  


Reply



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 related Niharika.R Linux - Networking 0 06-03-2012 10:52 PM
Problem with setting L2TP VPN in kubuntu using strongswan AmirGooran Linux - Networking 0 05-11-2012 03:27 PM
setting up real tunnels with ssh with authentication Skaperen Linux - Networking 2 11-23-2011 08:48 PM
strongswan ipsec culin Linux - Networking 4 08-16-2011 11:31 PM
IKEV2 test---pls help me woshizhuzi Linux - Networking 0 09-09-2010 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration