<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:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name="Microsoft Theme 2.00" content="Network 011">
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:宋体;
color:black;}
h1
{mso-style-priority:9;
mso-style-link:"标题 1 Char";
margin-top:17.0pt;
margin-right:0cm;
margin-bottom:16.5pt;
margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:240%;
page-break-after:avoid;
font-size:16.0pt;
font-family:宋体;
color:black;}
h2
{mso-style-priority:9;
mso-style-link:"标题 2 Char";
margin-top:13.0pt;
margin-right:0cm;
margin-bottom:13.0pt;
margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:173%;
page-break-after:avoid;
font-size:14.0pt;
font-family:宋体;
color:black;
font-weight:normal;}
h3
{mso-style-priority:9;
mso-style-link:"标题 3 Char";
margin-top:13.0pt;
margin-right:0cm;
margin-bottom:13.0pt;
margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:173%;
page-break-after:avoid;
font-size:13.0pt;
font-family:宋体;
color:black;
font-weight:normal;}
h4
{mso-style-priority:9;
mso-style-link:"标题 4 Char";
margin-top:14.0pt;
margin-right:0cm;
margin-bottom:14.5pt;
margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:156%;
page-break-after:avoid;
font-size:14.0pt;
font-family:宋体;
color:black;
font-weight:normal;}
h5
{mso-style-priority:9;
mso-style-link:"标题 5 Char";
margin-top:14.0pt;
margin-right:0cm;
margin-bottom:14.5pt;
margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:156%;
page-break-after:avoid;
font-size:13.0pt;
font-family:宋体;
color:black;
font-weight:normal;}
h6
{mso-style-priority:9;
mso-style-link:"标题 6 Char";
margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.2pt;
margin-left:0cm;
text-align:justify;
text-justify:inter-ideograph;
line-height:133%;
page-break-after:avoid;
font-size:11.0pt;
font-family:宋体;
color:black;
font-weight:normal;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0066CC;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#999999;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"批注框文本 Char";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:9.0pt;
font-family:宋体;
color:black;}
span.EmailStyle17
{mso-style-type:personal-compose;
color:black;}
span.1Char
{mso-style-name:"标题 1 Char";
mso-style-priority:9;
mso-style-link:"标题 1";
font-family:宋体;
color:black;
font-weight:bold;}
span.2Char
{mso-style-name:"标题 2 Char";
mso-style-priority:9;
mso-style-link:"标题 2";
font-family:宋体;
color:black;}
span.3Char
{mso-style-name:"标题 3 Char";
mso-style-priority:9;
mso-style-link:"标题 3";
font-family:宋体;
color:black;}
span.4Char
{mso-style-name:"标题 4 Char";
mso-style-priority:9;
mso-style-link:"标题 4";
font-family:宋体;
color:black;}
span.5Char
{mso-style-name:"标题 5 Char";
mso-style-priority:9;
mso-style-link:"标题 5";
font-family:宋体;
color:black;}
span.6Char
{mso-style-name:"标题 6 Char";
mso-style-priority:9;
mso-style-link:"标题 6";
font-family:宋体;
color:black;}
span.Char
{mso-style-name:"批注框文本 Char";
mso-style-priority:99;
mso-style-link:批注框文本;
font-family:宋体;
color:black;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</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 bgcolor=white background="cid:image001.gif@01CD5DFA.ACC5BE20" lang=ZH-CN
link="#0066CC" vlink="#999999" style='text-justify-trim:punctuation'>
<img src="cid:image001.gif@01CD5DFA.ACC5BE20"
v:src="cid:image001.gif@01CD5DFA.ACC5BE20" v:shapes="_x0000_Mail" width=0
height=0 class=shape style='display:none;width:0;height:0'><!--[if gte mso 9]><xml>
<v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="1024,768">
<v:fill src="cid:image001.gif@01CD5DFA.ACC5BE20" o:title="netbkgnd" type="frame" />
</v:background></xml><![endif]-->
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> I have a question want
to consult. I configured a lot of nodes with ikev2</span>,<span lang=EN-US>most
of nodes established, some nodes is connecting or not connected. I have a shell
script to detect ipsec tunnel connection status. If the node is not
established, I will execute ipsec up tunnelname. My script is executed once
every two minutes. Half a day after I run ipsec statusall to appear as:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>bash-3.2# ipsec statusall<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 Status of IKEv1 pluto daemon
(strongSwan 4.5.0):<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface lo/lo ::1:500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface lo/lo 127.0.0.1:4500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface lo/lo 127.0.0.1:500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface eth0/eth0 120.197.249.35:4500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface eth0/eth0 120.197.249.35:500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface eth1/eth1 10.0.2.253:4500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface eth1/eth1 10.0.2.253:500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface
tun0:1341804414/tun0:1341804414 10.0.2.129:4500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface
tun0:1341804414/tun0:1341804414 10.0.2.129:500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface
tun0:1341804415/tun0:1341804415 10.10.10.1:4500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 interface
tun0:1341804415/tun0:1341804415 10.10.10.1:500<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 %myid = '%any'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 loaded plugins: curl ldap aes des sha1
sha2 md5 random x509 pkcs1 pgp dnskey pem openssl hmac attr kernel-pfkey
kernel-netlink resolve <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 debug options: none<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 "asg-ar2831":
10.0.0.0/16===120.197.249.35[120.197.249.35]---120.197.249.33...221.179.41.22[221.179.41.22]===10.8.0.0/16;
erouted; eroute owner: #12<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 "asg-ar2831":
ike_life: 86400s; ipsec_life: 86400s; rekey_margin: 30s; rekey_fuzz: 50%;
keyingtries: 3<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 "asg-ar2831":
dpd_action: clear; dpd_delay: 10s; dpd_timeout: 30s;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 "asg-ar2831":
policy: PSK+ENCRYPT+TUNNEL+UP; prio: 16,16; interface: eth0; <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 "asg-ar2831":
newest ISAKMP SA: #1; newest IPsec SA: #12; <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 "asg-ar2831": IKE
proposal: 3DES_CBC/HMAC_MD5/MODP_1024<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 "asg-ar2831": ESP
proposal: 3DES_CBC/HMAC_MD5/<N/A><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 #12: "asg-ar2831"
STATE_QUICK_I2 (sent QI2, IPsec SA established); EVENT_SA_REPLACE in 86276s;
newest IPSEC; eroute owner<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 #12: "asg-ar2831" <a
href="mailto:esp.bcc00f12@221.179.41.22">esp.bcc00f12@221.179.41.22</a> (0
bytes) <a href="mailto:esp.caf7ca84@120.197.249.35">esp.caf7ca84@120.197.249.35</a>
(0 bytes); tunnel<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000 #1: "asg-ar2831"
STATE_MAIN_I4 (ISAKMP SA established); EVENT_SA_REPLACE in 85072s; newest
ISAKMP; DPD active<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>000<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>ipsec statusall will die. All of tunnels
will disconnect.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I want to know what causes it, thank you</span>!<span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
<tr>
<td width=190 style='width:142.5pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal align=center style='margin-top:6.0pt;mso-para-margin-top:
.5gd;text-align:center'><span lang=EN-US><a href="http://www.netentsec.com/"
target="_blank"><span style='font-family:"Calibri","sans-serif";color:black;
text-decoration:none'><img border=0 width=163 height=44 id="图片_x0020_2"
src="cid:image002.png@01CD5DFA.ACC5BE20"
alt="cid:image001.png@01CBFF87.CE876A40"></span></a></span><span lang=EN-US
style='font-size:7.5pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p class=MsoNormal align=center style='margin-top:6.0pt;mso-para-margin-top:
.5gd;text-align:center'><span lang=EN-US style='font-size:9.0pt;font-family:
"Arial","sans-serif"'><a href="www.netentsec.com"><span style='color:blue'>www.netentsec.com</span></a><o:p></o:p></span></p>
<p class=MsoNormal align=center style='margin-top:6.0pt;mso-para-margin-top:
.5gd;text-align:center'><span lang=EN-US style='font-family:"Calibri","sans-serif";
color:#1F497D'>400-678-3600</span><span lang=EN-US style='font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>
</td>
<td width=21 style='width:15.6pt;padding:0cm 0cm 0cm 0cm'></td>
<td width=309 valign=top style='width:231.75pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal><span style='font-size:9.0pt'>姓名</span><span
style='font-size:9.0pt;font-family:"Arial","sans-serif"'> </span><span
style='font-size:9.0pt'>刘立鑫</span><span lang=EN-US style='font-size:9.0pt;
font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt'>部门 工程部<span lang=EN-US>-ASG</span>组</span><b><span
lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></b></p>
<p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:
"Calibri","sans-serif"'><o:p> </o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt'>邮件:</span></b><span
lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'><a
href="mailto:xxxx@netentsec.com"><span style='color:blue'>lixin_liu@netentsec.com</span></a><o:p></o:p></span></p>
<p class=MsoNormal><b><span style='font-size:9.0pt'>总机:</span></b><span
lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'>+86 10
6267 0909</span><span lang=EN-US style='font-size:9.0pt'>-6934</span><b><span
lang=EN-US style='font-size:9.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:9.0pt'>传真:</span></b><span
lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'>+86 10
6267 0958<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt'>北京市海淀区中关村东路</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Calibri","sans-serif"'>66</span><span
style='font-size:9.0pt'>号长城大厦</span><span lang=EN-US style='font-size:9.0pt;
font-family:"Calibri","sans-serif"'>3</span><span style='font-size:9.0pt'>层</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif"'> 100190</span><span
lang=EN-US style='font-size:9.0pt'><o:p></o:p></span></p>
</td>
</tr>
</table>
<p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>