<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    Why are you not using dpd ? Add this to your conf :<br>
    <br>
    dpdaction=restart_by_peer<br>
    dpddelay=30<br>
    dpdtimeout=120<br>
    <br>
    <div class="moz-cite-prefix">On Thursday 06 September 2012 08:33 PM,
      Mitsuo Yazawa wrote:<br>
    </div>
    <blockquote cite="mid:C449644EA44D454DB0D359875D479178@SakuraPC"
      type="cite">
      <div dir="ltr">
        <div style="FONT-FAMILY: 'Calibri'; COLOR: #008000; FONT-SIZE:
          14pt">
          <div><font size="3">Hi,</font></div>
          <div>&nbsp;</div>
          <blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
            <div><font size="3">I have this connection which connects
                perfectly and all. but it keeps disconecting in random
                times. I need a way to make it stop disconnecting</font></div>
            <div><font size="3">this is my setup:</font></div>
            <div>&nbsp;</div>
            <div><font size="3">conn tunnelipsec</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #CLIENT</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left=&lt;MyIP&gt;</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftsubnet=10.90.48.10/32</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #REMOTEHOST</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; right=&lt;targetIP&gt;</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightsubnet=10.90.0.0/16</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; authby=secret</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auto=start</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; compress=no</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=tunnel</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pfs=yes</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forceencaps=yes</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #PHASE1</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keylife=28800s</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #PHASE2</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; phase2=esp</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                phase2alg=3des-sha1,aes128-sha1;modp1536</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ikelifetime=1800s</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rekey=yes</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rekeymargin=15m</font></div>
          </blockquote>
          <div>&nbsp;</div>
          <div><font size="3">I also added</font></div>
          <blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; force_keepalive=yes</font></div>
            <div><font size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keep_alive=10 </font></div>
            <div>&nbsp;</div>
            <div><font size="3">to see if that helped keeping it alive
                (with no different result)</font></div>
            <div><font size="3">For now I made my own script to detect
                disconnection, and restart ipsec service. which has been
                working but not what I want.</font></div>
          </blockquote>
          <div>&nbsp;</div>
          <div><font size="4">any help i would appreciate.</font></div>
          <div>&nbsp;</div>
          <div><font size="4">Mitsuo</font></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.openswan.org">Users@lists.openswan.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openswan.org/mailman/listinfo/users">https://lists.openswan.org/mailman/listinfo/users</a>
Micropayments: <a class="moz-txt-link-freetext" href="https://flattr.com/thing/38387/IPsec-for-Linux-made-easy">https://flattr.com/thing/38387/IPsec-for-Linux-made-easy</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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Best Regards,
Elison Niven</pre>
  </body>
</html>