I have a packet sniffer that mean i can read all packets sent or received to the computer(with all headers like src & dst IP:PORT).
I want to filter packets that sent/received to/from internet (only remote hosts that doesn't exist in my network).
is there a solution for this?
P.S: i exclude packets that src or dst is in local range like "10.0.0.0/8" or "192.168.0.0/16" and other local ranges. Then result is better but not exact and i need more accurate result.