I want to implement a security solution similar to MACsec that captures a packet in its entirety (including the MAC header) at an intermediate network node (e.g linux based switch), perform some processing on the packet, and then send it out the intermediate node.
Would you please point to me to appropriate resources that can help me do this. I am currently looking into solutions that require modification of the NIC driver. Is there any other simpler solution than this? How do others implement MACsec?
Please note that I am not looking to simply capture a packet using pcap and similar methods. What I am looking for is to be able to capture a packet before it passes through an intermediate node, tamper with it and send it the intended recipient.
Thank you