Thomas Owens
Thomas Owens

Reputation: 116161

Is there a library that can perform packet analysis and block certain packets from being sent?

I found Jpcap, however it only meets half my requirements - it does not allow me to block packets, as stated in the FAQ. I would prefer a cross-platform (Windows, Mac, Linux) solution, but if one does not exist, OS-specific solutions would be acceptable.

My goal is to, under certain conditions, block access to certain Internet and network resources by finding out where the packets are going and blocking the ones that meet specific criteria, regardless of how the resource was accessed. Perhaps I'm going about this the wrong way, so any advice would be appreciated.

Upvotes: 1

Views: 482

Answers (2)

Sylvain
Sylvain

Reputation: 3220

There is also the libpcap, but I'm not sure it will exactly do what you're looking for ...

according to the sourceforce page:

libpcap is a system-independent interface for user-level packet capture. libpcap provides a portable framework for low-level network monitoring. Applications includenetwork statistics collection, security monitoring, network debugging, etc.

Upvotes: 0

just somebody
just somebody

Reputation: 19247

My goal is to ... block access to certain Internet and network resources by ... blocking [packets] that meet specific criteria, regardless of how the resource was accessed.

that's only doable in the kernel, and as such is completely platform-specific.

Upvotes: 3

Related Questions