<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cisco asa random drop tcp packets  send from azure apim in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4809306#M1099293</link>
    <description>&lt;P&gt;Solved ,&lt;/P&gt;&lt;P&gt;It isn't an asa problem .&lt;/P&gt;&lt;P&gt;I try to explain .&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem was the keep alive timeout of a proxy that receive the http requests from the apim&amp;nbsp; (&amp;nbsp;going through the firewall )&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the sequence that leads to the error&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;apim open a tcp connection ( SYN frame )&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;proxy answers with a SYN ACK&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;firewall asa consider the TCP connection open&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;a couple of minutes and the keep alive timeout of nginx proxy expires&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;proxy close the connection with a FIN ACK&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;apim answers with a ACK ( not a FIN ACK ) and consider the connection closed&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;for the asa firewall the connection is not closed&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;apim try to reopen the connection ( SYN frame )&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;the asa firewall consider the connection closed end drop the package&lt;/LI&gt;&lt;LI&gt;from this point on http calls no longer work&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;solution : increase the keep alive timeout of the proxy ( greater then the&amp;nbsp;corresponding timeout of apim ) .&lt;/P&gt;&lt;P&gt;in this way the sequence becomes this :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;apim open a tcp connection ( SYN frame )&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;proxy answers with a SYN ACK&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;firewall asa consider the TCP connection open&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;nginx does not close the tcp session&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;the apim's timeout&amp;nbsp;the timeout expires&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;apim emit a FIN ACK&amp;nbsp; and consider the connection closed&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;proxy answers with a FIN ACK and consider the connection closed&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;asa firewall consider the tcp connection closed&lt;/LI&gt;&lt;LI&gt;apim try to reopen the connection ( SYN frame )&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;asa firewall accept the request and send the request to the proxy&lt;/LI&gt;&lt;LI&gt;all is working , apim make http request to the proxy without problems&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;thanks for your support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 07:23:11 GMT</pubDate>
    <dc:creator>ctamietto</dc:creator>
    <dc:date>2023-04-06T07:23:11Z</dc:date>
    <item>
      <title>cisco asa random drop tcp packets  send from azure apim</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4805422#M1099152</link>
      <description>&lt;P&gt;Hi , I'm in trouble with the communications between Azure API Management and a Cisco ASA Firewall .&lt;/P&gt;&lt;P&gt;At the begin of a get request from apim , randomly some tcp package are dropped from the ASA firewall ( as of picture )&lt;/P&gt;&lt;P&gt;I guess the flow is as follows :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;apim send a SYN Packet ( that is dropped because of port number reused , the first)&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;apim resend a SYN packet after 3 second&amp;nbsp; a couple of times ( that is dropped because retrasmission )&lt;/LI&gt;&lt;LI&gt;after some minutes the communication&amp;nbsp;&amp;nbsp;resume correctly&amp;nbsp; ( as of picture , the second )&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;if I try the same get http request&amp;nbsp;repeatedly without using apim but a rest client like postman or a python script all work without errors&amp;nbsp;&lt;/P&gt;&lt;P&gt;why apim cause cisco asa to drop package ?&lt;/P&gt;&lt;P&gt;this is an excerpt from the firewall log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop-reason: (tcp-rst-syn-in-win) TCP RST/SYN in window&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;why the beaviour of apim is different from other rest client ?&lt;/P&gt;&lt;P&gt;any suggestions are welcome&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicezioneDaAzure20230331_001.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/180629iE66683C843A19301/image-size/large?v=v2&amp;amp;px=999" role="button" title="RicezioneDaAzure20230331_001.png" alt="RicezioneDaAzure20230331_001.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicezioneDaAzure20230331_002.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/180630i99052EA7B1FC21D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="RicezioneDaAzure20230331_002.png" alt="RicezioneDaAzure20230331_002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 14:00:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4805422#M1099152</guid>
      <dc:creator>ctamietto</dc:creator>
      <dc:date>2023-03-31T14:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: cisco asa random drop tcp packets  send from azure apim</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4805446#M1099153</link>
      <description>&lt;P&gt;&lt;A href="https://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-series-next-generation-firewalls/113137-asa-83-browse-00.html" target="_blank"&gt;ASA 8.3 Issue: MSS Exceeded - HTTP Clients Cannot Browse to Some Websites - Cisco&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 14:31:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4805446#M1099153</guid>
      <dc:creator>MHM Cisco World</dc:creator>
      <dc:date>2023-03-31T14:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: cisco asa random drop tcp packets  send from azure apim</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4805634#M1099170</link>
      <description>&lt;P&gt;&lt;EM&gt;I've tried but the issue is not the case &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;the log does not show any MSS Exceeded&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;instead I get&amp;nbsp;TCP RST/SYN in window&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 20:41:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4805634#M1099170</guid>
      <dc:creator>ctamietto</dc:creator>
      <dc:date>2023-03-31T20:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: cisco asa random drop tcp packets  send from azure apim</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4805636#M1099171</link>
      <description>&lt;P&gt;show local-host &amp;lt;IP&amp;gt;&lt;BR /&gt;it give us some hint why the TCP is failed&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;also please share this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;FW# &lt;STRONG&gt;capture CAPI interface IN match icmp host &amp;lt;IP&amp;gt; host &amp;lt;IP&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;FW# &lt;STRONG&gt;capture CAPI interface OUT match icmp host &amp;lt;IP&amp;gt; host &amp;lt;IP&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 21:12:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4805636#M1099171</guid>
      <dc:creator>MHM Cisco World</dc:creator>
      <dc:date>2023-03-31T21:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: cisco asa random drop tcp packets  send from azure apim</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4806042#M1099188</link>
      <description>&lt;P&gt;OK , I'll got it&amp;nbsp;&lt;/P&gt;&lt;P&gt;meanwhile I'd like to illustrate some test I've done&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image below is about the tracing of http calls made by a python script (without going through apim and it's working without problem).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicezioneDaAzure20230401_001.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/180722iEE4B5EE23C69CA1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="RicezioneDaAzure20230401_001.png" alt="RicezioneDaAzure20230401_001.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I highlighted the start ( SYN ) and end ( FYN ) of TCP sessions (for every HTTP call there is one).&lt;/P&gt;&lt;P&gt;the two images below are about tracing of http call made by apim&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicezioneDaAzure20230401_002.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/180723iE752176FAD7F5B8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="RicezioneDaAzure20230401_002.png" alt="RicezioneDaAzure20230401_002.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicezioneDaAzure20230401_003.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/180724iC05B660B3A7C799E/image-size/large?v=v2&amp;amp;px=999" role="button" title="RicezioneDaAzure20230401_003.png" alt="RicezioneDaAzure20230401_003.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this case there is only one initial connection opening ( SYN ) after which apim reuses ( at least so it seems to me ) the same session to send another http frame .&lt;/P&gt;&lt;P&gt;Now, if for any reason the apim thinks it has lost the tcp session it will try to open another one and at this point I think will happen what you see in the image below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicezioneDaAzure20230401_004.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/180725i6728EA8CF5DA14ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="RicezioneDaAzure20230401_004.png" alt="RicezioneDaAzure20230401_004.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The firewall assumes that an already open session exists and drops the tcp frame.&lt;/P&gt;&lt;P&gt;So , some question ...&lt;/P&gt;&lt;P&gt;the behavior of apim is correct ?&amp;nbsp;is it right that the firewall drop the tcp frames ?&lt;/P&gt;&lt;P&gt;what does mean this error ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop-reason: (tcp-rst-syn-in-win) TCP RST/SYN in window&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;thanks for any answer&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 15:28:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4806042#M1099188</guid>
      <dc:creator>ctamietto</dc:creator>
      <dc:date>2023-04-02T15:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: cisco asa random drop tcp packets  send from azure apim</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4809116#M1099275</link>
      <description>&lt;P&gt;I suspect&amp;nbsp; of asymmetric routing.&lt;/P&gt;
&lt;P&gt;Can you confirm you have multi path ??&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 22:51:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4809116#M1099275</guid>
      <dc:creator>MHM Cisco World</dc:creator>
      <dc:date>2023-04-05T22:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: cisco asa random drop tcp packets  send from azure apim</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4809306#M1099293</link>
      <description>&lt;P&gt;Solved ,&lt;/P&gt;&lt;P&gt;It isn't an asa problem .&lt;/P&gt;&lt;P&gt;I try to explain .&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem was the keep alive timeout of a proxy that receive the http requests from the apim&amp;nbsp; (&amp;nbsp;going through the firewall )&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the sequence that leads to the error&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;apim open a tcp connection ( SYN frame )&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;proxy answers with a SYN ACK&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;firewall asa consider the TCP connection open&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;a couple of minutes and the keep alive timeout of nginx proxy expires&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;proxy close the connection with a FIN ACK&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;apim answers with a ACK ( not a FIN ACK ) and consider the connection closed&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;for the asa firewall the connection is not closed&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;apim try to reopen the connection ( SYN frame )&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;the asa firewall consider the connection closed end drop the package&lt;/LI&gt;&lt;LI&gt;from this point on http calls no longer work&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;solution : increase the keep alive timeout of the proxy ( greater then the&amp;nbsp;corresponding timeout of apim ) .&lt;/P&gt;&lt;P&gt;in this way the sequence becomes this :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;apim open a tcp connection ( SYN frame )&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;proxy answers with a SYN ACK&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;firewall asa consider the TCP connection open&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;nginx does not close the tcp session&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;the apim's timeout&amp;nbsp;the timeout expires&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;apim emit a FIN ACK&amp;nbsp; and consider the connection closed&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;proxy answers with a FIN ACK and consider the connection closed&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;asa firewall consider the tcp connection closed&lt;/LI&gt;&lt;LI&gt;apim try to reopen the connection ( SYN frame )&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;asa firewall accept the request and send the request to the proxy&lt;/LI&gt;&lt;LI&gt;all is working , apim make http request to the proxy without problems&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;thanks for your support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 07:23:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-random-drop-tcp-packets-send-from-azure-apim/m-p/4809306#M1099293</guid>
      <dc:creator>ctamietto</dc:creator>
      <dc:date>2023-04-06T07:23:11Z</dc:date>
    </item>
  </channel>
</rss>

