Hi,
I'm using tcpdump and Wireshark to inspect the network packets that are received and sent from my mac. I'm inspecting the traffic from WiFi interface, but the problem is that the tools display also the traffic that don't exit the system, e.g. the ones that are blocked by the firewall.
Is it possible to somehow see the traffic that for sure left the mac?
e.g.
- make a UDP or TCP connection to a remote address, ADDR_1.
- start sending/receiving packets
- block all the traffic, received & sent, to the ADDR_1 using e.g. pf rules
- Wireshark & tcpdump will still show for some time(probably until TCP timeout) the outgoing traffic to ADDR_1, even if the packets are not leaving the mac because are blocked by the firewall. In this case, is it possible to filter out this packets so they are not displayed by the tools?
Thanks