<div dir="ltr">Frank,<div><br></div><div>The switch is doing what switches do - it has learned which interface the different computers are connected to and sends the ICMP packet for C only to the port C is connected to, and doesn't send a packet to the port B is connected to - in a normal switched environment, B will only get packets destined to B at the Layer 2 level.<div><br></div><div>In order for B to monitor all packets on the LAN, you need to configure B's switch port for "monitor mode" or "span port mode" - this usually requires a more expensive switch that can be managed remotely, and not a simple switch that has no management UI.</div></div><div><br></div><div>Another idea, more affordable, but also more crude, is to use a hub/bridge instead of a switch - this way, everyone gets a copy of everyone's packet.  This will reduce the effective bandwidth on your LAN, but if most devices are going to/from the Internet, you won't notice it overmuch.  Bridges are more hard to find these days, especially at higher speeds.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 22, 2019 at 10:33 PM Tuấn Ngọc Trần Lê <<a href="mailto:tranletuanngoc@gmail.com">tranletuanngoc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I wrote a rule for Suricata to detect ICMP connection and have it loaded.</div><div>alert icmp $HOME_NET any -> $HOME_NET any (msg:"ICMP connection attempt"; sid:1000002; rev:1;)<br></div><div><br></div><div>It works fine when I try to ping from a computer  in the network 

(A)

 to the one running Suricata (B).</div><div>However, when I ping from (A) to another computer (C), (B) doesn't detect and alert.</div><div>(A), (B) and (C) are being connected to a switch.</div><div><br></div><div>Please help me.</div><div><br></div><div>Thank you,</div><div>Ngoc Tran (Frank)</div></div>
_______________________________________________<br>
Suricata IDS Users mailing list: <a href="mailto:oisf-users@openinfosecfoundation.org" target="_blank">oisf-users@openinfosecfoundation.org</a><br>
Site: <a href="http://suricata-ids.org" rel="noreferrer" target="_blank">http://suricata-ids.org</a> | Support: <a href="http://suricata-ids.org/support/" rel="noreferrer" target="_blank">http://suricata-ids.org/support/</a><br>
List: <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" rel="noreferrer" target="_blank">https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users</a><br>
<br>
Conference: <a href="https://suricon.net" rel="noreferrer" target="_blank">https://suricon.net</a><br>
Trainings: <a href="https://suricata-ids.org/training/" rel="noreferrer" target="_blank">https://suricata-ids.org/training/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Dave Killion<br></div>