This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

filter for ingress or egress packets only

0

Is it possible to have a filter to display only ingress packets(or only egress ones)? or something that identifies which packet is ingress and which one is egress?

asked 24 Sep '16, 04:38

hamed%20nz's gravatar image

hamed nz
6112
accept rate: 0%


One Answer:

0

If you capture on an interface which has a MAC address, then frames with this MAC address as a source one (eth.src == my:ma:ca:dd:re:ss) are egress and frames with other source MAC addresses (!(eth.src == my:ma:ca:dd:re:ss)) are ingress. If you capture on a port of a switch, nothing in the frame itself tells you the direction. But on switches with monitoring capabilities it is often possible (and useful for bandwidth-related reasons) to copy each direction of a source port to its own monitoring port, and capture on the two monitoring ports simultaneously, using two interfaces on the capturing machine. In this case, the interface id becomes the parameter telling you ingress frames from egress ones. You can make it a column in the packet list.

answered 24 Sep '16, 04:55

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%