ā03-31-2023 07:00 AM
Hi , I'm in trouble with the communications between Azure API Management and a Cisco ASA Firewall .
At the begin of a get request from apim , randomly some tcp package are dropped from the ASA firewall ( as of picture )
I guess the flow is as follows :
if I try the same get http request repeatedly without using apim but a rest client like postman or a python script all work without errors
why apim cause cisco asa to drop package ?
this is an excerpt from the firewall log
Drop-reason: (tcp-rst-syn-in-win) TCP RST/SYN in window
why the beaviour of apim is different from other rest client ?
any suggestions are welcome
thank you
ā03-31-2023 07:31 AM
ā03-31-2023 01:41 PM
I've tried but the issue is not the case
the log does not show any MSS Exceeded
instead I get TCP RST/SYN in window
ā03-31-2023 01:43 PM - edited ā03-31-2023 02:12 PM
show local-host <IP>
it give us some hint why the TCP is failed
also please share this
FW# capture CAPI interface IN match icmp host <IP> host <IP>
FW# capture CAPI interface OUT match icmp host <IP> host <IP>
ā04-02-2023 08:28 AM
OK , I'll got it
meanwhile I'd like to illustrate some test I've done
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).
I highlighted the start ( SYN ) and end ( FYN ) of TCP sessions (for every HTTP call there is one).
the two images below are about tracing of http call made by apim
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 .
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
The firewall assumes that an already open session exists and drops the tcp frame.
So , some question ...
the behavior of apim is correct ? is it right that the firewall drop the tcp frames ?
what does mean this error ?
Drop-reason: (tcp-rst-syn-in-win) TCP RST/SYN in window
thanks for any answer
ā04-05-2023 03:51 PM
I suspect of asymmetric routing.
Can you confirm you have multi path ??
ā04-06-2023 12:23 AM
Solved ,
It isn't an asa problem .
I try to explain .
the problem was the keep alive timeout of a proxy that receive the http requests from the apim ( going through the firewall )
this is the sequence that leads to the error
solution : increase the keep alive timeout of the proxy ( greater then the corresponding timeout of apim ) .
in this way the sequence becomes this :
thanks for your support
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide