<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Tunnel down with many SAD table entries]]></title><description><![CDATA[<p dir="auto">I have a randomly recurring problem (ain't those the best!)</p>
<p dir="auto">My IPSec tunnel to a Linksys BEFVP41 router goes down on me after a while with dozens of entries in the SAD table. When I look at the IPSec log file I see loads of entries like these repeating every 30 seconds or so:<br />
(NOTE - <strong>local</strong> and <strong>remote</strong> used in place of my real IPs)</p>
<p dir="auto">========================================</p>
<p dir="auto">Apr 18 15:39:35 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>local</strong>[0]-&gt;<strong>remote</strong>[0] spi=2215712033(0x84111521)<br />
Apr 18 15:39:35 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>remote</strong>[0]-&gt;<strong>local</strong>[0] spi=166608929(0x9ee4021)<br />
Apr 18 15:39:35 racoon: [to_hempstead]: INFO: respond new phase 2 negotiation: <strong>local</strong>[0]&lt;=&gt;<strong>remote</strong>[0]<br />
Apr 18 15:39:34 racoon: [to_hempstead]: INFO: ISAKMP-SA established <strong>local</strong>[500]-<strong>remote</strong>[500] spi:30c6711de8c69c14:ddaf1692daf23ff0<br />
Apr 18 15:39:34 racoon: INFO: begin Identity Protection mode.<br />
Apr 18 15:39:34 racoon: [to_hempstead]: INFO: respond new phase 1 negotiation: <strong>local</strong>[500]&lt;=&gt;<strong>remote</strong>[500]<br />
Apr 18 15:38:34 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>local</strong>[0]-&gt;<strong>remote</strong>[0] spi=1978531947(0x75ee006b)<br />
Apr 18 15:38:34 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>remote</strong>[0]-&gt;<strong>local</strong>[0] spi=5750318(0x57be2e)<br />
Apr 18 15:38:34 racoon: [to_hempstead]: INFO: respond new phase 2 negotiation: <strong>local</strong>[0]&lt;=&gt;<strong>remote</strong>[0]<br />
Apr 18 15:38:34 racoon: [to_hempstead]: INFO: ISAKMP-SA established <strong>local</strong>[500]-<strong>remote</strong>[500] spi:7205637fd9426190:51794a64b623647d<br />
Apr 18 15:38:33 racoon: INFO: begin Identity Protection mode.<br />
Apr 18 15:38:33 racoon: [to_hempstead]: INFO: respond new phase 1 negotiation: <strong>local</strong>[500]&lt;=&gt;<strong>remote</strong>[500]<br />
Apr 18 15:37:34 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>local</strong>[0]-&gt;<strong>remote</strong>[0] spi=3036263550(0xb4f9b47e)<br />
Apr 18 15:37:34 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>remote</strong>[0]-&gt;<strong>local</strong>[0] spi=77912038(0x4a4d7e6)<br />
Apr 18 15:37:34 racoon: [to_hempstead]: INFO: respond new phase 2 negotiation: <strong>local</strong>[0]&lt;=&gt;<strong>remote</strong>[0]<br />
Apr 18 15:37:34 racoon: [to_hempstead]: INFO: ISAKMP-SA established <strong>local</strong>[500]-<strong>remote</strong>[500] spi:37acf28d2ed2d19d:d84e5eba3c9cca5b<br />
Apr 18 15:37:34 racoon: INFO: begin Identity Protection mode.<br />
Apr 18 15:37:34 racoon: [to_hempstead]: INFO: respond new phase 1 negotiation: <strong>local</strong>[500]&lt;=&gt;<strong>remote</strong>[500]<br />
Apr 18 15:37:04 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>local</strong>[0]-&gt;<strong>remote</strong>[0] spi=2159154306(0x80b21482)<br />
Apr 18 15:37:04 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>remote</strong>[0]-&gt;<strong>local</strong>[0] spi=21607017(0x149b269)<br />
Apr 18 15:37:04 racoon: [to_hempstead]: INFO: respond new phase 2 negotiation: <strong>local</strong>[0]&lt;=&gt;<strong>remote</strong>[0]<br />
Apr 18 15:37:04 racoon: [to_hempstead]: INFO: ISAKMP-SA established <strong>local</strong>[500]-<strong>remote</strong>[500] spi:8df5d585bc709889:b82e5493a8135625<br />
Apr 18 15:37:04 racoon: INFO: begin Identity Protection mode.<br />
Apr 18 15:37:04 racoon: [to_hempstead]: INFO: respond new phase 1 negotiation: <strong>local</strong>[500]&lt;=&gt;<strong>remote</strong>[500]<br />
Apr 18 15:36:54 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>local</strong>[0]-&gt;<strong>remote</strong>[0] spi=2900939091(0xace8d153)<br />
Apr 18 15:36:54 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>remote</strong>[0]-&gt;<strong>local</strong>[0] spi=138401863(0x83fd847)<br />
Apr 18 15:36:54 racoon: [to_hempstead]: INFO: respond new phase 2 negotiation: <strong>local</strong>[0]&lt;=&gt;<strong>remote</strong>[0]<br />
Apr 18 15:25:05 racoon: [to_hempstead]: INFO: IPsec-SA expired: ESP/Tunnel <strong>remote</strong>[0]-&gt;<strong>local</strong>[0] spi=189670690(0xb4e2522)<br />
Apr 18 15:25:05 racoon: [to_hempstead]: INFO: IPsec-SA expired: ESP <strong>local</strong>[0]-&gt;<strong>remote</strong>[0] spi=2687302083(0xa02cf9c3)<br />
Apr 18 14:37:04 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>local</strong>[0]-&gt;<strong>remote</strong>[0] spi=2687302083(0xa02cf9c3)<br />
Apr 18 14:37:04 racoon: [to_hempstead]: INFO: IPsec-SA established: ESP <strong>remote</strong>[0]-&gt;<strong>local</strong>[0] spi=189670690(0xb4e2522)<br />
Apr 18 14:37:04 racoon: [to_hempstead]: INFO: respond new phase 2 negotiation: <strong>local</strong>[0]&lt;=&gt;<strong>remote</strong>[0]<br />
Apr 18 14:25:15 racoon: [to_hempstead]: INFO: IPsec-SA expired: ESP/Tunnel <strong>remote</strong>[0]-&gt;<strong>local</strong>[0] spi=207077908(0xc57c214)<br />
Apr 18 14:25:15 racoon: [to_hempstead]: INFO: IPsec-SA expired: ESP <strong>local</strong>[0]-&gt;<strong>remote</strong>[0] spi=2791923(0x2a99f3)</p>
<p dir="auto">========================================</p>
<p dir="auto">It seems that racoon gets into a vicious cycle and continuously generates SPI entries in the SAD table. If I restart the IPSec service the SAD table is wiped clean and the VPN gets up and running just fine. It stays that way through none or many phase negotiations and then for whatever reason, goes bananas and starts creating loads of SPI entries all over again.</p>
<p dir="auto">Has anyone else seen this behavior before?</p>
<p dir="auto">Other thread references:<br />
http://forum.pfsense.org/index.php/topic,27344.0.html<br />
http://forum.pfsense.org/index.php/topic,32385.0.html</p>
<p dir="auto">BTW - I'm using pfSense 1.2.3-RELEASE</p>
<p dir="auto">Thanks,<br />
Jason</p>
]]></description><link>https://forum.netgate.com/topic/32867/tunnel-down-with-many-sad-table-entries</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 23:56:50 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/32867.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Apr 2011 20:08:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tunnel down with many SAD table entries on Tue, 26 Apr 2011 19:46:44 GMT]]></title><description><![CDATA[<p dir="auto">As a follow-up to my own post…</p>
<p dir="auto">By enabling the " Prefer old IPsec SAs " my problem has been resolved. The IPSec connection still tries for multiple SAD entries but falls back to the proper number, two.</p>
<p dir="auto">This config option can be found, in version 1.2.3, in the System menu, under Advanced, in the Miscellaneous config options.</p>
<p dir="auto">Jason</p>
]]></description><link>https://forum.netgate.com/post/276378</link><guid isPermaLink="true">https://forum.netgate.com/post/276378</guid><dc:creator><![CDATA[cfapress]]></dc:creator><pubDate>Tue, 26 Apr 2011 19:46:44 GMT</pubDate></item></channel></rss>