<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
If the remote side is dynamic you will run into a problem with your
secrets file as it never gets re-read when a tunnel is rekeyed. I
think one of the DPD actions should do this but Paul Wouters does
not agree. Anyway, you can modify ipsec secrets to:<br>
: PSK "mypresharedkey"<br>
<br>
Another alternative is that if you can force the rightid to
something meaningful you can use that in your ipsec.secrets instead
of the right FQDN you have.<br>
<br>
Nick<br>
<br>
On 11/07/2010 04:47, Ing. Rodrigo Fernandez wrote:
<blockquote cite="mid:000001cb20ab$c5a0d760$50e28620$@com.mx"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</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]-->
<div class="Section1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi!! Yes willie you’re right it is looking
for another
“host pair” let me explain you the schema:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We only have one ipsec tunnel but the two
points are via
dyndns then im assuming that when the ip of the fortinet side
(remote side )
changes, openswan never tries again to “nslookup” the name of
the
remote endpoint and then I got the mistake ill send the conf
again and you can
see that im declaring well my rules:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">conn netcafe<o:p></o:p></p>
<p class="MsoNormal"> auth=esp<o:p></o:p></p>
<p class="MsoNormal"> authby=secret<o:p></o:p></p>
<p class="MsoNormal"> auto=start<o:p></o:p></p>
<p class="MsoNormal"> esp=3des-md5!<o:p></o:p></p>
<p class="MsoNormal"> ikelifetime=1800s<o:p></o:p></p>
<p class="MsoNormal"> keyingtries=10<o:p></o:p></p>
<p class="MsoNormal"> keylife=28800s<o:p></o:p></p>
<p class="MsoNormal"> left=mydyndns1.ath.cx<o:p></o:p></p>
<p class="MsoNormal"> leftid=192.9.201.254<o:p></o:p></p>
<p class="MsoNormal"> leftnexthop=192.9.201.254<o:p></o:p></p>
<p class="MsoNormal"> leftsubnet=192.9.201.0/24<o:p></o:p></p>
<p class="MsoNormal"> right=mydyndns2.ath.cx<o:p></o:p></p>
<p class="MsoNormal"> rightid=%any<o:p></o:p></p>
<p class="MsoNormal"> rightnexthop=10.0.254.254<o:p></o:p></p>
<p class="MsoNormal"> rightsubnet=10.0.254.0/24<o:p></o:p></p>
<p class="MsoNormal"> ike=3des-md5!<o:p></o:p></p>
<p class="MsoNormal"> keyexchange=ike<o:p></o:p></p>
<p class="MsoNormal"> dpddelay=30<o:p></o:p></p>
<p class="MsoNormal"> dpdtimeout=120<o:p></o:p></p>
<p class="MsoNormal"> dpdaction=restart<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">and my secret is:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">mydyndns1.ath.cx mydyndns2.ath.cx : PSK
"mypresharedkey"<o:p></o:p></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Users@openswan.org">Users@openswan.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openswan.org/mailman/listinfo/users">http://lists.openswan.org/mailman/listinfo/users</a>
Building and Integrating Virtual Private Networks with Openswan:
<a class="moz-txt-link-freetext" href="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</a>
</pre>
</blockquote>
</body>
</html>