We are in the process of implementing a platform independent IDS in Java as our final year project at university of pune. I am stuck up in implementing the following modules and the deadlines are imminent. we are using Jpcap for monitoring network traffic.

Can anyone please share some knowledge about it ??

1) How to block traffic from unauthorized IP's . The user is given a choice to add IPs to a block list.Whenever the packets from blocked IPs are detected the traffic from such an IP should be automatically blocked and an alert should be raised.

2) An Application to detect occurence of flooding attacks and techniques to detect activities like Port scanning.

Thanking you in anticipation