This should work on any iOS version.

Disables ICMP redirects used by DoubleDirect attacks. This adds a daemon that disables ICMP after every boot so you don't have to do it manually.

Source code available here.