ali
ali

Reputation: 21

Sniff a specific connection

I have found many code examples for sniffing packets through the network, but I am wondering if there is a way to sniff a specific local connection without having to filter by ip or port number. Assuming it will be lighter with less computation.

Upvotes: 1

Views: 398

Answers (1)

ali
ali

Reputation: 21

I thought of a hypothetical solution, forward the the packet to a socket that read the packet then transfer it to it destination by an other socket, like an internal middel man, witch is a heavy and less dynamic solution it will need an interaction with the kernel, :/

Upvotes: 1

Related Questions