How can I use iptables in an Android application? I need this for a firewall-like functionality i.e. packet filtering, blocking sites etc.
I'm also not sure whether iptables are available in the Android kernel.
I previously heard that I'd have to create cross-compiled binaries of iptables – but how can I do that? And how can I use them in the application?