# Incorrect identification of source ip and destination ip

**URL:** <https://forum.suricata.io/t/incorrect-identification-of-source-ip-and-destination-ip/2398>\
**Category:** Help\
**Tags:** community\
**Created:** [April 14, 2022, 2:05am UTC](https://forum.suricata.io/t/incorrect-identification-of-source-ip-and-destination-ip/2398 "2022-04-14T02:05:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![156964](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@156964](https://forum.suricata.io/u/156964)\
**Post date:** [April 14, 2022, 2:05am UTC](https://forum.suricata.io/t/incorrect-identification-of-source-ip-and-destination-ip/2398/1 "2022-04-14T02:05:22Z")

</div>

The last session has not ended, and a new session comes in, causing the source ip and destination ip to be reversed.（suricata is to get the flow of the switch in mirror mode。）  
Can the residual message not be read in the configuration file?

---

<div class="post-metadata">

**Author:** ![bmurphy](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bmurphy](https://forum.suricata.io/u/bmurphy)\
**Post date:** [April 15, 2022, 12:29pm UTC](https://forum.suricata.io/t/incorrect-identification-of-source-ip-and-destination-ip/2398/2 "2022-04-15T12:29:29Z")

</div>

Is this being observed in the eve log? If so, what event type within the eve log is the “reversed” src/dst ips appearing in? Are you able to provide a screenshot, or the output demonstrating the issue?

---

<div class="post-metadata">

**Author:** ![156964](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@156964](https://forum.suricata.io/u/156964)\
**Post date:** [April 15, 2022, 12:34pm UTC](https://forum.suricata.io/t/incorrect-identification-of-source-ip-and-destination-ip/2398/3 "2022-04-15T12:34:37Z")

</div>

![image](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/2X/7/703c5f2cef0a1ab82a41e639dab8843b82125f11.png)  
thanks!

---

<div class="post-metadata">

**Author:** ![156964](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@156964](https://forum.suricata.io/u/156964)\
**Post date:** [April 15, 2022, 12:35pm UTC](https://forum.suricata.io/t/incorrect-identification-of-source-ip-and-destination-ip/2398/4 "2022-04-15T12:35:27Z")

</div>

![image](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/2X/7/703c5f2cef0a1ab82a41e639dab8843b82125f11.png)

---

<div class="post-metadata">

**Author:** ![Andreas\_Herz](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/andreas_herz/32/52_2.png) [@Andreas\_Herz](https://forum.suricata.io/u/Andreas_Herz)\
**Post date:** [April 16, 2022, 10:44pm UTC](https://forum.suricata.io/t/incorrect-identification-of-source-ip-and-destination-ip/2398/5 "2022-04-16T22:44:00Z")

</div>

I don’t think the output is wrong, you match on the fileinfo that is sent from the HTTP server (12.27.19.156) to the requesting client.
