The packet filter per your requirement can be achieved using c , linux by writing a netfilter module. I have already implemented this kind of solution for my previous organisation .
Relevant Skills and Experience
I have expertise in c, linux routing stack including packet flow .
Proposed Milestones
₹1300 INR - The netfilter module I have described can be written , fine tuned within a day or two .
For any tasks in queue related to c, linux routing stack, L2/L3 , networking applications contact me