<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello users I was not able to figure out how to configure this nor did I receive any replies on this thread. Is there any way to set this up?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Manu<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Users [mailto:users-bounces@lists.strongswan.org]
<b>On Behalf Of </b>Manu S. Keshava<br>
<b>Sent:</b> Monday, November 7, 2016 5:52 PM<br>
<b>To:</b> users@lists.strongswan.org<br>
<b>Subject:</b> [strongSwan] Configure multiple transports between 2 machines<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">Hi Strongswan users,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">[Machine_A] <------> [Machine_B]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">10.1.1.151/24 10.1.1.203/24<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">10.4.4.151/24 10.4.4.203/24<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">I have two machines connected to back-to-back using a single port NIC as above. I have configured and installed strongswan on both machines.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">The machines have an IP alias also configured for the interface(10.4.4.x network).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">This is the ipsec.conf file on Machine_A and Machine_B.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">CONF FILE from Machine_A<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">-------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"># ipsec.conf - strongSwan IPsec configuration file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"># basic configuration<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">config setup<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> # strictcrlpolicy=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> # uniqueids = no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">conn %default<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> ikelifetime=60m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> keylife=20m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> esp=aes128ccm64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> aggressive=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> rekeymargin=3m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> keyingtries=1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> keyexchange=ikev2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">conn machA_machB<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> left=10.1.1.151<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftcert=host2Cert.der<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftid="C=CH, O=Strongswan, CN=host1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftfirewall=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> right=10.1.1.203<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> rightid="C=CH, O=Strongswan, CN=host2"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> type=transport<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> auto=add<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">conn machA_machB_2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> left=10.4.4.151<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftcert=host2Cert.der<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftid="C=CH, O=Strongswan, CN=host1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftfirewall=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> right=10.4.4.203<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> rightid="C=CH, O=Strongswan, CN=host2"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> type=transport<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> auto=add<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">CONF FILE from Machine_B<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">-------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"># ipsec.conf - strongSwan IPsec configuration file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"># basic configuration<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">config setup<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> # strictcrlpolicy=yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> # uniqueids = no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">conn %default<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> ikelifetime=60m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> keylife=20m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> esp=aes128ccm64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> aggressive=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> rekeymargin=3m<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> keyingtries=1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> keyexchange=ikev2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">conn machA_machB<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> left=10.1.1.203<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftcert=host2Cert.der<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftid="C=CH, O=Strongswan, CN=host2"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftfirewall=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> right=10.1.1.151<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> rightid="C=CH, O=Strongswan, CN=host1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> type=transport<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> auto=add<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">conn machA_machB_2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> left=10.4.4.203<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftcert=host2Cert.der<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftid="C=CH, O=Strongswan, CN=host2"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> leftfirewall=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> right=10.4.4.151<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> rightid="C=CH, O=Strongswan, CN=host1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> type=transport<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"> auto=add<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">When I bring up conn "machA_machB", it is successful and I verified the same from "ipsec status".<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">Tried to ping over "10.1.1.X" and it was encapsulated.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">Now if I try to bring up conn "machA_machB_2", it will remove the first connection.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New",serif">What changes are required to get both of them working at the same time?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Manu<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>