state tracking of TCP connections

Can someone point me to how I might do “state tracking of TCP connections” with ROS

I have a Content Delivery Network (CDN) chewing up bandwidth with repeated icmp traffic. The traffic is bouncing back and forth between my gateway router and the source causing headaches with my upstream provider. Looking for a way to sanitize traffic from the CDN.

Rick